| Index: src/arm/code-stubs-arm.cc
|
| diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc
|
| index 34b9458fe56c5d5752338bda643a5b947cc9d376..6f6d13d45ce56c9e9eff1b2f561ec19bdffe5360 100644
|
| --- a/src/arm/code-stubs-arm.cc
|
| +++ b/src/arm/code-stubs-arm.cc
|
| @@ -158,7 +158,7 @@ void FastNewContextStub::Generate(MacroAssembler* masm) {
|
| __ ldr(r3, MemOperand(sp, 0));
|
|
|
| // Setup the object header.
|
| - __ LoadRoot(r2, Heap::kContextMapRootIndex);
|
| + __ LoadRoot(r2, Heap::kFunctionContextMapRootIndex);
|
| __ str(r2, FieldMemOperand(r0, HeapObject::kMapOffset));
|
| __ mov(r2, Operand(Smi::FromInt(length)));
|
| __ str(r2, FieldMemOperand(r0, 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);
|
| }
|
|
|
|
|
|
|