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

Unified Diff: runtime/vm/object_store.h

Issue 1918313003: Split Snapshot::kFull into kCore, kAppWithJIT, and kAppNoJIT. Remove snapshot_code flag. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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/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;

Powered by Google App Engine
This is Rietveld 408576698