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

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

Issue 11348316: Move the handling of operator[] into the new interceptors. (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) => visitInvokeStatic(node); 309 String visitIndex(HIndex node) {
310 String receiver = temporaryId(node.receiver);
311 String index = temporaryId(node.index);
312 return "Index: $receiver[$index]";
313 }
314
310 String visitIndexAssign(HIndexAssign node) => visitInvokeStatic(node); 315 String visitIndexAssign(HIndexAssign node) => visitInvokeStatic(node);
311 316
312 String visitIntegerCheck(HIntegerCheck node) { 317 String visitIntegerCheck(HIntegerCheck node) {
313 String value = temporaryId(node.value); 318 String value = temporaryId(node.value);
314 return "Integer check: $value"; 319 return "Integer check: $value";
315 } 320 }
316 321
317 String visitInterceptor(HInterceptor node) { 322 String visitInterceptor(HInterceptor node) {
318 String value = temporaryId(node.inputs[0]); 323 String value = temporaryId(node.inputs[0]);
319 return "Intercept: $value"; 324 return "Intercept: $value";
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 } 535 }
531 536
532 String visitTypeConversion(HTypeConversion node) { 537 String visitTypeConversion(HTypeConversion node) {
533 return "TypeConversion: ${temporaryId(node.checkedInput)} to ${node.type}"; 538 return "TypeConversion: ${temporaryId(node.checkedInput)} to ${node.type}";
534 } 539 }
535 540
536 String visitRangeConversion(HRangeConversion node) { 541 String visitRangeConversion(HRangeConversion node) {
537 return "RangeConversion: ${node.checkedInput}"; 542 return "RangeConversion: ${node.checkedInput}";
538 } 543 }
539 } 544 }
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