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

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

Issue 12090093: Reapply "Rename mappedBy to map." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed bug in previous commit. 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 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after
2996 if (leftType.canBeNull() && rightType.canBeNull()) { 2996 if (leftType.canBeNull() && rightType.canBeNull()) {
2997 if (left.isConstantNull() || right.isConstantNull() || 2997 if (left.isConstantNull() || right.isConstantNull() ||
2998 (leftType.isPrimitive() && leftType == rightType)) { 2998 (leftType.isPrimitive() && leftType == rightType)) {
2999 return '=='; 2999 return '==';
3000 } 3000 }
3001 return null; 3001 return null;
3002 } else { 3002 } else {
3003 return '==='; 3003 return '===';
3004 } 3004 }
3005 } 3005 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/lib/js_array.dart ('k') | sdk/lib/_internal/dartdoc/lib/dartdoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698