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

Unified Diff: runtime/vm/raw_object.h

Issue 1336763002: Last snapshot bits to get working precompiled hello_world on x64. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 | « runtime/vm/precompiler.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object.h
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h
index 2110436b0ceb200a95d667d31bea81e3b66ada38..cef2223f7a70706d4c2ee0ce8684a6ef12f7864f 100644
--- a/runtime/vm/raw_object.h
+++ b/runtime/vm/raw_object.h
@@ -410,6 +410,9 @@ class RawObject {
bool IsFunction() {
return ((GetClassId() == kFunctionCid));
}
+ bool IsInstructions() {
+ return ((GetClassId() == kInstructionsCid));
+ }
intptr_t Size() const {
uword tags = ptr()->tags_;
@@ -585,6 +588,7 @@ class RawObject {
friend class RetainingPathVisitor; // GetClassId
friend class SkippedCodeFunctions; // StorePointer
friend class InstructionsReader; // tags_ check
+ friend class InstructionsWriter;
friend class SnapshotReader;
friend class SnapshotWriter;
friend class String;
@@ -1100,6 +1104,7 @@ class RawInstructions : public RawObject {
friend class SkippedCodeFunctions;
friend class Function;
friend class InstructionsReader;
+ friend class InstructionsWriter;
};
« no previous file with comments | « runtime/vm/precompiler.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698