| Index: src/mips/code-stubs-mips.cc
|
| diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc
|
| index 46e99c4c8c694547eda7ea85c3e243cbbba569b0..971f1bd1934f561c0f6761336e215cbfcda36eee 100644
|
| --- a/src/mips/code-stubs-mips.cc
|
| +++ b/src/mips/code-stubs-mips.cc
|
| @@ -158,7 +158,7 @@ void FastNewContextStub::Generate(MacroAssembler* masm) {
|
| __ lw(a3, MemOperand(sp, 0));
|
|
|
| // Setup the object header.
|
| - __ LoadRoot(a2, Heap::kContextMapRootIndex);
|
| + __ LoadRoot(a2, Heap::kFunctionContextMapRootIndex);
|
| __ sw(a2, FieldMemOperand(v0, HeapObject::kMapOffset));
|
| __ li(a2, Operand(Smi::FromInt(length)));
|
| __ sw(a2, FieldMemOperand(v0, FixedArray::kLengthOffset));
|
| @@ -187,7 +187,7 @@ void FastNewContextStub::Generate(MacroAssembler* masm) {
|
|
|
| // Need to collect. Call into runtime system.
|
| __ bind(&gc);
|
| - __ TailCallRuntime(Runtime::kNewContext, 1, 1);
|
| + __ TailCallRuntime(Runtime::kNewFunctionContext, 1, 1);
|
| }
|
|
|
|
|
|
|