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

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

Issue 106973008: Optimize num::~/, num::>> and num::<< for some cases. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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:async' show EventSink; 7 import 'dart:async' show EventSink;
8 8
9 import 'ssa.dart'; 9 import 'ssa.dart';
10 import '../js_backend/js_backend.dart'; 10 import '../js_backend/js_backend.dart';
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 } 471 }
472 472
473 String visitThis(HThis node) => "this"; 473 String visitThis(HThis node) => "this";
474 474
475 String visitThrow(HThrow node) => "Throw ${temporaryId(node.inputs[0])}"; 475 String visitThrow(HThrow node) => "Throw ${temporaryId(node.inputs[0])}";
476 476
477 String visitThrowExpression(HThrowExpression node) { 477 String visitThrowExpression(HThrowExpression node) {
478 return "ThrowExpression ${temporaryId(node.inputs[0])}"; 478 return "ThrowExpression ${temporaryId(node.inputs[0])}";
479 } 479 }
480 480
481 String visitTruncatingDivide(HTruncatingDivide node) {
482 return handleInvokeBinary(node, '~/');
483 }
484
481 String visitExitTry(HExitTry node) { 485 String visitExitTry(HExitTry node) {
482 return "Exit try"; 486 return "Exit try";
483 } 487 }
484 488
485 String visitTry(HTry node) { 489 String visitTry(HTry node) {
486 List<HBasicBlock> successors = currentBlock.successors; 490 List<HBasicBlock> successors = currentBlock.successors;
487 String tryBlock = 'B${successors[0].id}'; 491 String tryBlock = 'B${successors[0].id}';
488 String catchBlock = 'none'; 492 String catchBlock = 'none';
489 if (node.catchBlock != null) { 493 if (node.catchBlock != null) {
490 catchBlock = 'B${successors[1].id}'; 494 catchBlock = 'B${successors[1].id}';
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 } 539 }
536 540
537 String visitInterfaceType(HInterfaceType node) { 541 String visitInterfaceType(HInterfaceType node) {
538 return "InterfaceType: ${node.dartType}"; 542 return "InterfaceType: ${node.dartType}";
539 } 543 }
540 544
541 String visitDynamicType(HDynamicType node) { 545 String visitDynamicType(HDynamicType node) {
542 return "DynamicType"; 546 return "DynamicType";
543 } 547 }
544 } 548 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/nodes.dart ('k') | sdk/lib/_internal/lib/js_number.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698