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

Unified Diff: runtime/vm/flow_graph_builder.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, 5 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/flow_graph_builder.h
===================================================================
--- runtime/vm/flow_graph_builder.h (revision 10207)
+++ runtime/vm/flow_graph_builder.h (working copy)
@@ -147,8 +147,8 @@
PushArgumentInstr* PushArgument(Value* value);
protected:
- Computation* BuildStoreLocal(const LocalVariable& local, Value* value);
- Computation* BuildLoadLocal(const LocalVariable& local);
+ Computation* BuildStoreLocal(const LocalVariable* local, Value* value);
+ Computation* BuildLoadLocal(const LocalVariable* local);
// Helpers for translating parts of the AST.
void TranslateArgumentList(const ArgumentListNode& node,
@@ -217,8 +217,8 @@
void BuildConstructorCall(ConstructorCallNode* node,
PushArgumentInstr* alloc_value);
- void BuildStoreContext(const LocalVariable& variable);
- void BuildLoadContext(const LocalVariable& variable);
+ void BuildStoreContext(const LocalVariable* variable);
+ void BuildLoadContext(const LocalVariable* variable);
void BuildThrowNode(ThrowNode* node);

Powered by Google App Engine
This is Rietveld 408576698