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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart

Issue 12086062: Rename mappedBy to map. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 part of ssa; 5 part of ssa;
6 6
7 class SsaCodeGeneratorTask extends CompilerTask { 7 class SsaCodeGeneratorTask extends CompilerTask {
8 8
9 final JavaScriptBackend backend; 9 final JavaScriptBackend backend;
10 10
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1207 ready.add(current); 1207 ready.add(current);
1208 } 1208 }
1209 } 1209 }
1210 } 1210 }
1211 1211
1212 void assignPhisOfSuccessors(HBasicBlock node) { 1212 void assignPhisOfSuccessors(HBasicBlock node) {
1213 CopyHandler handler = variableNames.getCopyHandler(node); 1213 CopyHandler handler = variableNames.getCopyHandler(node);
1214 if (handler == null) return; 1214 if (handler == null) return;
1215 1215
1216 // Map the instructions to strings. 1216 // Map the instructions to strings.
1217 Iterable<Copy> copies = handler.copies.mappedBy((Copy copy) { 1217 Iterable<Copy> copies = handler.copies.map((Copy copy) {
1218 return new Copy(variableNames.getName(copy.source), 1218 return new Copy(variableNames.getName(copy.source),
1219 variableNames.getName(copy.destination)); 1219 variableNames.getName(copy.destination));
1220 }); 1220 });
1221 1221
1222 sequentializeCopies(copies, variableNames.getSwapTemp(), emitAssignment); 1222 sequentializeCopies(copies, variableNames.getSwapTemp(), emitAssignment);
1223 1223
1224 for (Copy copy in handler.assignments) { 1224 for (Copy copy in handler.assignments) {
1225 String name = variableNames.getName(copy.destination); 1225 String name = variableNames.getName(copy.destination);
1226 use(copy.source); 1226 use(copy.source);
1227 assignVariable(name, pop()); 1227 assignVariable(name, pop());
(...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after
2995 if (leftType.canBeNull() && rightType.canBeNull()) { 2995 if (leftType.canBeNull() && rightType.canBeNull()) {
2996 if (left.isConstantNull() || right.isConstantNull() || 2996 if (left.isConstantNull() || right.isConstantNull() ||
2997 (leftType.isPrimitive() && leftType == rightType)) { 2997 (leftType.isPrimitive() && leftType == rightType)) {
2998 return '=='; 2998 return '==';
2999 } 2999 }
3000 return null; 3000 return null;
3001 } else { 3001 } else {
3002 return '==='; 3002 return '===';
3003 } 3003 }
3004 } 3004 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698