Index: pkg/fletchc/lib/src/debug_info_lazy_field_initializer_codegen.dart |
diff --git a/pkg/fletchc/lib/src/debug_info_lazy_field_initializer_codegen.dart b/pkg/fletchc/lib/src/debug_info_lazy_field_initializer_codegen.dart |
deleted file mode 100644 |
index 21708103787b51e16b0d6c5bd880b22624fb09da..0000000000000000000000000000000000000000 |
--- a/pkg/fletchc/lib/src/debug_info_lazy_field_initializer_codegen.dart |
+++ /dev/null |
@@ -1,132 +0,0 @@ |
-// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE.md file. |
- |
-library fletchc.debug_info_lazy_field_initializer_codegen; |
- |
-import 'package:compiler/src/elements/elements.dart'; |
-import 'package:compiler/src/resolution/tree_elements.dart'; |
-import 'package:compiler/src/tree/tree.dart'; |
-import 'package:compiler/src/universe/selector.dart'; |
- |
-import 'package:compiler/src/dart_types.dart' show |
- DartType; |
- |
-import 'package:compiler/src/diagnostics/spannable.dart' show |
- Spannable; |
- |
-import 'fletch_context.dart'; |
- |
-import 'fletch_function_builder.dart' show |
- FletchFunctionBuilder; |
- |
-import 'fletch_registry.dart' show |
- FletchRegistry; |
- |
-import 'debug_registry.dart' show |
- DebugRegistry; |
- |
-import 'closure_environment.dart'; |
-import 'codegen_visitor.dart'; |
-import 'lazy_field_initializer_codegen.dart'; |
-import 'debug_info.dart'; |
- |
-class DebugInfoLazyFieldInitializerCodegen |
- extends LazyFieldInitializerCodegen with DebugRegistry { |
- final DebugInfo debugInfo; |
- final FletchCompilerImplementation compiler; |
- |
- DebugInfoLazyFieldInitializerCodegen(this.debugInfo, |
- FletchFunctionBuilder functionBuilder, |
- FletchContext context, |
- TreeElements elements, |
- ClosureEnvironment closureEnvironment, |
- FieldElement field, |
- this.compiler) |
- : super(functionBuilder, context, elements, null, |
- closureEnvironment, field); |
- |
- void recordDebugInfo(Node node) { |
- debugInfo.addLocation(compiler, assembler.byteSize, node); |
- } |
- |
- void pushVariableDeclaration(LocalValue value) { |
- super.pushVariableDeclaration(value); |
- debugInfo.pushScope(assembler.byteSize, value); |
- } |
- |
- void popVariableDeclaration(Element element) { |
- super.popVariableDeclaration(element); |
- debugInfo.popScope(assembler.byteSize); |
- } |
- |
- void callIsSelector( |
- Node node, |
- DartType type, |
- Spannable diagnosticLocation) { |
- recordDebugInfo(node); |
- super.callIsSelector(node, type, diagnosticLocation); |
- } |
- |
- void invokeMethod(Node node, Selector selector) { |
- recordDebugInfo(node); |
- super.invokeMethod(node, selector); |
- } |
- |
- void invokeGetter(Node node, Name name) { |
- recordDebugInfo(node); |
- super.invokeGetter(node, name); |
- } |
- |
- void invokeSetter(Node node, Name name) { |
- recordDebugInfo(node); |
- super.invokeSetter(node, name); |
- } |
- |
- void invokeFactory(Node node, int constId, int arity) { |
- recordDebugInfo(node); |
- super.invokeFactory(node, constId, arity); |
- } |
- |
- void invokeStatic(Node node, int constId, int arity) { |
- recordDebugInfo(node); |
- super.invokeStatic(node, constId, arity); |
- } |
- |
- void generateReturn(Node node) { |
- recordDebugInfo(node); |
- super.generateReturn(node); |
- } |
- |
- void generateSwitchCaseMatch(CaseMatch caseMatch, BytecodeLabel ifTrue) { |
- // We do not want to break on the evaluation of the individual |
- // case equality tests. |
- recordDebugInfo(null); |
- super.generateSwitchCaseMatch(caseMatch, ifTrue); |
- } |
- |
- void generateIdentical(Node node) { |
- recordDebugInfo(node); |
- super.generateIdentical(node); |
- } |
- |
- void generateIdenticalNonNumeric(Node node) { |
- recordDebugInfo(node); |
- super.generateIdenticalNonNumeric(node); |
- } |
- |
- void generateThrow(Node node) { |
- recordDebugInfo(node); |
- super.generateThrow(node); |
- } |
- |
- void visitForValue(Node node) { |
- recordDebugInfo(node); |
- super.visitForValue(node); |
- } |
- |
- void visitForEffect(Node node) { |
- recordDebugInfo(node); |
- super.visitForEffect(node); |
- } |
-} |