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

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

Issue 12033056: Implement "one-shot" interceptors. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 String visitReturn(HReturn node) => "Return ${temporaryId(node.inputs[0])}"; 441 String visitReturn(HReturn node) => "Return ${temporaryId(node.inputs[0])}";
442 442
443 String visitShiftLeft(HShiftLeft node) => handleInvokeBinary(node, '<<'); 443 String visitShiftLeft(HShiftLeft node) => handleInvokeBinary(node, '<<');
444 444
445 String visitStatic(HStatic node) 445 String visitStatic(HStatic node)
446 => "Static ${node.element.name.slowToString()}"; 446 => "Static ${node.element.name.slowToString()}";
447 447
448 String visitLazyStatic(HLazyStatic node) 448 String visitLazyStatic(HLazyStatic node)
449 => "LazyStatic ${node.element.name.slowToString()}"; 449 => "LazyStatic ${node.element.name.slowToString()}";
450 450
451 String visitOneShotInterceptor(HOneShotInterceptor node)
452 => visitInvokeDynamic(node, "one shot interceptor");
453
451 String visitStaticStore(HStaticStore node) { 454 String visitStaticStore(HStaticStore node) {
452 String lhs = node.element.name.slowToString(); 455 String lhs = node.element.name.slowToString();
453 return "Static $lhs = ${temporaryId(node.inputs[0])}"; 456 return "Static $lhs = ${temporaryId(node.inputs[0])}";
454 } 457 }
455 458
456 String visitStringConcat(HStringConcat node) { 459 String visitStringConcat(HStringConcat node) {
457 var leftId = temporaryId(node.left); 460 var leftId = temporaryId(node.left);
458 var rightId = temporaryId(node.right); 461 var rightId = temporaryId(node.right);
459 return "StringConcat: $leftId + $rightId"; 462 return "StringConcat: $leftId + $rightId";
460 } 463 }
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 } 554 }
552 555
553 String visitTypeConversion(HTypeConversion node) { 556 String visitTypeConversion(HTypeConversion node) {
554 return "TypeConversion: ${temporaryId(node.checkedInput)} to ${node.type}"; 557 return "TypeConversion: ${temporaryId(node.checkedInput)} to ${node.type}";
555 } 558 }
556 559
557 String visitRangeConversion(HRangeConversion node) { 560 String visitRangeConversion(HRangeConversion node) {
558 return "RangeConversion: ${node.checkedInput}"; 561 return "RangeConversion: ${node.checkedInput}";
559 } 562 }
560 } 563 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/optimize.dart ('k') | tests/compiler/dart2js/minify_many_locals_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698