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

Unified Diff: pkg/compiler/lib/src/js_backend/enqueuer.dart

Issue 2685573002: Replace Backend with JavaScriptBackend. (Closed)
Patch Set: Updated cf. comment Created 3 years, 10 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/compiler/lib/src/js_backend/enqueuer.dart
diff --git a/pkg/compiler/lib/src/js_backend/enqueuer.dart b/pkg/compiler/lib/src/js_backend/enqueuer.dart
index 64e84134991c20ce78eb5a703f68f8a4e30d2aad..f59f60c6769ec140830972e7e6164b1dff0870e4 100644
--- a/pkg/compiler/lib/src/js_backend/enqueuer.dart
+++ b/pkg/compiler/lib/src/js_backend/enqueuer.dart
@@ -6,7 +6,6 @@ library dart2js.js.enqueue;
import 'dart:collection' show Queue;
-import '../common/backend_api.dart' show Backend;
import '../common/codegen.dart' show CodegenWorkItem;
import '../common/tasks.dart' show CompilerTask;
import '../common/work.dart' show WorkItem;
@@ -16,6 +15,7 @@ import '../elements/resolution_types.dart'
import '../elements/elements.dart' show MemberElement, TypedElement;
import '../elements/entities.dart';
import '../enqueue.dart';
+import '../js_backend/backend.dart' show JavaScriptBackend;
import '../native/native.dart' as native;
import '../options.dart';
import '../types/types.dart' show TypeMaskStrategy;
@@ -39,7 +39,7 @@ class CodegenEnqueuer extends EnqueuerImpl {
bool queueIsClosed = false;
final CompilerTask task;
final native.NativeEnqueuer nativeEnqueuer;
- final Backend _backend;
+ final JavaScriptBackend _backend;
final CompilerOptions _options;
WorldImpactVisitor _impactVisitor;
@@ -52,8 +52,8 @@ class CodegenEnqueuer extends EnqueuerImpl {
static const ImpactUseCase IMPACT_USE =
const ImpactUseCase('CodegenEnqueuer');
- CodegenEnqueuer(
- this.task, Backend backend, CompilerOptions options, this.strategy)
+ CodegenEnqueuer(this.task, JavaScriptBackend backend, CompilerOptions options,
+ this.strategy)
: _universe =
new CodegenWorldBuilderImpl(backend, const TypeMaskStrategy()),
_workItemBuilder = new CodegenWorkItemBuilder(backend, options),
@@ -258,7 +258,7 @@ class CodegenEnqueuer extends EnqueuerImpl {
/// Builder that creates the work item necessary for the code generation of a
/// [MemberElement].
class CodegenWorkItemBuilder extends WorkItemBuilder {
- Backend _backend;
+ JavaScriptBackend _backend;
CompilerOptions _options;
CodegenWorkItemBuilder(this._backend, this._options);
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend_helpers.dart ('k') | pkg/compiler/lib/src/parser/diet_parser_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698