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

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

Issue 11543017: Revert r16032: it revealed a bug in our bailout environment computation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
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 library tracer; 5 library tracer;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 import 'ssa.dart'; 8 import 'ssa.dart';
9 import '../js_backend/js_backend.dart'; 9 import '../js_backend/js_backend.dart';
10 import '../dart2jslib.dart'; 10 import '../dart2jslib.dart';
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 String visitGenericInvoke(String invokeType, String functionName, 299 String visitGenericInvoke(String invokeType, String functionName,
300 List<HInstruction> arguments) { 300 List<HInstruction> arguments) {
301 StringBuffer argumentsString = new StringBuffer(); 301 StringBuffer argumentsString = new StringBuffer();
302 for (int i = 0; i < arguments.length; i++) { 302 for (int i = 0; i < arguments.length; i++) {
303 if (i != 0) argumentsString.add(", "); 303 if (i != 0) argumentsString.add(", ");
304 argumentsString.add(temporaryId(arguments[i])); 304 argumentsString.add(temporaryId(arguments[i]));
305 } 305 }
306 return "$invokeType: $functionName($argumentsString)"; 306 return "$invokeType: $functionName($argumentsString)";
307 } 307 }
308 308
309 String visitIndex(HIndex node) { 309 String visitIndex(HIndex node) => visitInvokeStatic(node);
310 String receiver = temporaryId(node.receiver);
311 String index = temporaryId(node.index);
312 return "Index: $receiver[$index]";
313 }
314
315 String visitIndexAssign(HIndexAssign node) => visitInvokeStatic(node); 310 String visitIndexAssign(HIndexAssign node) => visitInvokeStatic(node);
316 311
317 String visitIntegerCheck(HIntegerCheck node) { 312 String visitIntegerCheck(HIntegerCheck node) {
318 String value = temporaryId(node.value); 313 String value = temporaryId(node.value);
319 return "Integer check: $value"; 314 return "Integer check: $value";
320 } 315 }
321 316
322 String visitInterceptor(HInterceptor node) { 317 String visitInterceptor(HInterceptor node) {
323 String value = temporaryId(node.inputs[0]); 318 String value = temporaryId(node.inputs[0]);
324 return "Intercept: $value"; 319 return "Intercept: $value";
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 } 530 }
536 531
537 String visitTypeConversion(HTypeConversion node) { 532 String visitTypeConversion(HTypeConversion node) {
538 return "TypeConversion: ${temporaryId(node.checkedInput)} to ${node.type}"; 533 return "TypeConversion: ${temporaryId(node.checkedInput)} to ${node.type}";
539 } 534 }
540 535
541 String visitRangeConversion(HRangeConversion node) { 536 String visitRangeConversion(HRangeConversion node) {
542 return "RangeConversion: ${node.checkedInput}"; 537 return "RangeConversion: ${node.checkedInput}";
543 } 538 }
544 } 539 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/optimize.dart ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698