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

Unified Diff: runtime/vm/object.h

Issue 9863043: Inline checks for super class and interfaces (checked mdoe improvements). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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
« runtime/vm/code_generator_ia32.cc ('K') | « runtime/vm/code_generator_ia32.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 5889)
+++ runtime/vm/object.h (working copy)
@@ -520,6 +520,9 @@
// The super type of this class, Object type if not explicitly specified.
RawType* super_type() const { return raw_ptr()->super_type_; }
void set_super_type(const Type& value) const;
+ static intptr_t super_type_offset() {
+ return OFFSET_OF(RawClass, super_type_);
+ }
// Asserts that the class of the super type has been resolved.
RawClass* SuperClass() const;
@@ -542,6 +545,9 @@
// Interfaces is an array of Types.
RawArray* interfaces() const { return raw_ptr()->interfaces_; }
void set_interfaces(const Array& value) const;
+ static intptr_t interfaces_offset() {
+ return OFFSET_OF(RawClass, interfaces_);
+ }
RawArray* functions_cache() const { return raw_ptr()->functions_cache_; }
void set_functions_cache(const Array& value) const;
« runtime/vm/code_generator_ia32.cc ('K') | « runtime/vm/code_generator_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698