| OLD | NEW |
| 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/tasks.dart' show |
| 10 CompilerTask; |
| 11 import '../compiler.dart' show |
| 12 Compiler; |
| 9 import '../constants/expressions.dart'; | 13 import '../constants/expressions.dart'; |
| 10 import '../dart_types.dart'; | 14 import '../dart_types.dart'; |
| 11 import '../dart2jslib.dart'; | 15 import '../diagnostics/invariant.dart' show |
| 16 invariant; |
| 12 import '../elements/elements.dart'; | 17 import '../elements/elements.dart'; |
| 13 import '../elements/modelx.dart' show SynthesizedConstructorElementX, | 18 import '../elements/modelx.dart' show |
| 14 ConstructorBodyElementX, FunctionSignatureX; | 19 SynthesizedConstructorElementX, |
| 20 ConstructorBodyElementX, |
| 21 FunctionSignatureX; |
| 15 import '../io/source_information.dart'; | 22 import '../io/source_information.dart'; |
| 16 import '../js_backend/js_backend.dart' show JavaScriptBackend, | 23 import '../js_backend/js_backend.dart' show |
| 24 JavaScriptBackend, |
| 17 SyntheticConstantKind; | 25 SyntheticConstantKind; |
| 18 import '../resolution/resolution.dart' show TreeElements; | 26 import '../resolution/resolution.dart' show |
| 27 TreeElements; |
| 19 import '../resolution/semantic_visitor.dart'; | 28 import '../resolution/semantic_visitor.dart'; |
| 20 import '../resolution/operators.dart' as op; | 29 import '../resolution/operators.dart' as op; |
| 21 import '../tree/tree.dart' as ast; | 30 import '../tree/tree.dart' as ast; |
| 22 import '../types/types.dart' show TypeMask; | 31 import '../types/types.dart' show |
| 32 TypeMask; |
| 23 import '../universe/universe.dart' show | 33 import '../universe/universe.dart' show |
| 24 CallStructure, | 34 CallStructure, |
| 25 Selector, | 35 Selector, |
| 26 SelectorKind; | 36 SelectorKind; |
| 27 import '../constants/values.dart' show ConstantValue; | 37 import '../constants/values.dart' show |
| 38 ConstantValue; |
| 28 import 'cps_ir_nodes.dart' as ir; | 39 import 'cps_ir_nodes.dart' as ir; |
| 29 import 'cps_ir_builder.dart'; | 40 import 'cps_ir_builder.dart'; |
| 30 import '../native/native.dart' show NativeBehavior; | 41 import '../native/native.dart' show |
| 42 NativeBehavior; |
| 31 | 43 |
| 32 // TODO(karlklose): remove. | 44 // TODO(karlklose): remove. |
| 33 import '../js/js.dart' as js show js, Template, Expression, Name; | 45 import '../js/js.dart' as js show js, Template, Expression, Name; |
| 34 import '../ssa/ssa.dart' show TypeMaskFactory; | 46 import '../ssa/ssa.dart' show TypeMaskFactory; |
| 35 import '../util/util.dart'; | 47 import '../util/util.dart'; |
| 36 | 48 |
| 37 import 'package:js_runtime/shared/embedded_names.dart' | 49 import 'package:js_runtime/shared/embedded_names.dart' |
| 38 show JsBuiltin, JsGetName; | 50 show JsBuiltin, JsGetName; |
| 39 import '../constants/values.dart'; | 51 import '../constants/values.dart'; |
| 40 | 52 |
| (...skipping 3309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3350 if (compiler.backend.isForeign(function)) { | 3362 if (compiler.backend.isForeign(function)) { |
| 3351 return handleForeignCode(node, function, argumentList, callStructure); | 3363 return handleForeignCode(node, function, argumentList, callStructure); |
| 3352 } else { | 3364 } else { |
| 3353 return irBuilder.buildStaticFunctionInvocation(function, callStructure, | 3365 return irBuilder.buildStaticFunctionInvocation(function, callStructure, |
| 3354 translateStaticArguments(argumentList, function, callStructure), | 3366 translateStaticArguments(argumentList, function, callStructure), |
| 3355 sourceInformation: | 3367 sourceInformation: |
| 3356 sourceInformationBuilder.buildCall(node, node.selector)); | 3368 sourceInformationBuilder.buildCall(node, node.selector)); |
| 3357 } | 3369 } |
| 3358 } | 3370 } |
| 3359 } | 3371 } |
| OLD | NEW |