Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
deps: update ChakraCore to chakra-core/ChakraCore@e7945af187
Browse files Browse the repository at this point in the history
[1.8>1.9] [MERGE #4667 @pleath] MSFT:15176668: Port remote stack walker fix

Merge pull request #4667 from pleath:15176668

Reviewed-By: chakrabot <[email protected]>
  • Loading branch information
pleath authored and kfarnung committed Mar 7, 2018
1 parent 92c6912 commit 0f45420
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion deps/chakrashim/core/lib/Runtime/Base/LeaveScriptObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace Js
{
EnterScriptObject::EnterScriptObject(ScriptContext* scriptContext, ScriptEntryExitRecord* entryExitRecord,
void * addrOfReturnAddress, bool doCleanup, bool isCallRoot, bool hasCaller)
void * returnAddress, void * addrOfReturnAddress, bool doCleanup, bool isCallRoot, bool hasCaller)
{
Assert(scriptContext);

Expand Down Expand Up @@ -35,6 +35,7 @@ namespace Js
false;

// Initialize the entry exit record
entryExitRecord->returnAddrOfScriptEntryFunction = returnAddress;
entryExitRecord->addrOfReturnAddrOfScriptEntryFunction = addrOfReturnAddress;
entryExitRecord->hasCaller = hasCaller;
entryExitRecord->scriptContext = scriptContext;
Expand Down
4 changes: 2 additions & 2 deletions deps/chakrashim/core/lib/Runtime/Base/LeaveScriptObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
Js::ScriptEntryExitRecord __entryExitRecord = {0}; \
SAVE_FS0(); \
Js::EnterScriptObject __enterScriptObject = Js::EnterScriptObject(__localScriptContext, &__entryExitRecord, \
_AddressOfReturnAddress(), doCleanup, isCallRoot, hasCaller); \
_ReturnAddress(), _AddressOfReturnAddress(), doCleanup, isCallRoot, hasCaller); \
__localScriptContext->OnScriptStart(isCallRoot, isScript); \
__enterScriptObject.VerifyEnterScript();

Expand Down Expand Up @@ -137,7 +137,7 @@ namespace Js
JavascriptLibrary* library; // stack pin the library.
public:
EnterScriptObject(ScriptContext* scriptContext, ScriptEntryExitRecord* entryExitRecord,
void * addrOfReturnAddress, bool doCleanup, bool isCallRoot, bool hasCaller);
void * returnAddress, void * addrOfReturnAddress, bool doCleanup, bool isCallRoot, bool hasCaller);

void VerifyEnterScript();

Expand Down
1 change: 1 addition & 0 deletions deps/chakrashim/core/lib/Runtime/Base/ScriptContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ namespace Js
#endif
Js::ImplicitCallFlags savedImplicitCallFlags;

void * returnAddrOfScriptEntryFunction;
void * addrOfReturnAddrOfScriptEntryFunction;
void * frameIdOfScriptExitFunction; // the frameAddres in x86, the return address in amd64/arm_soc
ScriptContext * scriptContext;
Expand Down

0 comments on commit 0f45420

Please sign in to comment.