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

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

Issue 10905211: Clean up operator names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 8 years, 1 month 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/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart b/dart/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
index 8595cc5b9b1b02275584493dd1b622d64e19ac25..6333b0e147d6325fa4013090c8fdf40c83f7f00c 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
@@ -459,7 +459,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