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

Side by Side Diff: pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart

Issue 1195573003: dart2js cps: Refactor and optimize string concatenations. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Revert doc comment change Created 5 years, 6 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 dart2js.cps_ir.shrinking_reductions; 5 library dart2js.cps_ir.shrinking_reductions;
6 6
7 import 'cps_ir_nodes.dart'; 7 import 'cps_ir_nodes.dart';
8 import 'optimizers.dart'; 8 import 'optimizers.dart';
9 9
10 /** 10 /**
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 node.receiver.parent = node; 550 node.receiver.parent = node;
551 node.continuation.parent = node; 551 node.continuation.parent = node;
552 node.arguments.forEach((Reference ref) => ref.parent = node); 552 node.arguments.forEach((Reference ref) => ref.parent = node);
553 } 553 }
554 554
555 processInvokeConstructor(InvokeConstructor node) { 555 processInvokeConstructor(InvokeConstructor node) {
556 node.continuation.parent = node; 556 node.continuation.parent = node;
557 node.arguments.forEach((Reference ref) => ref.parent = node); 557 node.arguments.forEach((Reference ref) => ref.parent = node);
558 } 558 }
559 559
560 processConcatenateStrings(ConcatenateStrings node) {
561 node.continuation.parent = node;
562 node.arguments.forEach((Reference ref) => ref.parent = node);
563 }
564
565 processBranch(Branch node) { 560 processBranch(Branch node) {
566 node.condition.parent = node; 561 node.condition.parent = node;
567 node.trueContinuation.parent = node; 562 node.trueContinuation.parent = node;
568 node.falseContinuation.parent = node; 563 node.falseContinuation.parent = node;
569 } 564 }
570 565
571 processTypeCast(TypeCast node) { 566 processTypeCast(TypeCast node) {
572 node.typeArguments.forEach((Reference ref) => ref.parent = node); 567 node.typeArguments.forEach((Reference ref) => ref.parent = node);
573 node.continuation.parent = node; 568 node.continuation.parent = node;
574 node.value.parent = node; 569 node.value.parent = node;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 } 720 }
726 721
727 String toString() => "$kind: $node"; 722 String toString() => "$kind: $node";
728 } 723 }
729 724
730 /// A dummy class used solely to mark nodes as deleted once they are removed 725 /// A dummy class used solely to mark nodes as deleted once they are removed
731 /// from a term. 726 /// from a term.
732 class _DeletedNode extends Node { 727 class _DeletedNode extends Node {
733 accept(_) => null; 728 accept(_) => null;
734 } 729 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart ('k') | pkg/compiler/lib/src/cps_ir/type_propagation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698