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

Unified Diff: runtime/vm/object.h

Issue 11348283: Add flag 'implements' to class, it is set anytime someone implements this class. This is a way to r… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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/class_finalizer.cc ('k') | runtime/vm/object.cc » ('j') | 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 15471)
+++ runtime/vm/object.h (working copy)
@@ -681,6 +681,11 @@
}
void set_is_interface() const;
+ bool is_implemented() const {
+ return ImplementedBit::decode(raw_ptr()->state_bits_);
+ }
+ void set_is_implemented() const;
+
bool is_abstract() const {
return AbstractBit::decode(raw_ptr()->state_bits_);
}
@@ -757,12 +762,14 @@
enum {
kConstBit = 1,
kInterfaceBit = 2,
- kAbstractBit = 3,
- kStateTagBit = 4,
+ kImplementedBit = 3,
+ kAbstractBit = 4,
+ kStateTagBit = 5,
kStateTagSize = 2,
};
class ConstBit : public BitField<bool, kConstBit, 1> {};
class InterfaceBit : public BitField<bool, kInterfaceBit, 1> {};
+ class ImplementedBit : public BitField<bool, kImplementedBit, 1> {};
class AbstractBit : public BitField<bool, kAbstractBit, 1> {};
class StateBits : public BitField<RawClass::ClassState,
kStateTagBit, kStateTagSize> {}; // NOLINT
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698