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

Unified Diff: runtime/vm/raw_object.h

Issue 1584443002: VM: Precompiled rodata snapshot. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: compute string hash if necessary Created 4 years, 10 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/pages.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 c7c44a28f052115f1b65cd92431728a4d573ee91..9f394f990715781e5fa70f96a3ce0df52f45a4fb 100644
--- a/runtime/vm/raw_object.h
+++ b/runtime/vm/raw_object.h
@@ -436,6 +436,15 @@ class RawObject {
bool IsString() {
return IsStringClassId(GetClassId());
}
+ bool IsStackmap() {
+ return ((GetClassId() == kStackmapCid));
+ }
+ bool IsPcDescriptors() {
+ return ((GetClassId() == kPcDescriptorsCid));
+ }
+ bool IsOneByteString() {
+ return ((GetClassId() == kOneByteStringCid));
+ }
intptr_t Size() const {
uword tags = ptr()->tags_;
« no previous file with comments | « runtime/vm/pages.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698