Revision: 18542
Author:   [email protected]
Date:     Fri Jan 10 14:35:58 2014 UTC
Log:      Turn on allocation site pretenuring.

BUG=
[email protected]

Review URL: https://codereview.chromium.org/133883002

Patch from Hannes Payer <[email protected]>.
http://code.google.com/p/v8/source/detail?r=18542

Modified:
 /branches/bleeding_edge/src/flag-definitions.h
 /branches/bleeding_edge/test/cctest/test-heap.cc

=======================================
--- /branches/bleeding_edge/src/flag-definitions.h Fri Jan 10 13:28:26 2014 UTC +++ /branches/bleeding_edge/src/flag-definitions.h Fri Jan 10 14:35:58 2014 UTC
@@ -220,7 +220,7 @@
 // TODO(hpayer): We will remove this flag as soon as we have pretenuring
 // support for specific allocation sites.
 DEFINE_bool(pretenuring_call_new, false, "pretenure call new")
-DEFINE_bool(allocation_site_pretenuring, false,
+DEFINE_bool(allocation_site_pretenuring, true,
             "pretenure with allocation sites")
 DEFINE_bool(trace_pretenuring, false,
             "trace pretenuring decisions of HAllocate instructions")
=======================================
--- /branches/bleeding_edge/test/cctest/test-heap.cc Fri Jan 10 12:11:54 2014 UTC +++ /branches/bleeding_edge/test/cctest/test-heap.cc Fri Jan 10 14:35:58 2014 UTC
@@ -2240,7 +2240,7 @@
   CcTest::heap()->SetNewSpaceHighPromotionModeActive(true);

   v8::Local<v8::Value> res = CompileRun(
-      "var number_elements = 3000;"
+      "var number_elements = 10000;"
       "var elements = new Array(number_elements);"
       "function DataObject() {"
       "  this.a = [{}];"
@@ -2349,7 +2349,7 @@
       "var elements = new Array(number_elements);"
       "function f() {"
       "  for (var i = 0; i < number_elements; i++) {"
-      "    elements[i] = {a: 1.1, b: 2.2};"
+      "    elements[i] = {a: 1.1, b: 2.2, c: 3.3};"
       "  }"
       "  return elements[i - 1];"
       "};"

--
--
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