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

Unified Diff: runtime/vm/object.h

Issue 1217323002: Intrinsic version of Object.runtimeType (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: more Created 5 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
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index ad21c1a9e86644fcafee1911753697570cebf6c4..32bb6a63e82889b14c3bd09202902fdba73118ea 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -1049,6 +1049,9 @@ class Class : public Object {
}
return reinterpret_cast<RawType*>(Object::null());
}
+ static intptr_t canonical_types_offset() {
+ return OFFSET_OF(RawClass, canonical_types_);
+ }
// The super type of this class, Object type if not explicitly specified.
// Note that the super type may be bounded, as in this example:
@@ -1442,6 +1445,9 @@ class Class : public Object {
return raw_ptr()->num_type_arguments_;
}
void set_num_type_arguments(intptr_t value) const;
+ static intptr_t num_type_arguments_offset() {
+ return OFFSET_OF(RawClass, num_type_arguments_);
+ }
int16_t num_own_type_arguments() const {
return raw_ptr()->num_own_type_arguments_;
@@ -1484,6 +1490,7 @@ class Class : public Object {
friend class Instance;
friend class Object;
friend class Type;
+ friend class Intrinsifier;
};

Powered by Google App Engine
This is Rietveld 408576698