Skip to content

Conversation

@MikeHolman
Copy link
Contributor

No description provided.

@agarwal-sandeep
Copy link
Collaborator

agarwal-sandeep commented Oct 6, 2016

#ifdef ENABLE_BASIC_TELEMETRY

nit: Just for consistency can we move NativeCodeGenerator::LogCodeGenDone(workItem, &start_time); here? #Resolved


Refers to: lib/Backend/NativeCodeGenerator.cpp:1154 in 8e69a1f. [](commit_id = 8e69a1f, deletion_comment = False)

uint GetFunctionNumber() const
{
return this->jitData.jitData->bodyData->funcNumber;
return this->functionBody->GetFunctionNumber();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this->functionBody [](start = 15, length = 18)

What the difference between this->functionBody and this->jitData.jitData->bodyData? Also wondering why we could get AV in the latter case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this->jitData.jitData is not initialized until NativeCodeGenerator::CodeGen, whereas functionBody is passed as argument to the constructor of CodeGenWorkItem so is there from the beginning.

This area definitely got a bit messy with OOP JIT, and I'm planning on doing bigger cleanup of CodeGenWorkItem to address this sort of strangeness.

@ThomsonTan
Copy link
Collaborator

:shipit:

@chakrabot chakrabot merged commit 8e69a1f into chakra-core:master Oct 6, 2016
chakrabot pushed a commit that referenced this pull request Oct 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants