Chromium Code Reviews| Index: runtime/vm/object_store.h |
| diff --git a/runtime/vm/object_store.h b/runtime/vm/object_store.h |
| index 92be955561599b0c55c3689fe4305c23b3f32d5f..21a762006cc7f42195931d481b00cb5cbc9ae7e8 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 reinterpret_cast<RawObject**>(&megamorphic_miss_function_); |
|
siva
2016/04/26 22:27:47
return to();
rmacnak
2016/04/26 23:38:23
Done.
|
| + case Snapshot::kScript: |
| + case Snapshot::kMessage: |
| + break; |
| + } |
| + UNREACHABLE(); |
| + return NULL; |
| + } |
| friend class FullSnapshotWriter; |
| friend class SnapshotReader; |