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

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

Issue 2826083002: Remove backend dependency from TypeTestRegistry (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/runtime_types.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index dae68b71c201b4c8264ab4e9fb8c96e99dc5d009..db1c375fa62fdceca27f2e2dca93471e13d86b67 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -367,7 +367,6 @@ class JavaScriptBackend {
new _RuntimeTypesNeedBuilder();
RuntimeTypesNeed _rtiNeed;
final _RuntimeTypes _rti;
- RuntimeTypesChecks _rtiChecks;
RuntimeTypesEncoder _rtiEncoder;
@@ -638,14 +637,8 @@ class JavaScriptBackend {
return _rtiNeedBuilder;
}
- RuntimeTypesChecks get rtiChecks {
- assert(invariant(NO_LOCATION_SPANNABLE, _rtiChecks != null,
- message: "RuntimeTypesChecks has not been computed yet."));
- return _rtiChecks;
- }
-
RuntimeTypesChecksBuilder get rtiChecksBuilder {
- assert(invariant(NO_LOCATION_SPANNABLE, _rtiChecks == null,
+ assert(invariant(NO_LOCATION_SPANNABLE, !_rti.rtiChecksBuilderClosed,
message: "RuntimeTypesChecks has already been computed."));
return _rti;
}
@@ -1035,11 +1028,6 @@ class JavaScriptBackend {
return jsAst.prettyPrint(generatedCode[element], compiler.options);
}
- /// Called to finalize the [RuntimeTypesChecks] information.
- void finalizeRti() {
- _rtiChecks = rtiChecksBuilder.computeRequiredChecks();
- }
-
/// Generates the output and returns the total size of the generated code.
int assembleProgram(ClosedWorld closedWorld) {
int programSize = emitter.assembleProgram(namer, closedWorld);
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/runtime_types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698