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

Unified Diff: runtime/vm/raw_object.h

Issue 12529008: Collect type feedback for fields. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: runtime/vm/raw_object.h
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h
index 124f341a20a41d0968e3e3e000979501661c3c00..2809e96fbccee5792f7433da70b86bf78154b981 100644
--- a/runtime/vm/raw_object.h
+++ b/runtime/vm/raw_object.h
@@ -664,9 +664,15 @@ class RawField : public RawObject {
// where this field is defined.
RawAbstractType* type_;
RawInstance* value_; // Offset in words for instance and value for static.
- RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->value_); }
+ RawArray* dependent_code_;
+ RawObject** to() {
+ return reinterpret_cast<RawObject**>(&ptr()->dependent_code_);
+ }
intptr_t token_pos_;
+ intptr_t guarded_cid_;
+ intptr_t is_nullable_; // kNullCid if field can contain null value and
+ // kIllegalCid otherwise.
uint8_t kind_bits_; // static, final, const, has initializer.
};
@@ -809,8 +815,9 @@ class RawCode : public RawObject {
RawArray* stackmaps_;
RawLocalVarDescriptors* var_descriptors_;
RawArray* comments_;
+ RawArray* guarded_fields_;
RawObject** to() {
- return reinterpret_cast<RawObject**>(&ptr()->comments_);
+ return reinterpret_cast<RawObject**>(&ptr()->guarded_fields_);
}
intptr_t pointer_offsets_length_;

Powered by Google App Engine
This is Rietveld 408576698