Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1386)

Unified Diff: test/cctest/test-heap.cc

Issue 133993006: Turn on allocation site pretenuring. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/flag-definitions.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-heap.cc
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
index d5fae581deb8fb96b8fda9270cfd5341ef76de80..da57efa4d3a27fa3f153292986c04f74290cdfde 100644
--- a/test/cctest/test-heap.cc
+++ b/test/cctest/test-heap.cc
@@ -2206,10 +2206,10 @@ TEST(OptimizedPretenuringAllocationFolding) {
" this.e = 1.3;"
" this.f = [{}];"
"}"
- "var number_elements = 20000;"
+ "var number_elements = 30000;"
"var elements = new Array();"
"function f() {"
- " for (var i = 0; i < 20000-1; i++) {"
+ " for (var i = 0; i < number_elements-1; i++) {"
" elements[i] = new DataObject();"
" }"
" return new DataObject()"
@@ -2240,7 +2240,7 @@ TEST(OptimizedPretenuringAllocationFoldingBlocks) {
CcTest::heap()->SetNewSpaceHighPromotionModeActive(true);
v8::Local<v8::Value> res = CompileRun(
- "var number_elements = 3000;"
+ "var number_elements = 20000;"
"var elements = new Array(number_elements);"
"function DataObject() {"
" this.a = [{}];"
@@ -2345,7 +2345,7 @@ TEST(OptimizedPretenuringDoubleArrayProperties) {
v8::HandleScope scope(CcTest::isolate());
v8::Local<v8::Value> res = CompileRun(
- "var number_elements = 20000;"
+ "var number_elements = 30000;"
"var elements = new Array(number_elements);"
"function f() {"
" for (var i = 0; i < number_elements; i++) {"
« no previous file with comments | « src/flag-definitions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698