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

Unified Diff: runtime/vm/raw_object.h

Issue 1151113002: Move bootstrap scripts and token streams to the VM isolate so that they become read only objects. T… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: self review Created 5 years, 7 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 217f30f4bf54851e7e75a45ce60e0de3add2c71d..6e2f5bd2eaeec416ef0caebd879360dde6a72247 100644
--- a/runtime/vm/raw_object.h
+++ b/runtime/vm/raw_object.h
@@ -389,6 +389,9 @@ class RawObject {
bool IsFreeListElement() {
return ((GetClassId() == kFreeListElement));
}
+ bool IsScript() {
+ return ((GetClassId() == kScriptCid));
+ }
intptr_t Size() const {
uword tags = ptr()->tags_;

Powered by Google App Engine
This is Rietveld 408576698