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

Side by Side Diff: dart/frog/leg/ssa/builder.dart

Issue 9020010: Support !=. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/
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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « dart/frog/leg/resolver.dart ('k') | dart/frog/tests/leg_only/src/NotEqualsTest.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 class SsaBuilderTask extends CompilerTask { 5 class SsaBuilderTask extends CompilerTask {
6 SsaBuilderTask(Compiler compiler) : super(compiler); 6 SsaBuilderTask(Compiler compiler) : super(compiler);
7 String get name() => 'SSA builder'; 7 String get name() => 'SSA builder';
8 8
9 HGraph build(FunctionElement element, TreeElements elements) { 9 HGraph build(FunctionElement element, TreeElements elements) {
10 return measure(() { 10 return measure(() {
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 case "|=": push(new HBitOr(target, left, right)); break; 604 case "|=": push(new HBitOr(target, left, right)); break;
605 case "&": 605 case "&":
606 case "&=": push(new HBitAnd(target, left, right)); break; 606 case "&=": push(new HBitAnd(target, left, right)); break;
607 case "^": 607 case "^":
608 case "^=": push(new HBitXor(target, left, right)); break; 608 case "^=": push(new HBitXor(target, left, right)); break;
609 case "==": push(new HEquals(target, left, right)); break; 609 case "==": push(new HEquals(target, left, right)); break;
610 case "<": push(new HLess(target, left, right)); break; 610 case "<": push(new HLess(target, left, right)); break;
611 case "<=": push(new HLessEqual(target, left, right)); break; 611 case "<=": push(new HLessEqual(target, left, right)); break;
612 case ">": push(new HGreater(target, left, right)); break; 612 case ">": push(new HGreater(target, left, right)); break;
613 case ">=": push(new HGreaterEqual(target, left, right)); break; 613 case ">=": push(new HGreaterEqual(target, left, right)); break;
614 case "!=":
615 HEquals eq = new HEquals(target, left, right);
616 add(eq);
617 HBoolify bl = new HBoolify(eq);
618 add(bl);
619 push(new HNot(bl));
620 break;
614 default: compiler.unimplemented("SsaBuilder.visitBinary"); 621 default: compiler.unimplemented("SsaBuilder.visitBinary");
615 } 622 }
616 } 623 }
617 624
618 void generateGetter(Send send, Element element) { 625 void generateGetter(Send send, Element element) {
619 if (Elements.isStaticOrTopLevelField(element)) { 626 if (Elements.isStaticOrTopLevelField(element)) {
620 push(new HStatic(element)); 627 push(new HStatic(element));
621 } else if (Elements.isInstanceField(element)) { 628 } else if (Elements.isInstanceField(element)) {
622 String methodName = compiler.namer.getterName(element.name); 629 String methodName = compiler.namer.getterName(element.name);
623 HInstruction receiver = new HThis(); 630 HInstruction receiver = new HThis();
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 982
976 visitStringInterpolation(StringInterpolation node) { 983 visitStringInterpolation(StringInterpolation node) {
977 compiler.unimplemented('SsaBuilder.visitStringInterpolation', node: node); 984 compiler.unimplemented('SsaBuilder.visitStringInterpolation', node: node);
978 } 985 }
979 986
980 visitStringInterpolationPart(StringInterpolationPart node) { 987 visitStringInterpolationPart(StringInterpolationPart node) {
981 compiler.unimplemented('SsaBuilder.visitStringInterpolationPart', 988 compiler.unimplemented('SsaBuilder.visitStringInterpolationPart',
982 node: node); 989 node: node);
983 } 990 }
984 } 991 }
OLDNEW
« no previous file with comments | « dart/frog/leg/resolver.dart ('k') | dart/frog/tests/leg_only/src/NotEqualsTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698