| Index: runtime/vm/dart.cc
|
| diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc
|
| index b68c88a9a95791441da67be72f0a13af8870323c..300e5b31e75817fd6e61f19895f7121252861033 100644
|
| --- a/runtime/vm/dart.cc
|
| +++ b/runtime/vm/dart.cc
|
| @@ -193,6 +193,11 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_buffer, void* data) {
|
| Object::VerifyBuiltinVtables();
|
|
|
| StubCode::Init(isolate);
|
| + if (snapshot_buffer == NULL) {
|
| + if (!isolate->object_store()->PreallocateObjects()) {
|
| + return isolate->object_store()->sticky_error();
|
| + }
|
| + }
|
| isolate->megamorphic_cache_table()->InitMissHandler();
|
|
|
| isolate->heap()->EnableGrowthControl();
|
|
|