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

Side by Side Diff: pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart

Issue 1506143002: dart2js CPS: Evaluate the arguments to abstract class constructors. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | tests/co19/co19-dart2js.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 dart2js.ir_builder_task; 5 library dart2js.ir_builder_task;
6 6
7 import '../closure.dart' as closurelib; 7 import '../closure.dart' as closurelib;
8 import '../closure.dart' hide ClosureScope; 8 import '../closure.dart' hide ClosureScope;
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/names.dart' show 10 import '../common/names.dart' show
(...skipping 2137 matching lines...) Expand 10 before | Expand all | Expand 10 after
2148 new Selector.setter(Names.dynamic_), [visit(rhs)]); 2148 new Selector.setter(Names.dynamic_), [visit(rhs)]);
2149 } 2149 }
2150 2150
2151 @override 2151 @override
2152 ir.Primitive visitAbstractClassConstructorInvoke( 2152 ir.Primitive visitAbstractClassConstructorInvoke(
2153 ast.NewExpression node, 2153 ast.NewExpression node,
2154 ConstructorElement element, 2154 ConstructorElement element,
2155 InterfaceType type, 2155 InterfaceType type,
2156 ast.NodeList arguments, 2156 ast.NodeList arguments,
2157 CallStructure callStructure, _) { 2157 CallStructure callStructure, _) {
2158 for (ast.Node argument in arguments) visit(argument);
2158 return buildAbstractClassInstantiationError(element.enclosingClass); 2159 return buildAbstractClassInstantiationError(element.enclosingClass);
2159 } 2160 }
2160 2161
2161 @override 2162 @override
2162 ir.Primitive handleFinalStaticFieldSet( 2163 ir.Primitive handleFinalStaticFieldSet(
2163 ast.SendSet node, 2164 ast.SendSet node,
2164 FieldElement field, 2165 FieldElement field,
2165 ast.Node rhs, _) { 2166 ast.Node rhs, _) {
2166 // TODO(asgerf): Include class name somehow for static class members? 2167 // TODO(asgerf): Include class name somehow for static class members?
2167 return buildStaticNoSuchMethod( 2168 return buildStaticNoSuchMethod(
(...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after
3597 if (compiler.backend.isForeign(function)) { 3598 if (compiler.backend.isForeign(function)) {
3598 return handleForeignCode(node, function, argumentList, callStructure); 3599 return handleForeignCode(node, function, argumentList, callStructure);
3599 } else { 3600 } else {
3600 return irBuilder.buildStaticFunctionInvocation(function, callStructure, 3601 return irBuilder.buildStaticFunctionInvocation(function, callStructure,
3601 translateStaticArguments(argumentList, function, callStructure), 3602 translateStaticArguments(argumentList, function, callStructure),
3602 sourceInformation: 3603 sourceInformation:
3603 sourceInformationBuilder.buildCall(node, node.selector)); 3604 sourceInformationBuilder.buildCall(node, node.selector));
3604 } 3605 }
3605 } 3606 }
3606 } 3607 }
OLDNEW
« no previous file with comments | « no previous file | tests/co19/co19-dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698