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

Unified Diff: vm/code_index_table_test.cc

Issue 9455032: Fix build break. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/code_index_table_test.cc
===================================================================
--- vm/code_index_table_test.cc (revision 4555)
+++ vm/code_index_table_test.cc (working copy)
@@ -16,6 +16,11 @@
#if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64)
TEST_CASE(CodeIndexTable) {
+#if defined(TARGET_ARCH_IA32)
+ const int kLoopCount = 50000;
+#else
+ const int kLoopCount = 25000;
+#endif
const int kScriptSize = 512 * KB;
const int kNumFunctions = 1024;
char scriptChars[kScriptSize];
@@ -66,14 +71,14 @@
// Now load up class B with 1024 functions.
written = OS::SNPrint(scriptChars, kScriptSize, "class B {");
// Create one large function.
- OS::SNPrint(buffer, sizeof(buffer), "static moo0([int i=1]) { ");
+ OS::SNPrint(buffer, sizeof(buffer), "static moo0([var i=1]) { ");
written += OS::SNPrint((scriptChars + written),
(kScriptSize - written),
"%s",
buffer);
// Generate a large function so that the code for this function when
// compiled will reside in a large page.
- for (int i = 0; i < 50000; i++) {
+ for (int i = 0; i < kLoopCount; i++) {
OS::SNPrint(buffer, sizeof(buffer), "i = i+i;");
written += OS::SNPrint((scriptChars + written),
(kScriptSize - written),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698