| OLD | NEW |
| 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 library fletchc.debug_info_constructor_codegen; | 5 library dartino_compiler.debug_info_constructor_codegen; |
| 6 | 6 |
| 7 import 'package:compiler/src/elements/elements.dart'; | 7 import 'package:compiler/src/elements/elements.dart'; |
| 8 import 'package:compiler/src/universe/selector.dart' show | 8 import 'package:compiler/src/universe/selector.dart' show |
| 9 Selector; | 9 Selector; |
| 10 import 'package:compiler/src/tree/tree.dart'; | 10 import 'package:compiler/src/tree/tree.dart'; |
| 11 import 'package:compiler/src/resolution/tree_elements.dart' show | 11 import 'package:compiler/src/resolution/tree_elements.dart' show |
| 12 TreeElements; | 12 TreeElements; |
| 13 | 13 |
| 14 import 'package:compiler/src/dart_types.dart' show | 14 import 'package:compiler/src/dart_types.dart' show |
| 15 DartType; | 15 DartType; |
| 16 | 16 |
| 17 import 'package:compiler/src/diagnostics/spannable.dart' show | 17 import 'package:compiler/src/diagnostics/spannable.dart' show |
| 18 Spannable; | 18 Spannable; |
| 19 | 19 |
| 20 import 'bytecode_assembler.dart'; | 20 import 'bytecode_assembler.dart'; |
| 21 import 'closure_environment.dart'; | 21 import 'closure_environment.dart'; |
| 22 import 'codegen_visitor.dart'; | 22 import 'codegen_visitor.dart'; |
| 23 | 23 |
| 24 import 'fletch_function_builder.dart' show | 24 import 'dartino_function_builder.dart' show |
| 25 FletchFunctionBuilder; | 25 DartinoFunctionBuilder; |
| 26 | 26 |
| 27 import 'fletch_class_builder.dart' show | 27 import 'dartino_class_builder.dart' show |
| 28 FletchClassBuilder; | 28 DartinoClassBuilder; |
| 29 | 29 |
| 30 import 'fletch_registry.dart' show | 30 import 'dartino_registry.dart' show |
| 31 FletchRegistry; | 31 DartinoRegistry; |
| 32 | 32 |
| 33 import 'debug_registry.dart' show | 33 import 'debug_registry.dart' show |
| 34 DebugRegistry; | 34 DebugRegistry; |
| 35 | 35 |
| 36 import 'fletch_context.dart'; | 36 import 'dartino_context.dart'; |
| 37 import 'constructor_codegen.dart'; | 37 import 'constructor_codegen.dart'; |
| 38 import 'lazy_field_initializer_codegen.dart'; | 38 import 'lazy_field_initializer_codegen.dart'; |
| 39 import 'debug_info_lazy_field_initializer_codegen.dart'; | 39 import 'debug_info_lazy_field_initializer_codegen.dart'; |
| 40 import 'debug_info.dart'; | 40 import 'debug_info.dart'; |
| 41 | 41 |
| 42 class DebugInfoConstructorCodegen extends ConstructorCodegen | 42 class DebugInfoConstructorCodegen extends ConstructorCodegen |
| 43 with DebugRegistry { | 43 with DebugRegistry { |
| 44 final DebugInfo debugInfo; | 44 final DebugInfo debugInfo; |
| 45 final FletchCompilerImplementation compiler; | 45 final DartinoCompilerImplementation compiler; |
| 46 | 46 |
| 47 DebugInfoConstructorCodegen(this.debugInfo, | 47 DebugInfoConstructorCodegen(this.debugInfo, |
| 48 FletchFunctionBuilder functionBuilder, | 48 DartinoFunctionBuilder functionBuilder, |
| 49 FletchContext context, | 49 DartinoContext context, |
| 50 TreeElements elements, | 50 TreeElements elements, |
| 51 ClosureEnvironment closureEnvironment, | 51 ClosureEnvironment closureEnvironment, |
| 52 ConstructorElement constructor, | 52 ConstructorElement constructor, |
| 53 FletchClassBuilder classBuilder, | 53 DartinoClassBuilder classBuilder, |
| 54 this.compiler) | 54 this.compiler) |
| 55 : super(functionBuilder, context, elements, null, | 55 : super(functionBuilder, context, elements, null, |
| 56 closureEnvironment, constructor, classBuilder); | 56 closureEnvironment, constructor, classBuilder); |
| 57 | 57 |
| 58 LazyFieldInitializerCodegen lazyFieldInitializerCodegenFor( | 58 LazyFieldInitializerCodegen lazyFieldInitializerCodegenFor( |
| 59 FletchFunctionBuilder function, | 59 DartinoFunctionBuilder function, |
| 60 FieldElement field) { | 60 FieldElement field) { |
| 61 TreeElements elements = field.resolvedAst.elements; | 61 TreeElements elements = field.resolvedAst.elements; |
| 62 return new DebugInfoLazyFieldInitializerCodegen( | 62 return new DebugInfoLazyFieldInitializerCodegen( |
| 63 debugInfo, | 63 debugInfo, |
| 64 function, | 64 function, |
| 65 context, | 65 context, |
| 66 elements, | 66 elements, |
| 67 context.backend.createClosureEnvironment(field, elements), | 67 context.backend.createClosureEnvironment(field, elements), |
| 68 field, | 68 field, |
| 69 compiler); | 69 compiler); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 void visitForValue(Node node) { | 159 void visitForValue(Node node) { |
| 160 recordDebugInfo(node); | 160 recordDebugInfo(node); |
| 161 super.visitForValue(node); | 161 super.visitForValue(node); |
| 162 } | 162 } |
| 163 | 163 |
| 164 void visitForEffect(Node node) { | 164 void visitForEffect(Node node) { |
| 165 recordDebugInfo(node); | 165 recordDebugInfo(node); |
| 166 super.visitForEffect(node); | 166 super.visitForEffect(node); |
| 167 } | 167 } |
| 168 } | 168 } |
| OLD | NEW |