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

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

Issue 2814973003: Extract ClosedWorldRefiner implementation from ClosedWorldImpl to 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
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 ab5cf1933bc7d71f22a011b19d3eafcce802cd62..a20c19380b83d6f8260b00f69b8fae2a8ae7b51e 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -785,7 +785,8 @@ class JavaScriptBackend {
void onResolutionComplete(
ClosedWorld closedWorld, ClosedWorldRefiner closedWorldRefiner) {
- for (Entity entity in compiler.enqueuer.resolution.processedEntities) {
+ for (MemberEntity entity
+ in compiler.enqueuer.resolution.processedEntities) {
processAnnotations(entity, closedWorldRefiner);
}
mirrorsDataBuilder.computeMembersNeededForReflection(
@@ -1243,14 +1244,14 @@ class JavaScriptBackend {
/// Process backend specific annotations.
void processAnnotations(
- Element element, ClosedWorldRefiner closedWorldRefiner) {
+ MemberElement element, ClosedWorldRefiner closedWorldRefiner) {
if (element.isMalformed) {
// Elements that are marked as malformed during parsing or resolution
// might be registered here. These should just be ignored.
return;
}
- Element implementation = element.implementation;
+ MemberElement implementation = element.implementation;
if (element.isFunction || element.isConstructor) {
if (annotations.noInline(implementation)) {
inlineCache.markAsNonInlinable(implementation);

Powered by Google App Engine
This is Rietveld 408576698