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

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
Index: runtime/vm/raw_object.h
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h
index bacbfe82f274c3c6a75c35a24193d29ad6a0dc1d..ff929c5a602d2a5b999ef0a501a76edc35d5535f 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;
@@ -1098,6 +1102,7 @@ class RawInstructions : public RawObject {
friend class SkippedCodeFunctions;
friend class Function;
friend class InstructionsReader;
+ friend class InstructionsWriter;
};

Powered by Google App Engine
This is Rietveld 408576698