miniJVM icon indicating copy to clipboard operation
miniJVM copied to clipboard

代码的一些疑惑

Open jellychen opened this issue 4 years ago • 2 comments

void _gen_stack_peek_long(struct sljit_compiler *C, s32 offset, sljit_s32 dst, sljit_sw dstw) { //dst=sp[offset]->lvalue sljit_emit_op1(C, SLJIT_MOV, dst, dstw, SLJIT_MEM1(REGISTER_SP), sizeof(StackEntry) * offset + SLJIT_OFFSETOF(StackEntry, lvalue)); }

这段代码如果运行在 32位的CPU上面,但是java中long是8位的,那么 dst寄存器只有32位这样对么?

jellychen avatar Jul 30 '21 02:07 jellychen

32位cpu会禁用jit,解释执行

digitalgust avatar Aug 02 '21 22:08 digitalgust

好的

jellychen avatar Aug 03 '21 12:08 jellychen