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 '../constants/expressions.dart'; | 9 import '../constants/expressions.dart'; |
10 import '../dart_types.dart'; | 10 import '../dart_types.dart'; |
(...skipping 11 matching lines...) Expand all Loading... |
22 import 'cps_ir_nodes.dart' as ir; | 22 import 'cps_ir_nodes.dart' as ir; |
23 import 'cps_ir_builder.dart'; | 23 import 'cps_ir_builder.dart'; |
24 import '../native/native.dart' show NativeBehavior; | 24 import '../native/native.dart' show NativeBehavior; |
25 | 25 |
26 // TODO(karlklose): remove. | 26 // TODO(karlklose): remove. |
27 import '../js/js.dart' as js show js, Template, Expression; | 27 import '../js/js.dart' as js show js, Template, Expression; |
28 import '../ssa/ssa.dart' show TypeMaskFactory; | 28 import '../ssa/ssa.dart' show TypeMaskFactory; |
29 import '../types/types.dart' show TypeMask; | 29 import '../types/types.dart' show TypeMask; |
30 import '../util/util.dart'; | 30 import '../util/util.dart'; |
31 | 31 |
32 import 'package:_internal/compiler/js_lib/shared/embedded_names.dart' | 32 import 'package:compiler_runtime/shared/embedded_names.dart' |
33 show JsBuiltin, JsGetName; | 33 show JsBuiltin, JsGetName; |
34 import '../constants/values.dart'; | 34 import '../constants/values.dart'; |
35 | 35 |
36 typedef void IrBuilderCallback(Element element, ir.FunctionDefinition irNode); | 36 typedef void IrBuilderCallback(Element element, ir.FunctionDefinition irNode); |
37 | 37 |
38 /// This task provides the interface to build IR nodes from [ast.Node]s, which | 38 /// This task provides the interface to build IR nodes from [ast.Node]s, which |
39 /// is used from the [CpsFunctionCompiler] to generate code. | 39 /// is used from the [CpsFunctionCompiler] to generate code. |
40 /// | 40 /// |
41 /// This class is mainly there to correctly measure how long building the IR | 41 /// This class is mainly there to correctly measure how long building the IR |
42 /// takes. | 42 /// takes. |
(...skipping 3185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3228 } | 3228 } |
3229 | 3229 |
3230 processSetStatic(ir.SetStatic node) { | 3230 processSetStatic(ir.SetStatic node) { |
3231 node.body = replacementFor(node.body); | 3231 node.body = replacementFor(node.body); |
3232 } | 3232 } |
3233 | 3233 |
3234 processContinuation(ir.Continuation node) { | 3234 processContinuation(ir.Continuation node) { |
3235 node.body = replacementFor(node.body); | 3235 node.body = replacementFor(node.body); |
3236 } | 3236 } |
3237 } | 3237 } |
OLD | NEW |