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

Unified Diff: runtime/vm/object.h

Issue 10832126: Store pointer instead of reference to LocalVariable in ast and flow graph. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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/code_generator_test.cc ('k') | runtime/vm/parser.h » ('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 10320)
+++ runtime/vm/object.h (working copy)
@@ -1359,7 +1359,6 @@
bool HasInstantiatedSignature() const;
RawClass* owner() const { return raw_ptr()->owner_; }
- void set_owner(const Class& value) const;
RawAbstractType* result_type() const { return raw_ptr()->result_type_; }
void set_result_type(const AbstractType& value) const;
@@ -1632,6 +1631,7 @@
void set_is_const(bool is_const) const;
void set_is_external(bool value) const;
void set_parent_function(const Function& value) const;
+ void set_owner(const Class& value) const;
void set_token_pos(intptr_t value) const;
void set_implicit_closure_function(const Function& value) const;
static RawFunction* New();
@@ -1676,9 +1676,6 @@
void set_value(const Instance& value) const;
RawClass* owner() const { return raw_ptr()->owner_; }
- void set_owner(const Class& value) const {
- StorePointer(&raw_ptr()->owner_, value.raw());
- }
RawAbstractType* type() const { return raw_ptr()->type_; }
void set_type(const AbstractType& value) const;
@@ -1724,6 +1721,9 @@
void set_is_const(bool value) const {
raw_ptr()->is_const_ = value;
}
+ void set_owner(const Class& value) const {
+ StorePointer(&raw_ptr()->owner_, value.raw());
+ }
void set_token_pos(intptr_t token_pos) const {
raw_ptr()->token_pos_ = token_pos;
}
« no previous file with comments | « runtime/vm/code_generator_test.cc ('k') | runtime/vm/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698