Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index 23bb9575caacf5dd0ec964178b25fc30aed80a9c..80b984a39de4bdbfc728ffdb430e0e2da00a54ca 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -3894,7 +3894,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; |
__ lw(a1, MemOperand(fp, parameter_count_offset)); |
if (function_mode() == JS_FUNCTION_STUB_MODE) { |
__ Addu(a1, a1, Operand(1)); |
@@ -4876,7 +4876,7 @@ void FastNewRestParameterStub::Generate(MacroAssembler* masm) { |
__ bind(&loop); |
__ lw(a2, MemOperand(a2, StandardFrameConstants::kCallerFPOffset)); |
__ bind(&loop_entry); |
- __ lw(a3, MemOperand(a2, StandardFrameConstants::kMarkerOffset)); |
+ __ lw(a3, MemOperand(a2, StandardFrameConstants::kFunctionOffset)); |
__ Branch(&loop, ne, a1, Operand(a3)); |
} |
@@ -4884,7 +4884,7 @@ void FastNewRestParameterStub::Generate(MacroAssembler* masm) { |
// arguments adaptor frame below the function frame). |
Label no_rest_parameters; |
__ lw(a2, MemOperand(a2, StandardFrameConstants::kCallerFPOffset)); |
- __ lw(a3, MemOperand(a2, StandardFrameConstants::kContextOffset)); |
+ __ lw(a3, MemOperand(a2, CommonFrameConstants::kContextOrFrameTypeOffset)); |
__ Branch(&no_rest_parameters, ne, a3, |
Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); |
@@ -5023,7 +5023,7 @@ void FastNewSloppyArgumentsStub::Generate(MacroAssembler* masm) { |
// Check if the calling frame is an arguments adaptor frame. |
Label adaptor_frame, try_allocate, runtime; |
__ lw(t0, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); |
- __ lw(a0, MemOperand(t0, StandardFrameConstants::kContextOffset)); |
+ __ lw(a0, MemOperand(t0, CommonFrameConstants::kContextOrFrameTypeOffset)); |
__ Branch(&adaptor_frame, eq, a0, |
Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); |
@@ -5231,14 +5231,14 @@ void FastNewStrictArgumentsStub::Generate(MacroAssembler* masm) { |
__ bind(&loop); |
__ lw(a2, MemOperand(a2, StandardFrameConstants::kCallerFPOffset)); |
__ bind(&loop_entry); |
- __ lw(a3, MemOperand(a2, StandardFrameConstants::kMarkerOffset)); |
+ __ lw(a3, MemOperand(a2, StandardFrameConstants::kFunctionOffset)); |
__ Branch(&loop, ne, a1, Operand(a3)); |
} |
// Check if we have an arguments adaptor frame below the function frame. |
Label arguments_adaptor, arguments_done; |
__ lw(a3, MemOperand(a2, StandardFrameConstants::kCallerFPOffset)); |
- __ lw(a0, MemOperand(a3, StandardFrameConstants::kContextOffset)); |
+ __ lw(a0, MemOperand(a3, CommonFrameConstants::kContextOrFrameTypeOffset)); |
__ Branch(&arguments_adaptor, eq, a0, |
Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); |
{ |