| Index: src/x64/code-stubs-x64.cc
|
| diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc
|
| index 82150c213fd5e5f7e177cc52f945164e081b94ed..35cff704681525c38b7141732432850f9c86293c 100644
|
| --- a/src/x64/code-stubs-x64.cc
|
| +++ b/src/x64/code-stubs-x64.cc
|
| @@ -125,7 +125,7 @@ void FastNewContextStub::Generate(MacroAssembler* masm) {
|
| __ movq(rcx, Operand(rsp, 1 * kPointerSize));
|
|
|
| // Setup the object header.
|
| - __ LoadRoot(kScratchRegister, Heap::kContextMapRootIndex);
|
| + __ LoadRoot(kScratchRegister, Heap::kFunctionContextMapRootIndex);
|
| __ movq(FieldOperand(rax, HeapObject::kMapOffset), kScratchRegister);
|
| __ Move(FieldOperand(rax, FixedArray::kLengthOffset), Smi::FromInt(length));
|
|
|
| @@ -152,7 +152,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);
|
| }
|
|
|
|
|
|
|