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

Unified Diff: pkg/compiler/lib/src/common/backend_api.dart

Issue 1897863007: Make backend and reporter customizable. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged with 09c242e729de2e488cd36960fe2a4a882421086c Created 4 years, 8 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/compiler/lib/src/apiimpl.dart ('k') | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/common/backend_api.dart
diff --git a/pkg/compiler/lib/src/common/backend_api.dart b/pkg/compiler/lib/src/common/backend_api.dart
index 7949d099a026c2bb43f5762ec87775c2ca7e5eef..6b809e9967ffa50fb189e8aa751fa3d975cef1a6 100644
--- a/pkg/compiler/lib/src/common/backend_api.dart
+++ b/pkg/compiler/lib/src/common/backend_api.dart
@@ -24,7 +24,7 @@ import '../elements/elements.dart'
LibraryElement,
MetadataAnnotation,
MethodElement;
-import '../enqueue.dart' show Enqueuer, ResolutionEnqueuer;
+import '../enqueue.dart' show Enqueuer, EnqueueTask, CodegenEnqueuer, ResolutionEnqueuer;
import '../io/code_output.dart' show CodeBuffer;
import '../io/source_information.dart' show SourceInformationStrategy;
import '../js_backend/backend_helpers.dart' as js_backend show BackendHelpers;
@@ -38,10 +38,14 @@ import '../serialization/serialization.dart'
import '../tree/tree.dart' show Node, Send;
import '../universe/call_structure.dart' show CallStructure;
import '../universe/world_impact.dart' show ImpactStrategy, WorldImpact;
-import 'codegen.dart' show CodegenWorkItem;
-import 'registry.dart' show Registry;
-import 'tasks.dart' show CompilerTask;
-import 'work.dart' show ItemCompilationContext;
+import 'codegen.dart' show
+ CodegenWorkItem;
+import 'registry.dart' show
+ Registry;
+import 'tasks.dart' show
+ CompilerTask;
+import 'work.dart' show
+ ItemCompilationContext;
abstract class Backend {
final Compiler compiler;
@@ -398,6 +402,8 @@ abstract class Backend {
/// Backend access to the front-end.
Frontend get frontend => compiler.resolution;
+
+ EnqueueTask makeEnqueuer() => new EnqueueTask(compiler);
}
/// Interface for resolving calls to foreign functions.
« no previous file with comments | « pkg/compiler/lib/src/apiimpl.dart ('k') | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698