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

Side by Side Diff: pkg/compiler/lib/src/tree_ir/tree_ir_nodes.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_nodes; 5 library tree_ir_nodes;
6 6
7 import '../constants/values.dart' as values; 7 import '../constants/values.dart' as values;
8 import '../dart_types.dart' show DartType, InterfaceType, TypeVariableType; 8 import '../dart_types.dart' show DartType, InterfaceType, TypeVariableType;
9 import '../elements/elements.dart'; 9 import '../elements/elements.dart';
10 import '../io/source_information.dart' show SourceInformation; 10 import '../io/source_information.dart' show SourceInformation;
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 } 679 }
680 } 680 }
681 } 681 }
682 682
683 class CreateBox extends Expression { 683 class CreateBox extends Expression {
684 accept(ExpressionVisitor visitor) => visitor.visitCreateBox(this); 684 accept(ExpressionVisitor visitor) => visitor.visitCreateBox(this);
685 accept1(ExpressionVisitor1 visitor, arg) => visitor.visitCreateBox(this, arg); 685 accept1(ExpressionVisitor1 visitor, arg) => visitor.visitCreateBox(this, arg);
686 } 686 }
687 687
688 class CreateInstance extends Expression { 688 class CreateInstance extends Expression {
689 ClassElement classElement; 689 InterfaceType dartType;
690 List<Expression> arguments; 690 List<Expression> arguments;
691 List<Expression> typeInformation; 691 List<Expression> typeInformation;
692 SourceInformation sourceInformation; 692 SourceInformation sourceInformation;
693 693
694 CreateInstance(this.classElement, this.arguments, 694 CreateInstance(this.dartType, this.arguments,
695 this.typeInformation, this.sourceInformation); 695 this.typeInformation, this.sourceInformation);
696 696
697 accept(ExpressionVisitor visitor) => visitor.visitCreateInstance(this); 697 accept(ExpressionVisitor visitor) => visitor.visitCreateInstance(this);
698 accept1(ExpressionVisitor1 visitor, arg) { 698 accept1(ExpressionVisitor1 visitor, arg) {
699 return visitor.visitCreateInstance(this, arg); 699 return visitor.visitCreateInstance(this, arg);
700 } 700 }
701 } 701 }
702 702
703 class GetField extends Expression { 703 class GetField extends Expression {
704 Expression object; 704 Expression object;
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 1613
1614 /// Number of uses of the current fallthrough target. 1614 /// Number of uses of the current fallthrough target.
1615 int get useCount => _stack.last.useCount; 1615 int get useCount => _stack.last.useCount;
1616 1616
1617 /// Indicate that a statement will fall through to the current fallthrough 1617 /// Indicate that a statement will fall through to the current fallthrough
1618 /// target. 1618 /// target.
1619 void use() { 1619 void use() {
1620 ++_stack.last.useCount; 1620 ++_stack.last.useCount;
1621 } 1621 }
1622 } 1622 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart ('k') | pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698