Revision: 19338
Author:   [email protected]
Date:     Wed Feb 12 16:18:18 2014 UTC
Log: Fix test-heap/OptimizedPretenuringAllocationFolding wrt concurrent recompilation delay.

[email protected]

Review URL: https://codereview.chromium.org/148063008
http://code.google.com/p/v8/source/detail?r=19338

Modified:
 /branches/bleeding_edge/test/cctest/test-heap.cc

=======================================
--- /branches/bleeding_edge/test/cctest/test-heap.cc Wed Feb 12 09:19:30 2014 UTC +++ /branches/bleeding_edge/test/cctest/test-heap.cc Wed Feb 12 16:18:18 2014 UTC
@@ -2210,10 +2210,10 @@
       "var number_elements = 20000;"
       "var elements = new Array();"
       "function f() {"
-      "  for (var i = 0; i < 20000-1; i++) {"
+      "  for (var i = 0; i < number_elements; i++) {"
       "    elements[i] = new DataObject();"
       "  }"
-      "  return new DataObject()"
+      "  return elements[number_elements-1]"
       "};"
       "f(); f(); f();"
       "%OptimizeFunctionOnNextCall(f);"

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to