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

Side by Side Diff: lib/compiler/implementation/ssa/builder.dart

Issue 10697068: Change dart2js to follow the new spec on the equality operator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 Interceptors { 5 class Interceptors {
6 Compiler compiler; 6 Compiler compiler;
7 Interceptors(Compiler this.compiler); 7 Interceptors(Compiler this.compiler);
8 8
9 SourceString mapOperatorToMethodName(Operator op) { 9 SourceString mapOperatorToMethodName(Operator op) {
10 String name = op.source.stringValue; 10 String name = op.source.stringValue;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 90 }
91 91
92 Element getIndexInterceptor() { 92 Element getIndexInterceptor() {
93 return compiler.findHelper(const SourceString('index')); 93 return compiler.findHelper(const SourceString('index'));
94 } 94 }
95 95
96 Element getIndexAssignmentInterceptor() { 96 Element getIndexAssignmentInterceptor() {
97 return compiler.findHelper(const SourceString('indexSet')); 97 return compiler.findHelper(const SourceString('indexSet'));
98 } 98 }
99 99
100 Element getEqualsNullInterceptor() {
101 return compiler.findHelper(const SourceString('eqNull'));
102 }
103
104 Element getExceptionUnwrapper() { 100 Element getExceptionUnwrapper() {
105 return compiler.findHelper(const SourceString('unwrapException')); 101 return compiler.findHelper(const SourceString('unwrapException'));
106 } 102 }
107 103
108 Element getClosureConverter() { 104 Element getClosureConverter() {
109 return compiler.findHelper(const SourceString('convertDartClosureToJS')); 105 return compiler.findHelper(const SourceString('convertDartClosureToJS'));
110 } 106 }
111 107
112 Element getTraceFromException() { 108 Element getTraceFromException() {
113 return compiler.findHelper(const SourceString('getTraceFromException')); 109 return compiler.findHelper(const SourceString('getTraceFromException'));
(...skipping 3364 matching lines...) Expand 10 before | Expand all | Expand 10 after
3478 void visitNodeList(NodeList node) { 3474 void visitNodeList(NodeList node) {
3479 node.visitChildren(this); 3475 node.visitChildren(this);
3480 } 3476 }
3481 3477
3482 HInstruction concat(HInstruction left, HInstruction right) { 3478 HInstruction concat(HInstruction left, HInstruction right) {
3483 HInstruction instruction = new HStringConcat(left, right, diagnosticNode); 3479 HInstruction instruction = new HStringConcat(left, right, diagnosticNode);
3484 builder.add(instruction); 3480 builder.add(instruction);
3485 return instruction; 3481 return instruction;
3486 } 3482 }
3487 } 3483 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698