Skip to content

Commit 59b31e5

Browse files
committed
[MERGE chakra-core#182] Fix ARM nojit build.
Merge pull request chakra-core#182 from curtisman:arm_nojit Need to disable interpreter dynamic thunks Fixes chakra-core#169
2 parents 1b8577d + 23a77d6 commit 59b31e5

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

Build/armasm.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
ToolArchitecture ="$(CLToolArchitecture)"
111111
TrackerFrameworkPath ="$(CLTrackerFrameworkPath)"
112112
TrackerSdkPath ="$(CLTrackerSdkPath)"
113-
TrackedInputFilesToIgnore ="@(ClNoDependencies)"
113+
TrackedInputFilesToIgnore ="@(ClNoDependencies)"
114114

115115
AcceptableNonZeroExitCodes ="%(ClCompile.AcceptableNonZeroExitCodes)"
116116
YieldDuringToolExecution ="$(ClYieldDuringToolExecution)"

lib/Runtime/Language/arm/arm_Thunks.asm

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,36 @@
44
;-------------------------------------------------------------------------------------------------------
55
OPT 2 ; disable listing
66
#include "ksarm.h"
7+
#if !DISABLE_JIT
8+
#define _ENABLE_DYNAMIC_THUNKS
9+
#endif
710
OPT 1 ; re-enable listing
811

912
TTL Lib\Runtime\Language\arm\arm_DelayDynamicInterpreterThunk.asm
1013

14+
#ifdef _ENABLE_DYNAMIC_THUNKS
1115
;Var InterpreterStackFrame::DelayDynamicInterpreterThunk(RecyclableObject* function, CallInfo callInfo, ...)
1216
EXPORT |?DelayDynamicInterpreterThunk@InterpreterStackFrame@Js@@SAPAXPAVRecyclableObject@2@UCallInfo@2@ZZ|
1317
;Var DynamicProfileInfo::EnsureDynamicProfileInfoThunk(RecyclableObject* function, CallInfo callInfo, ...)
1418
EXPORT |?EnsureDynamicProfileInfoThunk@DynamicProfileInfo@Js@@SAPAXPAVRecyclableObject@2@UCallInfo@2@ZZ|
19+
#endif
1520
; Var ScriptContext::ProfileModeDeferredParsingThunk(RecyclableObject* function, CallInfo callInfo, ...)
1621
EXPORT |?ProfileModeDeferredParsingThunk@ScriptContext@Js@@SAPAXPAVRecyclableObject@2@UCallInfo@2@ZZ|
1722

23+
#ifdef _ENABLE_DYNAMIC_THUNKS
1824
;JavascriptMethod InterpreterStackFrame::EnsureDynamicInterpreterThunk(Js::ScriptFunction * function)
1925
IMPORT |?EnsureDynamicInterpreterThunk@InterpreterStackFrame@Js@@CAP6APAXPAVRecyclableObject@2@UCallInfo@2@ZZPAVScriptFunction@2@@Z|
2026
;JavascriptMethod DynamicProfileInfo::EnsureDynamicProfileInfoThunk(Js::ScriptFunction * function)
2127
IMPORT |?EnsureDynamicProfileInfo@DynamicProfileInfo@Js@@CAP6APAXPAVRecyclableObject@2@UCallInfo@2@ZZPAVScriptFunction@2@@Z|
28+
#endif
2229
;JavascriptMethod ScriptContext::ProfileModeDeferredParse(ScriptFunction **function)
2330
IMPORT |?ProfileModeDeferredParse@ScriptContext@Js@@SAP6APAXPAVRecyclableObject@2@UCallInfo@2@ZZPAPAVScriptFunction@2@@Z|
2431
;JavascriptMethod ScriptContext::ProfileModeDeferredDeserialize(ScriptFunction *function)
2532
IMPORT |?ProfileModeDeferredDeserialize@ScriptContext@Js@@SAP6APAXPAVRecyclableObject@2@UCallInfo@2@ZZPAVScriptFunction@2@@Z|
2633

2734
TEXTAREA
2835

36+
#ifdef _ENABLE_DYNAMIC_THUNKS
2937
;;============================================================================================================
3038
;; InterpreterStackFrame::DelayDynamicInterpreterThunk
3139
;;============================================================================================================
@@ -71,6 +79,8 @@
7179

7280
NESTED_END
7381

82+
#endif ;; _ENABLE_DYNAMIC_THUNKS
83+
7484
;;============================================================================================================
7585
;; ScriptContext::ProfileModeDeferredParsingThunk
7686
;;============================================================================================================

0 commit comments

Comments
 (0)