aboutsummaryrefslogtreecommitdiff
path: root/src/buildvm_arm.dasc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/buildvm_arm.dasc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/buildvm_arm.dasc b/src/buildvm_arm.dasc
index fd7c7b81..9b6b5aed 100644
--- a/src/buildvm_arm.dasc
+++ b/src/buildvm_arm.dasc
@@ -185,23 +185,23 @@
185| 185|
186#define PC2PROTO(field) ((int)offsetof(GCproto, field)-(int)sizeof(GCproto)) 186#define PC2PROTO(field) ((int)offsetof(GCproto, field)-(int)sizeof(GCproto))
187| 187|
188|.macro hotcheck 188|.macro hotcheck, delta
189| lsr CARG1, PC, #1 189| lsr CARG1, PC, #1
190| and CARG1, CARG1, #126 190| and CARG1, CARG1, #126
191| sub CARG1, CARG1, #-GG_DISP2HOT 191| sub CARG1, CARG1, #-GG_DISP2HOT
192| ldrh CARG2, [DISPATCH, CARG1] 192| ldrh CARG2, [DISPATCH, CARG1]
193| subs CARG2, CARG2, #1 193| subs CARG2, CARG2, #delta
194| strh CARG2, [DISPATCH, CARG1] 194| strh CARG2, [DISPATCH, CARG1]
195|.endmacro 195|.endmacro
196| 196|
197|.macro hotloop 197|.macro hotloop
198| hotcheck 198| hotcheck HOTCOUNT_LOOP
199| beq ->vm_hotloop 199| blo ->vm_hotloop
200|.endmacro 200|.endmacro
201| 201|
202|.macro hotcall 202|.macro hotcall
203| hotcheck 203| hotcheck HOTCOUNT_CALL
204| beq ->vm_hotcall 204| blo ->vm_hotcall
205|.endmacro 205|.endmacro
206| 206|
207|// Set current VM state. 207|// Set current VM state.