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

Unified Diff: runtime/vm/intermediate_language.cc

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/intermediate_language.cc
===================================================================
--- runtime/vm/intermediate_language.cc (revision 10207)
+++ runtime/vm/intermediate_language.cc (working copy)
@@ -457,8 +457,8 @@
void StoreLocalComp::RecordAssignedVars(BitVector* assigned_vars,
intptr_t fixed_parameter_count) {
- if (!local().is_captured()) {
- assigned_vars->Add(local().BitIndexIn(fixed_parameter_count));
+ if (!local()->is_captured()) {
+ assigned_vars->Add(local()->BitIndexIn(fixed_parameter_count));
}
}
@@ -754,7 +754,7 @@
RawAbstractType* LoadLocalComp::StaticType() const {
// TODO(regis): Verify that the type of the receiver is properly set.
if (FLAG_enable_type_checks) {
- return local().type().raw();
+ return local()->type().raw();
}
return Type::DynamicType();
}

Powered by Google App Engine
This is Rietveld 408576698