Index: src/x87/code-stubs-x87.cc |
diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc |
index fd2c8924bca422ba842029715d78d12aa59a55cf..155e1b8a6650e891fbe2c9415823461a446f6626 100644 |
--- a/src/x87/code-stubs-x87.cc |
+++ b/src/x87/code-stubs-x87.cc |
@@ -1720,8 +1720,9 @@ void JSEntryStub::Generate(MacroAssembler* masm) { |
// Push marker in two places. |
int marker = type(); |
- __ push(Immediate(Smi::FromInt(marker))); // context slot |
- __ push(Immediate(Smi::FromInt(marker))); // function slot |
+ __ push(Immediate(Smi::FromInt(marker))); // marker |
+ ExternalReference context_address(Isolate::kContextAddress, isolate()); |
+ __ push(Operand::StaticVariable(context_address)); // context |
// Save callee-saved registers (C calling conventions). |
__ push(edi); |
__ push(esi); |
@@ -3385,7 +3386,7 @@ void StubFailureTrampolineStub::Generate(MacroAssembler* masm) { |
CEntryStub ces(isolate(), 1, kSaveFPRegs); |
__ call(ces.GetCode(), RelocInfo::CODE_TARGET); |
int parameter_count_offset = |
- StubFailureTrampolineFrame::kCallerStackParameterCountFrameOffset; |
+ StubFailureTrampolineFrameConstants::kArgumentsLengthOffset; |
__ mov(ebx, MemOperand(ebp, parameter_count_offset)); |
masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); |
__ pop(ecx); |
@@ -4531,7 +4532,7 @@ void FastNewRestParameterStub::Generate(MacroAssembler* masm) { |
__ bind(&loop); |
__ mov(edx, Operand(edx, StandardFrameConstants::kCallerFPOffset)); |
__ bind(&loop_entry); |
- __ cmp(edi, Operand(edx, StandardFrameConstants::kMarkerOffset)); |
+ __ cmp(edi, Operand(edx, StandardFrameConstants::kFunctionOffset)); |
__ j(not_equal, &loop); |
} |
@@ -4539,7 +4540,7 @@ void FastNewRestParameterStub::Generate(MacroAssembler* masm) { |
// arguments adaptor frame below the function frame). |
Label no_rest_parameters; |
__ mov(ebx, Operand(edx, StandardFrameConstants::kCallerFPOffset)); |
- __ cmp(Operand(ebx, StandardFrameConstants::kContextOffset), |
+ __ cmp(Operand(ebx, CommonFrameConstants::kContextOrFrameTypeOffset), |
Immediate(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); |
__ j(not_equal, &no_rest_parameters, Label::kNear); |
@@ -4681,7 +4682,7 @@ void FastNewSloppyArgumentsStub::Generate(MacroAssembler* masm) { |
// Check if the calling frame is an arguments adaptor frame. |
Label adaptor_frame, try_allocate, runtime; |
__ mov(ebx, Operand(ebp, StandardFrameConstants::kCallerFPOffset)); |
- __ mov(eax, Operand(ebx, StandardFrameConstants::kContextOffset)); |
+ __ mov(eax, Operand(ebx, CommonFrameConstants::kContextOrFrameTypeOffset)); |
__ cmp(eax, Immediate(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); |
__ j(equal, &adaptor_frame, Label::kNear); |
@@ -4917,14 +4918,14 @@ void FastNewStrictArgumentsStub::Generate(MacroAssembler* masm) { |
__ bind(&loop); |
__ mov(edx, Operand(edx, StandardFrameConstants::kCallerFPOffset)); |
__ bind(&loop_entry); |
- __ cmp(edi, Operand(edx, StandardFrameConstants::kMarkerOffset)); |
+ __ cmp(edi, Operand(edx, StandardFrameConstants::kFunctionOffset)); |
__ j(not_equal, &loop); |
} |
// Check if we have an arguments adaptor frame below the function frame. |
Label arguments_adaptor, arguments_done; |
__ mov(ebx, Operand(edx, StandardFrameConstants::kCallerFPOffset)); |
- __ cmp(Operand(ebx, StandardFrameConstants::kContextOffset), |
+ __ cmp(Operand(ebx, CommonFrameConstants::kContextOrFrameTypeOffset), |
Immediate(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); |
__ j(equal, &arguments_adaptor, Label::kNear); |
{ |