Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index dc5a9cba19d15f8b1b532b6d8fdcc703ba2ccc3b..459ef15756a5b11d26cf238e33070a30816c9144 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -129,7 +129,8 @@ void FastNewContextStub::Generate(MacroAssembler* masm) { |
// Setup the object header. |
Factory* factory = masm->isolate()->factory(); |
- __ mov(FieldOperand(eax, HeapObject::kMapOffset), factory->context_map()); |
+ __ mov(FieldOperand(eax, HeapObject::kMapOffset), |
+ factory->function_context_map()); |
__ mov(FieldOperand(eax, Context::kLengthOffset), |
Immediate(Smi::FromInt(length))); |
@@ -159,7 +160,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); |
} |