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

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

Issue 1318003006: Revert "Add version validation for LookupMap, also add unittest directly in LookupMap." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index e0311003aa1ea7cc2d8f6b729899b67a1b3e0e45..2ab5920b541b21c97991e70f1a6db03325974555 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -2159,7 +2159,7 @@ class JavaScriptBackend extends Backend {
} else if (uri == Uris.dart_html) {
htmlLibraryIsLoaded = true;
} else if (uri == PACKAGE_LOOKUP_MAP) {
- lookupMapAnalysis.init(library);
+ lookupMapAnalysis.initRuntimeClass(find(library, 'LookupMap'));
}
annotations.onLibraryScanned(library);
});
@@ -2605,13 +2605,7 @@ class JavaScriptBackend extends Backend {
return true;
}
- void onQueueClosed() {
- lookupMapAnalysis.onQueueClosed();
- }
-
- void onCodegenStart() {
- lookupMapAnalysis.onCodegenStart();
- }
+ void onQueueClosed() => lookupMapAnalysis.onQueueClosed();
void onElementResolved(Element element, TreeElements elements) {
if ((element.isFunction || element.isGenerativeConstructor) &&
« no previous file with comments | « pkg/compiler/lib/src/diagnostics/messages.dart ('k') | pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698