Revision: 6610
Author: [email protected]
Date: Thu Feb  3 01:10:54 2011
Log: Fix bug in pretenuring function literals from optimized code.

Review URL: http://codereview.chromium.org/6368074
http://code.google.com/p/v8/source/detail?r=6610

Modified:
 /branches/bleeding_edge/src/arm/lithium-codegen-arm.cc
 /branches/bleeding_edge/src/ia32/lithium-codegen-ia32.cc

=======================================
--- /branches/bleeding_edge/src/arm/lithium-codegen-arm.cc Thu Feb 3 00:59:14 2011 +++ /branches/bleeding_edge/src/arm/lithium-codegen-arm.cc Thu Feb 3 01:10:54 2011
@@ -3508,7 +3508,7 @@
   // Use the fast case closure allocation code that allocates in new
   // space for nested functions that don't need literals cloning.
   Handle<SharedFunctionInfo> shared_info = instr->shared_info();
-  bool pretenure = !instr->hydrogen()->pretenure();
+  bool pretenure = instr->hydrogen()->pretenure();
   if (shared_info->num_literals() == 0 && !pretenure) {
     FastNewClosureStub stub;
     __ mov(r1, Operand(shared_info));
=======================================
--- /branches/bleeding_edge/src/ia32/lithium-codegen-ia32.cc Wed Feb 2 05:55:29 2011 +++ /branches/bleeding_edge/src/ia32/lithium-codegen-ia32.cc Thu Feb 3 01:10:54 2011
@@ -3406,7 +3406,7 @@
   // Use the fast case closure allocation code that allocates in new
   // space for nested functions that don't need literals cloning.
   Handle<SharedFunctionInfo> shared_info = instr->shared_info();
-  bool pretenure = !instr->hydrogen()->pretenure();
+  bool pretenure = instr->hydrogen()->pretenure();
   if (shared_info->num_literals() == 0 && !pretenure) {
     FastNewClosureStub stub;
     __ push(Immediate(shared_info));

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to