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

Unified Diff: vm/scopes.cc

Issue 8919025: Added type propagation from store to load locals, but only within a sequence node (not across bas... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years 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 | « vm/scopes.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/scopes.cc
===================================================================
--- vm/scopes.cc (revision 2360)
+++ vm/scopes.cc (working copy)
@@ -410,4 +410,19 @@
return context_scope.raw();
}
+
+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()) {
+ return true;
+ }
+ }
+ }
+ return false;
+}
+
} // namespace dart
« no previous file with comments | « vm/scopes.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698