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

Refactor - Shuffle register assignment in JIT #600

Merged
merged 5 commits into from
Oct 1, 2024

Conversation

Lichtso
Copy link

@Lichtso Lichtso commented Sep 27, 2024

No description provided.

@Lichtso Lichtso marked this pull request as draft September 27, 2024 18:26
@Lichtso Lichtso force-pushed the refactor/shuffle_registers branch 2 times, most recently from b7b5392 to bcbf14c Compare September 30, 2024 12:51
@Lichtso Lichtso force-pushed the refactor/shuffle_registers branch from bcbf14c to ccb81e5 Compare September 30, 2024 12:56
@Lichtso Lichtso marked this pull request as ready for review September 30, 2024 12:57
@Lichtso Lichtso requested a review from LucasSte September 30, 2024 12:59
@Lichtso Lichtso force-pushed the refactor/shuffle_registers branch from ccb81e5 to bb34253 Compare September 30, 2024 14:02
@@ -112,27 +112,29 @@ impl JitProgram {
"push rbx",
"push rbp",
"mov [{host_stack_pointer}], rsp",
"add QWORD PTR [{host_stack_pointer}], -8", // We will push RIP in "call r10" later
"mov rbx, rax",
"add QWORD PTR [{host_stack_pointer}], -8",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this equivalent to add QWORD PTR [{host_stack_pointer}], -8(%rsp)?
rsp is the top of the stack, but we are offsetting outside the stack area, aren't we?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, this is Intel ASM. I was trying to understand this as AT&T ASM.

@Lichtso Lichtso merged commit 073c660 into main Oct 1, 2024
12 checks passed
@Lichtso Lichtso deleted the refactor/shuffle_registers branch October 1, 2024 17:10
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

Successfully merging this pull request may close these issues.

2 participants