| 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 13 matching lines...) Expand all Loading... |
| 24 import 'cps_ir_nodes.dart' as ir; | 24 import 'cps_ir_nodes.dart' as ir; |
| 25 import 'cps_ir_builder.dart'; | 25 import 'cps_ir_builder.dart'; |
| 26 import '../native/native.dart' show NativeBehavior; | 26 import '../native/native.dart' show NativeBehavior; |
| 27 | 27 |
| 28 // TODO(karlklose): remove. | 28 // TODO(karlklose): remove. |
| 29 import '../js/js.dart' as js show js, Template, Expression, Name; | 29 import '../js/js.dart' as js show js, Template, Expression, Name; |
| 30 import '../ssa/ssa.dart' show TypeMaskFactory; | 30 import '../ssa/ssa.dart' show TypeMaskFactory; |
| 31 import '../types/types.dart' show TypeMask; | 31 import '../types/types.dart' show TypeMask; |
| 32 import '../util/util.dart'; | 32 import '../util/util.dart'; |
| 33 | 33 |
| 34 import 'package:_internal/compiler/js_lib/shared/embedded_names.dart' | 34 import 'package:js_runtime/shared/embedded_names.dart' |
| 35 show JsBuiltin, JsGetName; | 35 show JsBuiltin, JsGetName; |
| 36 import '../constants/values.dart'; | 36 import '../constants/values.dart'; |
| 37 | 37 |
| 38 typedef void IrBuilderCallback(Element element, ir.FunctionDefinition irNode); | 38 typedef void IrBuilderCallback(Element element, ir.FunctionDefinition irNode); |
| 39 | 39 |
| 40 /// This task provides the interface to build IR nodes from [ast.Node]s, which | 40 /// This task provides the interface to build IR nodes from [ast.Node]s, which |
| 41 /// is used from the [CpsFunctionCompiler] to generate code. | 41 /// is used from the [CpsFunctionCompiler] to generate code. |
| 42 /// | 42 /// |
| 43 /// This class is mainly there to correctly measure how long building the IR | 43 /// This class is mainly there to correctly measure how long building the IR |
| 44 /// takes. | 44 /// takes. |
| (...skipping 3207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3252 } | 3252 } |
| 3253 | 3253 |
| 3254 processSetStatic(ir.SetStatic node) { | 3254 processSetStatic(ir.SetStatic node) { |
| 3255 node.body = replacementFor(node.body); | 3255 node.body = replacementFor(node.body); |
| 3256 } | 3256 } |
| 3257 | 3257 |
| 3258 processContinuation(ir.Continuation node) { | 3258 processContinuation(ir.Continuation node) { |
| 3259 node.body = replacementFor(node.body); | 3259 node.body = replacementFor(node.body); |
| 3260 } | 3260 } |
| 3261 } | 3261 } |
| OLD | NEW |