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: dart/lib/compiler/implementation/ssa/builder.dart

Issue 10892005: Revert "Support unary - operator." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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
« no previous file with comments | « dart/lib/compiler/implementation/scanner/token.dart ('k') | dart/lib/compiler/implementation/universe.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/ssa/builder.dart
diff --git a/dart/lib/compiler/implementation/ssa/builder.dart b/dart/lib/compiler/implementation/ssa/builder.dart
index 3c329b1d1c256839922055dd52ea213f060a402c..93d83a5dd78b566ace22ff9ddf3636c648c07274 100644
--- a/dart/lib/compiler/implementation/ssa/builder.dart
+++ b/dart/lib/compiler/implementation/ssa/builder.dart
@@ -2192,12 +2192,15 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
bool isNotEquals = false;
if (node.isIndex && !node.arguments.tail.isEmpty()) {
dartMethodName = Elements.constructOperatorName(
- const SourceString('[]='), false);
+ const SourceString('operator'),
+ const SourceString('[]='));
} else if (node.selector.asOperator() != null) {
SourceString name = node.selector.asIdentifier().source;
isNotEquals = name.stringValue === '!=';
dartMethodName = Elements.constructOperatorName(
- name, node.argumentsNode is Prefix);
+ const SourceString('operator'),
+ name,
+ node.argumentsNode is Prefix);
} else {
dartMethodName = node.selector.asIdentifier().source;
}
« no previous file with comments | « dart/lib/compiler/implementation/scanner/token.dart ('k') | dart/lib/compiler/implementation/universe.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698