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

Unified Diff: pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart

Issue 1036263002: Change type annotation buildInvokeConstructorInvocation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
index f82568aa3e4960f7f05f9d9e5dc1b1c167b876dc..fee4b77d92539de4c368501b8077f3b1da952063 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
@@ -829,7 +829,7 @@ abstract class IrBuilder {
/// argument values are defined by [arguments].
ir.Primitive buildConstructorInvocation(FunctionElement element,
Selector selector,
- InterfaceType type,
+ DartType type,
List<ir.Primitive> arguments);
/// Create a string concatenation of the [arguments].
@@ -2169,7 +2169,7 @@ class DartIrBuilder extends IrBuilder {
@override
ir.Primitive buildConstructorInvocation(FunctionElement element,
Selector selector,
- InterfaceType type,
+ DartType type,
List<ir.Primitive> arguments) {
assert(isOpen);
return _continueWithExpression(
@@ -2458,14 +2458,15 @@ class JsIrBuilder extends IrBuilder {
@override
ir.Primitive buildConstructorInvocation(ConstructorElement element,
Selector selector,
- InterfaceType type,
+ DartType type,
List<ir.Primitive> arguments) {
assert(isOpen);
ClassElement cls = element.enclosingClass;
if (program.requiresRuntimeTypesFor(cls)) {
+ InterfaceType interface = type;
Iterable<ir.Primitive> typeArguments =
- type.typeArguments.map((DartType argument) {
+ interface.typeArguments.map((DartType argument) {
return type.treatAsRaw
? buildNullLiteral()
: buildTypeExpression(argument);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698