Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Unified Diff: pkg/fletchc/lib/src/debug_info_constructor_codegen.dart

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/fletchc/lib/src/debug_info.dart ('k') | pkg/fletchc/lib/src/debug_info_function_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fletchc/lib/src/debug_info_constructor_codegen.dart
diff --git a/pkg/fletchc/lib/src/debug_info_constructor_codegen.dart b/pkg/fletchc/lib/src/debug_info_constructor_codegen.dart
deleted file mode 100644
index 69dcd0bb52b5a9d98cb8ddb0311d645f62ed5008..0000000000000000000000000000000000000000
--- a/pkg/fletchc/lib/src/debug_info_constructor_codegen.dart
+++ /dev/null
@@ -1,168 +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_constructor_codegen;
-
-import 'package:compiler/src/elements/elements.dart';
-import 'package:compiler/src/universe/selector.dart' show
- Selector;
-import 'package:compiler/src/tree/tree.dart';
-import 'package:compiler/src/resolution/tree_elements.dart' show
- TreeElements;
-
-import 'package:compiler/src/dart_types.dart' show
- DartType;
-
-import 'package:compiler/src/diagnostics/spannable.dart' show
- Spannable;
-
-import 'bytecode_assembler.dart';
-import 'closure_environment.dart';
-import 'codegen_visitor.dart';
-
-import 'fletch_function_builder.dart' show
- FletchFunctionBuilder;
-
-import 'fletch_class_builder.dart' show
- FletchClassBuilder;
-
-import 'fletch_registry.dart' show
- FletchRegistry;
-
-import 'debug_registry.dart' show
- DebugRegistry;
-
-import 'fletch_context.dart';
-import 'constructor_codegen.dart';
-import 'lazy_field_initializer_codegen.dart';
-import 'debug_info_lazy_field_initializer_codegen.dart';
-import 'debug_info.dart';
-
-class DebugInfoConstructorCodegen extends ConstructorCodegen
- with DebugRegistry {
- final DebugInfo debugInfo;
- final FletchCompilerImplementation compiler;
-
- DebugInfoConstructorCodegen(this.debugInfo,
- FletchFunctionBuilder functionBuilder,
- FletchContext context,
- TreeElements elements,
- ClosureEnvironment closureEnvironment,
- ConstructorElement constructor,
- FletchClassBuilder classBuilder,
- this.compiler)
- : super(functionBuilder, context, elements, null,
- closureEnvironment, constructor, classBuilder);
-
- LazyFieldInitializerCodegen lazyFieldInitializerCodegenFor(
- FletchFunctionBuilder function,
- FieldElement field) {
- TreeElements elements = field.resolvedAst.elements;
- return new DebugInfoLazyFieldInitializerCodegen(
- debugInfo,
- function,
- context,
- elements,
- context.backend.createClosureEnvironment(field, elements),
- field,
- compiler);
- }
-
- 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 doFieldInitializerSet(Send node, FieldElement field) {
- recordDebugInfo(node);
- super.doFieldInitializerSet(node, field);
- }
-
- void handleAllocationAndBodyCall() {
- // Clear out debug information after the initializer list. This avoids
- // seeing the code that sets up for the body call as part of the last
- // initializer evaluation.
- recordDebugInfo(null);
- super.handleAllocationAndBodyCall();
- }
-
- 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);
- }
-}
« no previous file with comments | « pkg/fletchc/lib/src/debug_info.dart ('k') | pkg/fletchc/lib/src/debug_info_function_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698