| Index: runtime/vm/object_store.h
|
| diff --git a/runtime/vm/object_store.h b/runtime/vm/object_store.h
|
| index 92be955561599b0c55c3689fe4305c23b3f32d5f..534e51683aa5a17859d8f4c12d0a3fd06dfe29fc 100644
|
| --- a/runtime/vm/object_store.h
|
| +++ b/runtime/vm/object_store.h
|
| @@ -564,9 +564,6 @@ class ObjectStore {
|
| RawFunction* handle_message_function_;
|
| RawArray* library_load_error_table_;
|
| RawArray* compile_time_constants_;
|
| - RawObject** to_snapshot() {
|
| - return reinterpret_cast<RawObject**>(&compile_time_constants_);
|
| - }
|
| RawArray* unique_dynamic_targets_;
|
| RawGrowableObjectArray* token_objects_;
|
| RawArray* token_objects_map_;
|
| @@ -576,6 +573,20 @@ class ObjectStore {
|
| RawObject** to() {
|
| return reinterpret_cast<RawObject**>(&megamorphic_miss_function_);
|
| }
|
| + RawObject** to_snapshot(Snapshot::Kind kind) {
|
| + switch (kind) {
|
| + case Snapshot::kCore:
|
| + return reinterpret_cast<RawObject**>(&compile_time_constants_);
|
| + case Snapshot::kAppWithJIT:
|
| + case Snapshot::kAppNoJIT:
|
| + return to();
|
| + case Snapshot::kScript:
|
| + case Snapshot::kMessage:
|
| + break;
|
| + }
|
| + UNREACHABLE();
|
| + return NULL;
|
| + }
|
|
|
| friend class FullSnapshotWriter;
|
| friend class SnapshotReader;
|
|
|