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

Unified Diff: dart/lib/compiler/implementation/ssa/optimize.dart

Issue 10905211: Clean up operator names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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: dart/lib/compiler/implementation/ssa/optimize.dart
diff --git a/dart/lib/compiler/implementation/ssa/optimize.dart b/dart/lib/compiler/implementation/ssa/optimize.dart
index 44f876d806c5c6e18492c99ad109574164e5fc20..3a28edb0c76a1331a715faf9433e5eeaf4ca959f 100644
--- a/dart/lib/compiler/implementation/ssa/optimize.dart
+++ b/dart/lib/compiler/implementation/ssa/optimize.dart
@@ -455,7 +455,7 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase {
HType leftType = types[left];
if (leftType.isExact()) {
HBoundedType type = leftType;
- Element element = type.lookupMember(Elements.OPERATOR_EQUALS);
+ Element element = type.lookupMember(const SourceString('=='));
if (element !== null) {
// If the left-hand side is guaranteed to be a non-primitive
// type and and it defines operator==, we emit a call to that

Powered by Google App Engine
This is Rietveld 408576698