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

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
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('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
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index b732d3d60a545f7ee47f23437caadd04b533584c..8733c424e1ba8191470299a7c8b48edd43278ada 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_;
}
@@ -1017,6 +1022,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> {};
@@ -1027,6 +1033,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;
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698