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

Unified Diff: src/vm/program.h

Issue 2067483002: More compact snapshots. (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Feedback Created 4 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 | « src/vm/interpreter_arm.cc ('k') | src/vm/program.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/vm/program.h
diff --git a/src/vm/program.h b/src/vm/program.h
index cef0a1338ef8b0a62cf4d43306f698942b8ef50f..6f31b8543d07ae35f9c82e7af412f1fea06a980e 100644
--- a/src/vm/program.h
+++ b/src/vm/program.h
@@ -35,10 +35,12 @@ class Session;
V(Instance, false_object, FalseObject) \
V(Instance, true_object, TrueObject) \
/* Global literals up to this line */ \
+ V(Class, smi_class, SmiClass) \
+ /* The order of null, false, true and smi_class is used by */ \
+ /* the ARM interpreter. */ \
V(Array, empty_array, EmptyArray) \
V(OneByteString, empty_string, EmptyString) \
V(Class, meta_class, MetaClass) \
- V(Class, smi_class, SmiClass) \
V(Class, boxed_class, BoxedClass) \
V(Class, large_integer_class, LargeIntegerClass) \
V(Class, num_class, NumClass) \
@@ -75,7 +77,6 @@ class Session;
V(Array, static_fields, StaticFields) \
V(Array, dispatch_table, DispatchTable)
-
typedef DoubleList<Process> ProcessList;
typedef DoubleList<Process, 2> ProcessQueueList;
typedef DoubleList<Program> ProgramList;
@@ -298,6 +299,7 @@ class Program : public ProgramList::Entry {
// Iterates over all roots in the program.
void IterateRoots(PointerVisitor* visitor);
void IterateRootsIgnoringSession(PointerVisitor* visitor);
+ void VerifyObjectPlacements();
// Dispatch table support.
void ClearDispatchTableIntrinsics();
« no previous file with comments | « src/vm/interpreter_arm.cc ('k') | src/vm/program.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698