diff options
author | Mike Pall <mike> | 2013-08-26 18:28:58 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2013-08-26 18:28:58 +0200 |
commit | 5120240b77e4544b9b7405b4849a6cc63cdbbe1e (patch) | |
tree | 40bb90b12d912924bc9abf1feb12347b8db6b520 /src/vm_arm.dasc | |
parent | b33e96f3522e96e816cc46470b19d121bf88cfc8 (diff) | |
download | luajit-5120240b77e4544b9b7405b4849a6cc63cdbbe1e.tar.gz luajit-5120240b77e4544b9b7405b4849a6cc63cdbbe1e.tar.bz2 luajit-5120240b77e4544b9b7405b4849a6cc63cdbbe1e.zip |
Use g->jit_base for on/off-trace detection.
Diffstat (limited to 'src/vm_arm.dasc')
-rw-r--r-- | src/vm_arm.dasc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vm_arm.dasc b/src/vm_arm.dasc index 83341e41..b235967f 100644 --- a/src/vm_arm.dasc +++ b/src/vm_arm.dasc | |||
@@ -2107,9 +2107,9 @@ static void build_subroutines(BuildCtx *ctx) | |||
2107 | | ldr BASE, [DISPATCH, #DISPATCH_GL(jit_base)] | 2107 | | ldr BASE, [DISPATCH, #DISPATCH_GL(jit_base)] |
2108 | | str CARG1, [DISPATCH, #DISPATCH_J(exitno)] | 2108 | | str CARG1, [DISPATCH, #DISPATCH_J(exitno)] |
2109 | | mov CARG4, #0 | 2109 | | mov CARG4, #0 |
2110 | | str L, [DISPATCH, #DISPATCH_J(L)] | ||
2111 | | str BASE, L->base | 2110 | | str BASE, L->base |
2112 | | str CARG4, [DISPATCH, #DISPATCH_GL(jit_L)] | 2111 | | str L, [DISPATCH, #DISPATCH_J(L)] |
2112 | | str CARG4, [DISPATCH, #DISPATCH_GL(jit_base)] | ||
2113 | | sub CARG1, DISPATCH, #-GG_DISP2J | 2113 | | sub CARG1, DISPATCH, #-GG_DISP2J |
2114 | | mov CARG2, sp | 2114 | | mov CARG2, sp |
2115 | | bl extern lj_trace_exit // (jit_State *J, ExitState *ex) | 2115 | | bl extern lj_trace_exit // (jit_State *J, ExitState *ex) |
@@ -2133,8 +2133,9 @@ static void build_subroutines(BuildCtx *ctx) | |||
2133 | | ldr LFUNC:CARG2, [BASE, FRAME_FUNC] | 2133 | | ldr LFUNC:CARG2, [BASE, FRAME_FUNC] |
2134 | | str RC, SAVE_MULTRES | 2134 | | str RC, SAVE_MULTRES |
2135 | | mov CARG3, #0 | 2135 | | mov CARG3, #0 |
2136 | | str BASE, L->base | ||
2136 | | ldr CARG2, LFUNC:CARG2->field_pc | 2137 | | ldr CARG2, LFUNC:CARG2->field_pc |
2137 | | str CARG3, [DISPATCH, #DISPATCH_GL(jit_L)] | 2138 | | str CARG3, [DISPATCH, #DISPATCH_GL(jit_base)] |
2138 | | mv_vmstate CARG4, INTERP | 2139 | | mv_vmstate CARG4, INTERP |
2139 | | ldr KBASE, [CARG2, #PC2PROTO(k)] | 2140 | | ldr KBASE, [CARG2, #PC2PROTO(k)] |
2140 | | // Modified copy of ins_next which handles function header dispatch, too. | 2141 | | // Modified copy of ins_next which handles function header dispatch, too. |