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

Unified Diff: pkg/compiler/lib/src/universe/world_builder.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
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder_kernel.dart ('k') | tests/compiler/dart2js/exit_code_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/universe/world_builder.dart
diff --git a/pkg/compiler/lib/src/universe/world_builder.dart b/pkg/compiler/lib/src/universe/world_builder.dart
index 302fe9b2e666a7c2b2f2fb2b7b491235319fc04d..04ac8bf3b786591f45cc0e87218cfa1e9714ed10 100644
--- a/pkg/compiler/lib/src/universe/world_builder.dart
+++ b/pkg/compiler/lib/src/universe/world_builder.dart
@@ -7,7 +7,6 @@ library universe;
import 'dart:collection';
import '../common.dart';
-import '../common/backend_api.dart' show Backend;
import '../common/names.dart' show Identifiers;
import '../common/resolution.dart' show Resolution;
import '../core_types.dart';
@@ -15,6 +14,7 @@ import '../elements/elements.dart';
import '../elements/entities.dart';
import '../elements/resolution_types.dart';
import '../elements/types.dart';
+import '../js_backend/backend.dart' show JavaScriptBackend;
import '../universe/class_set.dart';
import '../universe/function_set.dart' show FunctionSetBuilder;
import '../util/enumset.dart';
@@ -460,7 +460,7 @@ class ResolutionWorldBuilderImpl implements ResolutionWorldBuilder {
/// and classes.
bool useInstantiationMap = false;
- final Backend _backend;
+ final JavaScriptBackend _backend;
final Resolution _resolution;
bool _closed = false;
ClosedWorld _closedWorldCache;
@@ -480,9 +480,7 @@ class ResolutionWorldBuilderImpl implements ResolutionWorldBuilder {
bool get isClosed => _closed;
ResolutionWorldBuilderImpl(
- Backend backend, Resolution resolution, this.selectorConstraintsStrategy)
- : this._backend = backend,
- this._resolution = resolution {
+ this._backend, this._resolution, this.selectorConstraintsStrategy) {
_allFunctions = new FunctionSetBuilder();
}
@@ -1119,7 +1117,7 @@ abstract class CodegenWorldBuilder implements WorldBuilder {
}
class CodegenWorldBuilderImpl implements CodegenWorldBuilder {
- final Backend _backend;
+ final JavaScriptBackend _backend;
ClosedWorld __world;
/// The set of all directly instantiated classes, that is, classes with a
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder_kernel.dart ('k') | tests/compiler/dart2js/exit_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698