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

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

Issue 1385423002: dart2js cps_ir: Use interceptors for is-checks (version 2) (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: fix analyzer warnings Created 5 years, 2 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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 564
565 processTypeCast(TypeCast node) { 565 processTypeCast(TypeCast node) {
566 node.typeArguments.forEach((Reference ref) => ref.parent = node); 566 node.typeArguments.forEach((Reference ref) => ref.parent = node);
567 node.continuation.parent = node; 567 node.continuation.parent = node;
568 node.value.parent = node; 568 node.value.parent = node;
569 } 569 }
570 570
571 processTypeTest(TypeTest node) { 571 processTypeTest(TypeTest node) {
572 node.typeArguments.forEach((Reference ref) => ref.parent = node); 572 node.typeArguments.forEach((Reference ref) => ref.parent = node);
573 node.value.parent = node; 573 node.value.parent = node;
574 if (node.interceptor != null) node.interceptor.parent = node;
575 }
576
577 processTypeTestViaFlag(TypeTestViaFlag node) {
578 node.interceptor.parent = node;
574 } 579 }
575 580
576 processSetMutable(SetMutable node) { 581 processSetMutable(SetMutable node) {
577 node.variable.parent = node; 582 node.variable.parent = node;
578 node.value.parent = node; 583 node.value.parent = node;
579 } 584 }
580 585
581 processThrow(Throw node) { 586 processThrow(Throw node) {
582 node.value.parent = node; 587 node.value.parent = node;
583 } 588 }
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 } 746 }
742 747
743 String toString() => "$kind: $node"; 748 String toString() => "$kind: $node";
744 } 749 }
745 750
746 /// A dummy class used solely to mark nodes as deleted once they are removed 751 /// A dummy class used solely to mark nodes as deleted once they are removed
747 /// from a term. 752 /// from a term.
748 class _DeletedNode extends Node { 753 class _DeletedNode extends Node {
749 accept(_) => null; 754 accept(_) => null;
750 } 755 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart ('k') | pkg/compiler/lib/src/cps_ir/type_mask_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698