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

Side by Side Diff: pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart

Issue 1584543002: dart2js cps: Support inlining constructors with type arguments. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update status files and unit tests Created 4 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
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 import '../../elements/elements.dart'; 10 import '../../elements/elements.dart';
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 Expression visitGetTypeTestProperty(GetTypeTestProperty node) { 807 Expression visitGetTypeTestProperty(GetTypeTestProperty node) {
808 node.object = visitExpression(node.object); 808 node.object = visitExpression(node.object);
809 return node; 809 return node;
810 } 810 }
811 811
812 Expression visitCreateBox(CreateBox node) { 812 Expression visitCreateBox(CreateBox node) {
813 return node; 813 return node;
814 } 814 }
815 815
816 Expression visitCreateInstance(CreateInstance node) { 816 Expression visitCreateInstance(CreateInstance node) {
817 _rewriteList(node.typeInformation);
817 _rewriteList(node.arguments); 818 _rewriteList(node.arguments);
818 return node; 819 return node;
819 } 820 }
820 821
821 Expression visitReifyRuntimeType(ReifyRuntimeType node) { 822 Expression visitReifyRuntimeType(ReifyRuntimeType node) {
822 node.value = visitExpression(node.value); 823 node.value = visitExpression(node.value);
823 return node; 824 return node;
824 } 825 }
825 826
826 Expression visitReadTypeVariable(ReadTypeVariable node) { 827 Expression visitReadTypeVariable(ReadTypeVariable node) {
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 VariableUseCallback callback; 1352 VariableUseCallback callback;
1352 1353
1353 VariableUseVisitor(this.callback); 1354 VariableUseVisitor(this.callback);
1354 1355
1355 visitVariableUse(VariableUse use) => callback(use); 1356 visitVariableUse(VariableUse use) => callback(use);
1356 1357
1357 static void visit(Expression node, VariableUseCallback callback) { 1358 static void visit(Expression node, VariableUseCallback callback) {
1358 new VariableUseVisitor(callback).visitExpression(node); 1359 new VariableUseVisitor(callback).visitExpression(node);
1359 } 1360 }
1360 } 1361 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/codegen.dart ('k') | pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698