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

Unified Diff: runtime/vm/dart.cc

Issue 17066009: Preallocate objects in Dart::InitializeIsolate not in Api::CheckIsolateState (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart.cc
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc
index b68c88a9a95791441da67be72f0a13af8870323c..77e419ecd886ddedbfb748dc04fd2b52f902f506 100644
--- a/runtime/vm/dart.cc
+++ b/runtime/vm/dart.cc
@@ -198,6 +198,9 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_buffer, void* data) {
isolate->heap()->EnableGrowthControl();
isolate->set_init_callback_data(data);
Api::SetupAcquiredError(isolate);
+ if (!isolate->object_store()->PreallocateObjects()) {
+ return isolate->object_store()->sticky_error();
+ }
siva 2013/06/21 00:55:29 Would be ideal to do this in the if (snapshot_buf
if (FLAG_print_class_table) {
isolate->class_table()->Print();
}
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698