Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index 8ebe6d9c0bd4284f68b660365eb39e2e1d19a13c..95429bb1cafc5278b871cba2440cc4138d75fbb1 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -1165,12 +1165,9 @@ void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info, |
__ mov(ebx, Immediate(info)); |
__ CallStub(&stub); |
} else { |
- __ push(esi); |
__ push(Immediate(info)); |
- __ push(Immediate(pretenure |
- ? isolate()->factory()->true_value() |
- : isolate()->factory()->false_value())); |
- __ CallRuntime(Runtime::kNewClosure, 3); |
+ __ CallRuntime( |
+ pretenure ? Runtime::kNewClosure_Tenured : Runtime::kNewClosure, 1); |
} |
context()->Plug(eax); |
} |