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

Unified Diff: runtime/vm/scopes.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
« runtime/vm/object.h ('K') | « runtime/vm/scopes.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/scopes.cc
===================================================================
--- runtime/vm/scopes.cc (revision 10207)
+++ runtime/vm/scopes.cc (working copy)
@@ -525,13 +525,13 @@
}
-bool LocalVariable::Equals(const LocalVariable& other) const {
- if (HasIndex() && other.HasIndex() && (index() == other.index())) {
- if (is_captured() == other.is_captured()) {
+bool LocalVariable::Equals(const LocalVariable* other) const {
+ if (HasIndex() && other->HasIndex() && (index() == other->index())) {
+ if (is_captured() == other->is_captured()) {
if (!is_captured()) {
return true;
}
- if (owner()->context_level() == other.owner()->context_level()) {
+ if (owner()->context_level() == other->owner()->context_level()) {
return true;
}
}
« runtime/vm/object.h ('K') | « runtime/vm/scopes.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698