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

Unified Diff: pkg/fletchc/lib/src/debug_registry.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
Index: pkg/fletchc/lib/src/debug_registry.dart
diff --git a/pkg/fletchc/lib/src/debug_registry.dart b/pkg/fletchc/lib/src/debug_registry.dart
deleted file mode 100644
index 4ec57d30b278f6fb3d7b9056d972e83cbf91d78d..0000000000000000000000000000000000000000
--- a/pkg/fletchc/lib/src/debug_registry.dart
+++ /dev/null
@@ -1,66 +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_registry;
-
-import 'package:compiler/src/universe/selector.dart' show
- Selector;
-
-import 'package:compiler/src/elements/elements.dart' show
- ClassElement,
- FieldElement,
- FunctionElement,
- LocalElement;
-
-import 'package:compiler/src/dart_types.dart' show
- DartType;
-
-import 'package:compiler/src/diagnostics/spannable.dart' show
- Spannable;
-
-import 'package:compiler/src/universe/use.dart' show
- DynamicUse,
- StaticUse;
-
-import 'fletch_context.dart' show
- FletchContext;
-
-import 'fletch_function_builder.dart' show
- FletchFunctionBuilder;
-
-/// Turns off enqueuing when generating debug information.
-///
-/// We generate debug information for one element at the time, on
-/// demand. Generating this information shouldn't interact with the
-/// enqueuer/registry/tree-shaking algorithm.
-abstract class DebugRegistry {
- FletchContext get context;
- FletchFunctionBuilder get functionBuilder;
-
- void registerDynamicUse(Selector selector) { }
- void registerDynamicGetter(Selector selector) { }
- void registerDynamicSetter(Selector selector) { }
- void registerStaticUse(StaticUse use) { }
- void registerInstantiatedClass(ClassElement klass) { }
- void registerIsCheck(DartType type) { }
- void registerLocalInvoke(LocalElement element, Selector selector) { }
- void registerClosurization(FunctionElement element, _) { }
-
- int compileLazyFieldInitializer(FieldElement field) {
- int index = context.getStaticFieldIndex(field, null);
-
- if (field.initializer == null) return index;
-
- if (context.backend.lazyFieldInitializers.containsKey(field)) return index;
-
- context.compiler.reporter.internalError(
- field, "not compiled before use in debugger");
- throw null;
- }
-
- void generateUnimplementedError(Spannable spannable, String reason) {
- context.backend.generateUnimplementedError(
- spannable, reason, functionBuilder, suppressHint: true);
- }
-}
« no previous file with comments | « pkg/fletchc/lib/src/debug_info_lazy_field_initializer_codegen.dart ('k') | pkg/fletchc/lib/src/device_type.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698