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

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

Issue 2826673002: Remove JavaScriptBackend from ClosedWorldBase (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 | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/js_backend/interceptor_data.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 4b640d3963490fb01233035fa15c9a2ff6040a24..eb2f8a28dd9548783ca6211fefab7952d0440732 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -771,6 +771,11 @@ class JavaScriptBackend {
validateInterceptorImplementsAllObjectMethods(commonElements.jsNullClass);
}
+ void onResolutionEnd() {
Siggi Cherem (dart-lang) 2017/04/18 15:58:05 it seems a bit confusing to have two events called
Johnni Winther 2017/04/19 09:30:33 The actually order in which these objects are crea
+ _backendUsage = backendUsageBuilder.close();
+ _interceptorData = interceptorDataBuilder.onResolutionComplete();
+ }
+
void onResolutionComplete(
ClosedWorld closedWorld, ClosedWorldRefiner closedWorldRefiner) {
for (MemberEntity entity
@@ -779,7 +784,6 @@ class JavaScriptBackend {
}
mirrorsDataBuilder.computeMembersNeededForReflection(
compiler.enqueuer.resolution.worldBuilder, closedWorld);
- _backendUsage = backendUsageBuilder.close();
_rtiNeed = rtiNeedBuilder.computeRuntimeTypesNeed(
compiler.enqueuer.resolution.worldBuilder,
closedWorld,
@@ -787,7 +791,6 @@ class JavaScriptBackend {
commonElements,
_backendUsage,
enableTypeAssertions: compiler.options.enableTypeAssertions);
- _interceptorData = interceptorDataBuilder.onResolutionComplete(closedWorld);
_oneShotInterceptorData =
new OneShotInterceptorData(interceptorData, commonElements);
mirrorsResolutionAnalysis.onResolutionComplete();
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/js_backend/interceptor_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698