Commit f56195fc authored by Sigurd Schneider's avatar Sigurd Schneider Committed by Commit Bot

[ia32] Extend availability of root array in JSEntryStub

Change-Id: Ibc8a086c5761c732b454fbb6cc1e06abb9f5e90f
Bug: v8:7777
Reviewed-on: https://chromium-review.googlesource.com/c/1283032Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56690}
parent e4cfb007
......@@ -102,9 +102,8 @@ void JSEntryStub::Generate(MacroAssembler* masm) {
__ VerifyRootRegister();
// Check if the current stack frame is marked as the outermost JS frame.
Assembler::AllowExplicitEbxAccessScope exiting_js(masm);
__ pop(ebx);
__ cmp(ebx, Immediate(StackFrame::OUTERMOST_JSENTRY_FRAME));
__ pop(edi);
__ cmp(edi, Immediate(StackFrame::OUTERMOST_JSENTRY_FRAME));
__ j(not_equal, &not_outermost_js_2);
__ mov(__ ExternalReferenceAsOperand(js_entry_sp, edi), Immediate(0));
__ bind(&not_outermost_js_2);
......@@ -112,6 +111,7 @@ void JSEntryStub::Generate(MacroAssembler* masm) {
// Restore the top frame descriptor from the stack.
__ pop(__ ExternalReferenceAsOperand(c_entry_fp, edi));
Assembler::AllowExplicitEbxAccessScope exiting_js(masm);
// Restore callee-saved registers (C calling conventions).
__ pop(ebx);
__ pop(esi);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment