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

Side by Side Diff: pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.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 tree_ir.optimization.statement_rewriter; 5 library tree_ir.optimization.statement_rewriter;
6 6
7 import 'optimization.dart' show Pass; 7 import 'optimization.dart' show Pass;
8 import '../tree_ir_nodes.dart'; 8 import '../tree_ir_nodes.dart';
9 import '../../io/source_information.dart'; 9 import '../../io/source_information.dart';
10 10
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 730
731 Expression visitGetStatic(GetStatic node) { 731 Expression visitGetStatic(GetStatic node) {
732 return node; 732 return node;
733 } 733 }
734 734
735 Expression visitSetStatic(SetStatic node) { 735 Expression visitSetStatic(SetStatic node) {
736 node.value = visitExpression(node.value); 736 node.value = visitExpression(node.value);
737 return node; 737 return node;
738 } 738 }
739 739
740 Expression visitGetTypeTestProperty(GetTypeTestProperty node) {
741 node.object = visitExpression(node.object);
742 return node;
743 }
744
740 Expression visitCreateBox(CreateBox node) { 745 Expression visitCreateBox(CreateBox node) {
741 return node; 746 return node;
742 } 747 }
743 748
744 Expression visitCreateInstance(CreateInstance node) { 749 Expression visitCreateInstance(CreateInstance node) {
745 _rewriteList(node.arguments); 750 _rewriteList(node.arguments);
746 return node; 751 return node;
747 } 752 }
748 753
749 Expression visitReifyRuntimeType(ReifyRuntimeType node) { 754 Expression visitReifyRuntimeType(ReifyRuntimeType node) {
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 VariableUseVisitor(this.callback); 1239 VariableUseVisitor(this.callback);
1235 1240
1236 visitVariableUse(VariableUse use) => callback(use); 1241 visitVariableUse(VariableUse use) => callback(use);
1237 1242
1238 visitInnerFunction(FunctionDefinition node) {} 1243 visitInnerFunction(FunctionDefinition node) {}
1239 1244
1240 static void visit(Expression node, VariableUseCallback callback) { 1245 static void visit(Expression node, VariableUseCallback callback) {
1241 new VariableUseVisitor(callback).visitExpression(node); 1246 new VariableUseVisitor(callback).visitExpression(node);
1242 } 1247 }
1243 } 1248 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698