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

Side by Side Diff: pkg/compiler/lib/src/tree_ir/tree_ir_builder.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_builder; 5 library tree_ir_builder;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../constants/values.dart'; 8 import '../constants/values.dart';
9 import '../cps_ir/cps_ir_nodes.dart' as cps_ir; 9 import '../cps_ir/cps_ir_nodes.dart' as cps_ir;
10 import '../elements/elements.dart'; 10 import '../elements/elements.dart';
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 } 495 }
496 496
497 Expression visitInterceptor(cps_ir.Interceptor node) { 497 Expression visitInterceptor(cps_ir.Interceptor node) {
498 return new Interceptor(getVariableUse(node.input), 498 return new Interceptor(getVariableUse(node.input),
499 node.interceptedClasses, 499 node.interceptedClasses,
500 node.sourceInformation); 500 node.sourceInformation);
501 } 501 }
502 502
503 Expression visitCreateInstance(cps_ir.CreateInstance node) { 503 Expression visitCreateInstance(cps_ir.CreateInstance node) {
504 return new CreateInstance( 504 return new CreateInstance(
505 node.classElement, 505 node.dartType,
506 translateArguments(node.arguments), 506 translateArguments(node.arguments),
507 translateArguments(node.typeInformation), 507 translateArguments(node.typeInformation),
508 node.sourceInformation); 508 node.sourceInformation);
509 } 509 }
510 510
511 Expression visitGetField(cps_ir.GetField node) { 511 Expression visitGetField(cps_ir.GetField node) {
512 return new GetField(getVariableUse(node.object), node.field, 512 return new GetField(getVariableUse(node.object), node.field,
513 objectIsNotNull: !node.object.definition.type.isNullable); 513 objectIsNotNull: !node.object.definition.type.isNullable);
514 } 514 }
515 515
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 748
749 visitFunctionDefinition(cps_ir.FunctionDefinition node) { 749 visitFunctionDefinition(cps_ir.FunctionDefinition node) {
750 unexpectedNode(node); 750 unexpectedNode(node);
751 } 751 }
752 visitParameter(cps_ir.Parameter node) => unexpectedNode(node); 752 visitParameter(cps_ir.Parameter node) => unexpectedNode(node);
753 visitContinuation(cps_ir.Continuation node) => unexpectedNode(node); 753 visitContinuation(cps_ir.Continuation node) => unexpectedNode(node);
754 visitMutableVariable(cps_ir.MutableVariable node) => unexpectedNode(node); 754 visitMutableVariable(cps_ir.MutableVariable node) => unexpectedNode(node);
755 visitRethrow(cps_ir.Rethrow node) => unexpectedNode(node); 755 visitRethrow(cps_ir.Rethrow node) => unexpectedNode(node);
756 visitBoundsCheck(cps_ir.BoundsCheck node) => unexpectedNode(node); 756 visitBoundsCheck(cps_ir.BoundsCheck node) => unexpectedNode(node);
757 } 757 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart ('k') | pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698