| Index: pkg/compiler/lib/src/js_backend/codegen/codegen.dart
|
| diff --git a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
|
| index bc8ed93511e60d6b00bfbe1c2f38bc95a481ac47..9cb39ed36c73f1589a4bc5b2938e8b83085f7999 100644
|
| --- a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
|
| +++ b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
|
| @@ -814,12 +814,8 @@ class CodeGenerator extends tree_ir.StatementVisitor
|
|
|
| @override
|
| js.Expression visitCreateInstance(tree_ir.CreateInstance node) {
|
| - ClassElement classElement = node.classElement;
|
| - // TODO(asgerf): To allow inlining of InvokeConstructor, CreateInstance must
|
| - // carry a DartType so we can register the instantiated type
|
| - // with its type arguments. Otherwise dataflow analysis is
|
| - // needed to reconstruct the instantiated type.
|
| - registry.registerInstantiation(classElement.rawType);
|
| + ClassElement classElement = node.dartType.element;
|
| + registry.registerInstantiation(node.dartType);
|
| if (classElement is ClosureClassElement) {
|
| registry.registerInstantiatedClosure(classElement.methodElement);
|
| }
|
|
|