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

Unified Diff: vm/benchmark_test.h

Issue 10332296: Revert code heap size back to 8MB and fix the benchmark invocation to set the code heap size for be… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 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 | vm/heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/benchmark_test.h
===================================================================
--- vm/benchmark_test.h (revision 7858)
+++ vm/benchmark_test.h (working copy)
@@ -16,6 +16,8 @@
namespace dart {
+DECLARE_FLAG(int, code_heap_size);
+
// The BENCHMARK macro is used for benchmarking a specific functionality
// of the VM
#define BENCHMARK(name) \
@@ -23,6 +25,7 @@
static const Benchmark kRegister##name(Dart_Benchmark##name, #name); \
static void Dart_BenchmarkHelper##name(Benchmark* benchmark); \
void Dart_Benchmark##name(Benchmark* benchmark) { \
+ FLAG_code_heap_size = 10; \
BenchmarkIsolateScope __isolate__(benchmark); \
Zone __zone__(benchmark->isolate()); \
HandleScope __hs__(benchmark->isolate()); \
« no previous file with comments | « no previous file | vm/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698