Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

代码的一些疑惑 #10

Open
jellychen opened this issue Jul 30, 2021 · 2 comments
Open

代码的一些疑惑 #10

jellychen opened this issue Jul 30, 2021 · 2 comments

Comments

@jellychen
Copy link

jellychen commented Jul 30, 2021

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位这样对么?

@digitalgust
Copy link
Owner

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

@jellychen
Copy link
Author

好的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants