JIT tweak: stack-clearing operations do not disturb registers

This commit is contained in:
Matthew Flatt 2012-11-17 10:01:22 -07:00
parent be4ce3ed66
commit 42f74b5982

View File

@ -762,11 +762,17 @@ int scheme_stack_safety(mz_jit_state *jitter, int cnt, int offset)
that we make, so that whatever happens to be there isn't
traversed in case of a GC. the value of JIT_RUNSTACK is
handy to use as a "clear" value. */
int i;
int i, valid;
valid = mz_CURRENT_REG_STATUS_VALID();
for (i = 0; i < cnt; i++) {
mz_rs_stxi(i+offset, JIT_RUNSTACK);
CHECK_LIMIT();
}
if (valid) mz_SET_REG_STATUS_VALID(1);
return 1;
}