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

Unified Diff: runtime/vm/dart.cc

Issue 1263513002: VM: Load allocation-top and -end via Thread. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fixed cc tests Created 5 years, 4 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
Index: runtime/vm/dart.cc
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc
index 7bb4fe3a399569edb61915240c5af47eb247d4d3..60439a25d691848b9114471543ca755e13fc7ccf 100644
--- a/runtime/vm/dart.cc
+++ b/runtime/vm/dart.cc
@@ -33,18 +33,8 @@
namespace dart {
-DEFINE_FLAG(int, new_gen_semi_max_size, (kWordSize <= 4) ? 16 : 32,
- "Max size of new gen semi space in MB");
-DEFINE_FLAG(int, old_gen_heap_size, 0,
- "Max size of old gen heap size in MB, or 0 for unlimited,"
- "e.g: --old_gen_heap_size=1024 allows up to 1024MB old gen heap");
-DEFINE_FLAG(int, external_max_size, (kWordSize <= 4) ? 512 : 1024,
- "Max total size of external allocations in MB, or 0 for unlimited,"
- "e.g: --external_max_size=1024 allows up to 1024MB of externals");
-
DEFINE_FLAG(bool, keep_code, false,
"Keep deoptimized code for profiling.");
-
DECLARE_FLAG(bool, print_class_table);
DECLARE_FLAG(bool, trace_isolates);
@@ -129,10 +119,6 @@ const char* Dart::InitOnce(const uint8_t* vm_isolate_snapshot,
StackZone zone(vm_isolate_);
HandleScope handle_scope(vm_isolate_);
- Heap::Init(vm_isolate_,
- 0, // New gen size 0; VM isolate should only allocate in old.
- FLAG_old_gen_heap_size * MBInWords,
- FLAG_external_max_size * MBInWords);
Object::InitNull(vm_isolate_);
ObjectStore::Init(vm_isolate_);
TargetCPUFeatures::InitOnce();
@@ -250,10 +236,6 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_buffer, void* data) {
ASSERT(isolate != NULL);
StackZone zone(isolate);
HandleScope handle_scope(isolate);
- Heap::Init(isolate,
- FLAG_new_gen_semi_max_size * MBInWords,
- FLAG_old_gen_heap_size * MBInWords,
- FLAG_external_max_size * MBInWords);
ObjectStore::Init(isolate);
// Setup for profiling.
« no previous file with comments | « runtime/vm/assembler_x64.cc ('k') | runtime/vm/heap.h » ('j') | runtime/vm/isolate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698