Skip to content

Commit

Permalink
microoptimise i386.S
Browse files Browse the repository at this point in the history
  • Loading branch information
stedolan committed Nov 4, 2019
1 parent 7fe3604 commit b215ff2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions runtime/i386.S
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ LBL(caml_call_gc):
popl %edi; CFI_ADJUST(-4)
popl %ebp; CFI_ADJUST(-4)
/* Return to caller. Returns young_ptr in %eax. */
movl G(Caml_state), %eax
movl CAML_STATE(young_ptr, %eax), %eax
movl CAML_STATE(young_ptr, %ebx), %eax
ret
CFI_ENDPROC
ENDFUNCTION(caml_call_gc)
Expand Down
3 changes: 1 addition & 2 deletions runtime/i386nt.asm
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ _caml_call_gc:
pop edi
pop ebp
; Return to caller. Returns young_ptr in eax
mov eax, _Caml_state
Load_young_ptr eax, eax
Load_young_ptr ebx, eax
ret

ALIGN 4
Expand Down

0 comments on commit b215ff2

Please sign in to comment.