| Index: pkg/dartino_compiler/lib/src/dartino_enqueuer.dart
|
| diff --git a/pkg/fletchc/lib/src/fletch_enqueuer.dart b/pkg/dartino_compiler/lib/src/dartino_enqueuer.dart
|
| similarity index 92%
|
| rename from pkg/fletchc/lib/src/fletch_enqueuer.dart
|
| rename to pkg/dartino_compiler/lib/src/dartino_enqueuer.dart
|
| index eca04332db8f75b1e934220a1499893a79a64905..69d6f49beb7a3fc0dad2a4a2ae61b75f945de70f 100644
|
| --- a/pkg/fletchc/lib/src/fletch_enqueuer.dart
|
| +++ b/pkg/dartino_compiler/lib/src/dartino_enqueuer.dart
|
| @@ -2,7 +2,7 @@
|
| // 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.fletch_enqueuer;
|
| +library dartino_compiler.dartino_enqueuer;
|
|
|
| import 'dart:collection' show
|
| Queue;
|
| @@ -56,18 +56,18 @@ import 'package:compiler/src/resolution/tree_elements.dart' show
|
| import 'package:compiler/src/util/util.dart' show
|
| Hashing;
|
|
|
| -import 'fletch_compiler_implementation.dart' show
|
| - FletchCompilerImplementation;
|
| +import 'dartino_compiler_implementation.dart' show
|
| + DartinoCompilerImplementation;
|
|
|
| import 'dynamic_call_enqueuer.dart' show
|
| Closurization,
|
| DynamicCallEnqueuer,
|
| UsageRecorder;
|
|
|
| -import 'fletch_registry.dart' show
|
| +import 'dartino_registry.dart' show
|
| ClosureKind,
|
| - FletchRegistry,
|
| - FletchRegistry;
|
| + DartinoRegistry,
|
| + DartinoRegistry;
|
|
|
| import 'dart:developer';
|
| import 'package:compiler/src/diagnostics/diagnostic_listener.dart';
|
| @@ -85,7 +85,7 @@ part 'enqueuer_mixin.dart';
|
|
|
| /// True if enqueuing of system libraries should be reported in verbose mode.
|
| const bool logSystemLibraries =
|
| - const bool.fromEnvironment("fletchc.logSystemLibraries");
|
| + const bool.fromEnvironment("dartino_compiler.logSystemLibraries");
|
|
|
| /// Returns true if enqueuing of [element] should be reported in verbose
|
| /// mode. See [logSystemLibraries].
|
| @@ -94,18 +94,18 @@ bool shouldReportEnqueuingOfElement(Compiler compiler, Element element) {
|
| return compiler.inUserCode(element);
|
| }
|
|
|
| -/// Custom enqueuer for Fletch.
|
| -class FletchEnqueueTask extends CompilerTask implements EnqueueTask {
|
| +/// Custom enqueuer for Dartino.
|
| +class DartinoEnqueueTask extends CompilerTask implements EnqueueTask {
|
| final ResolutionEnqueuer resolution;
|
|
|
| - final FletchEnqueuer codegen;
|
| + final DartinoEnqueuer codegen;
|
|
|
| - FletchEnqueueTask(FletchCompilerImplementation compiler)
|
| + DartinoEnqueueTask(DartinoCompilerImplementation compiler)
|
| : resolution = new ResolutionEnqueuer(
|
| compiler, compiler.backend.createItemCompilationContext,
|
| compiler.analyzeOnly && compiler.analyzeMain
|
| ? const EnqueuerStrategy() : const TreeShakingEnqueuerStrategy()),
|
| - codegen = new FletchEnqueuer(
|
| + codegen = new DartinoEnqueuer(
|
| compiler, compiler.backend.createItemCompilationContext),
|
| super(compiler) {
|
| codegen.task = this;
|
| @@ -116,7 +116,7 @@ class FletchEnqueueTask extends CompilerTask implements EnqueueTask {
|
| compiler.backend.nativeResolutionEnqueuer(resolution);
|
| }
|
|
|
| - String get name => 'Fletch enqueue';
|
| + String get name => 'Dartino enqueue';
|
|
|
| void forgetElement(Element element) {
|
| resolution.forgetElement(element);
|
| @@ -124,11 +124,11 @@ class FletchEnqueueTask extends CompilerTask implements EnqueueTask {
|
| }
|
| }
|
|
|
| -class FletchEnqueuer extends EnqueuerMixin
|
| +class DartinoEnqueuer extends EnqueuerMixin
|
| implements CodegenEnqueuer, UsageRecorder {
|
| final ItemCompilationContextCreator itemCompilationContextCreator;
|
|
|
| - final FletchCompilerImplementation compiler;
|
| + final DartinoCompilerImplementation compiler;
|
|
|
| bool queueIsClosed = false;
|
|
|
| @@ -156,8 +156,8 @@ class FletchEnqueuer extends EnqueuerMixin
|
|
|
| final DynamicCallEnqueuer dynamicCallEnqueuer;
|
|
|
| - FletchEnqueuer(
|
| - FletchCompilerImplementation compiler,
|
| + DartinoEnqueuer(
|
| + DartinoCompilerImplementation compiler,
|
| this.itemCompilationContextCreator)
|
| : compiler = compiler,
|
| dynamicCallEnqueuer = new DynamicCallEnqueuer(compiler);
|
| @@ -207,7 +207,7 @@ class FletchEnqueuer extends EnqueuerMixin
|
| ElementUsage usage = _pendingEnqueuedUsages.removeFirst();
|
| AstElement element = usage.element;
|
| TreeElements treeElements = element.resolvedAst.elements;
|
| - FletchRegistry registry = new FletchRegistry(compiler);
|
| + DartinoRegistry registry = new DartinoRegistry(compiler);
|
| Selector selector = usage.selector;
|
| if (usage.closureKind != null) {
|
| compiler.context.backend.compileClosurizationUsage(
|
|
|