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

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

Issue 1308993008: Add version validation for LookupMap, also add unittest directly in LookupMap (take 2) (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix on top of previous CL 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 2ab5920b541b21c97991e70f1a6db03325974555..e0311003aa1ea7cc2d8f6b729899b67a1b3e0e45 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.initRuntimeClass(find(library, 'LookupMap'));
+ lookupMapAnalysis.init(library);
}
annotations.onLibraryScanned(library);
});
@@ -2605,7 +2605,13 @@ class JavaScriptBackend extends Backend {
return true;
}
- void onQueueClosed() => lookupMapAnalysis.onQueueClosed();
+ void onQueueClosed() {
+ lookupMapAnalysis.onQueueClosed();
+ }
+
+ void onCodegenStart() {
+ lookupMapAnalysis.onCodegenStart();
+ }
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