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

Unified Diff: runtime/vm/object.h

Issue 363473004: Hide synthetic metadata field exposed in r35926. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « runtime/vm/dart.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
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 045eb0de181419f63be897ec3be14cc49e407e1b..7eeb868aa58268fb3bf8f53a847998df57f8895f 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -476,7 +476,6 @@ class Object {
static void InitFromSnapshot(Isolate* isolate);
static void InitOnce();
static void RegisterSingletonClassNames();
- static void CreateInternalMetaData();
static void MakeUnusedSpaceTraversable(const Object& obj,
intptr_t original_size,
intptr_t used_size);
@@ -2171,6 +2170,9 @@ class Field : public Object {
bool is_static() const { return StaticBit::decode(raw_ptr()->kind_bits_); }
bool is_final() const { return FinalBit::decode(raw_ptr()->kind_bits_); }
bool is_const() const { return ConstBit::decode(raw_ptr()->kind_bits_); }
+ bool is_synthetic() const {
+ return SyntheticBit::decode(raw_ptr()->kind_bits_);
+ }
inline intptr_t Offset() const;
inline void SetOffset(intptr_t value_in_bytes) const;
@@ -2192,6 +2194,7 @@ class Field : public Object {
bool is_static,
bool is_final,
bool is_const,
+ bool is_synthetic,
const Class& owner,
intptr_t token_pos);
@@ -2326,7 +2329,8 @@ class Field : public Object {
kStaticBit,
kFinalBit,
kHasInitializerBit,
- kUnboxingCandidateBit
+ kUnboxingCandidateBit,
+ kSyntheticBit
};
class ConstBit : public BitField<bool, kConstBit, 1> {};
class StaticBit : public BitField<bool, kStaticBit, 1> {};
@@ -2335,6 +2339,7 @@ class Field : public Object {
class UnboxingCandidateBit : public BitField<bool,
kUnboxingCandidateBit, 1> {
};
+ class SyntheticBit : public BitField<bool, kSyntheticBit, 1> {};
// Update guarded cid and guarded length for this field. Returns true, if
// deoptimization of dependent code is required.
@@ -2350,6 +2355,9 @@ class Field : public Object {
void set_is_const(bool value) const {
set_kind_bits(ConstBit::update(value, raw_ptr()->kind_bits_));
}
+ void set_is_synthetic(bool value) const {
+ set_kind_bits(SyntheticBit::update(value, raw_ptr()->kind_bits_));
+ }
void set_owner(const Object& value) const {
StorePointer(&raw_ptr()->owner_, value.raw());
}
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698