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

Unified Diff: runtime/vm/object.h

Issue 23190003: ClassMirror.mixin (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years, 4 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 d591d4ecdbc7f1ad040f30da81411afd488ea391..39896d9b313ea0d8e7e9a90d2f8c85bdafb94fe1 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -922,6 +922,11 @@ class Class : public Object {
bool is_const() const { return ConstBit::decode(raw_ptr()->state_bits_); }
void set_is_const() const;
+ bool is_mixin_typedef() const {
+ return MixinTypedefBit::decode(raw_ptr()->state_bits_);
+ }
+ void set_is_mixin_typedef() const;
+
int num_native_fields() const {
return raw_ptr()->num_native_fields_;
}
@@ -1012,6 +1017,7 @@ class Class : public Object {
kStateTagBit = 6,
kStateTagSize = 2,
kMarkedForParsingBit = 8,
+ kMixinTypedefBit = 9,
};
class ConstBit : public BitField<bool, kConstBit, 1> {};
class ImplementedBit : public BitField<bool, kImplementedBit, 1> {};
@@ -1022,6 +1028,7 @@ class Class : public Object {
class StateBits : public BitField<RawClass::ClassState,
kStateTagBit, kStateTagSize> {}; // NOLINT
class MarkedForParsingBit : public BitField<bool, kMarkedForParsingBit, 1> {};
+ class MixinTypedefBit : public BitField<bool, kMixinTypedefBit, 1> {};
void set_name(const String& value) const;
void set_signature_function(const Function& value) const;

Powered by Google App Engine
This is Rietveld 408576698