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

Unified Diff: pkg/compiler/lib/src/universe/element_world_builder.dart

Issue 2826673002: Remove JavaScriptBackend from ClosedWorldBase (Closed)
Patch Set: Fix Created 3 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
Index: pkg/compiler/lib/src/universe/element_world_builder.dart
diff --git a/pkg/compiler/lib/src/universe/element_world_builder.dart b/pkg/compiler/lib/src/universe/element_world_builder.dart
index f85c24f32dcd06fc3ead2f2d77bc071fdb06c7af..1880a3d3faa90b640d80bcba90c3051f67e0dac6 100644
--- a/pkg/compiler/lib/src/universe/element_world_builder.dart
+++ b/pkg/compiler/lib/src/universe/element_world_builder.dart
@@ -184,7 +184,7 @@ class ElementResolutionWorldBuilder extends ResolutionWorldBuilderBase {
}
}
- ClosedWorld closeWorld(DiagnosticReporter reporter) {
+ ClosedWorld closeWorld() {
Map<ClassEntity, Set<ClassEntity>> typesImplementedBySubclasses =
new Map<ClassEntity, Set<ClassEntity>>();
@@ -197,7 +197,8 @@ class ElementResolutionWorldBuilder extends ResolutionWorldBuilderBase {
}
assert(cls.isDeclaration);
if (!cls.isResolved) {
- reporter.internalError(cls, 'Class "${cls.name}" is not resolved.');
+ throw new SpannableAssertionFailure(
+ cls, 'Class "${cls.name}" is not resolved.');
}
_updateClassHierarchyNodeForClass(cls,
@@ -226,8 +227,11 @@ class ElementResolutionWorldBuilder extends ResolutionWorldBuilderBase {
_closed = true;
return _closedWorldCache = new ClosedWorldImpl(
- backend: _backend,
commonElements: _commonElements,
+ constantSystem: _backend.constantSystem,
+ nativeData: _backend.nativeData,
+ interceptorData: _backend.interceptorData,
+ backendUsage: _backend.backendUsage,
resolutionWorldBuilder: this,
functionSetBuilder: _allFunctions,
allTypedefs: _allTypedefs,
« no previous file with comments | « pkg/compiler/lib/src/ssa/interceptor_simplifier.dart ('k') | pkg/compiler/lib/src/universe/resolution_world_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698