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

Unified Diff: pkg/compiler/lib/src/js_model/js_strategy.dart

Issue 2998543002: Handle js interop members in impact computation. (Closed)
Patch Set: Updated cf. comments. Created 3 years, 4 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/js_backend/native_data.dart ('k') | pkg/compiler/lib/src/kernel/element_map.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_model/js_strategy.dart
diff --git a/pkg/compiler/lib/src/js_model/js_strategy.dart b/pkg/compiler/lib/src/js_model/js_strategy.dart
index 365b890865ba00caf8546a54e7c111cded6edd24..833f3b84bbaf2e94d264592b190762d88497690a 100644
--- a/pkg/compiler/lib/src/js_model/js_strategy.dart
+++ b/pkg/compiler/lib/src/js_model/js_strategy.dart
@@ -94,12 +94,21 @@ class JsBackendStrategy implements KernelBackendStrategy {
.forEach((ClassEntity cls, NativeClassTag tag) {
nativeClassTagInfo[map.toBackendClass(cls)] = tag;
});
- Set<LibraryEntity> jsInteropLibraries =
- map.toBackendLibrarySet(nativeBasicData.jsInteropLibraries);
- Set<ClassEntity> jsInteropClasses =
- map.toBackendClassSet(nativeBasicData.jsInteropClasses);
- return new NativeBasicDataImpl(_elementEnvironment, nativeClassTagInfo,
- jsInteropLibraries, jsInteropClasses);
+ Map<LibraryEntity, String> jsInteropLibraries =
+ map.toBackendLibraryMap(nativeBasicData.jsInteropLibraries, identity);
+ Map<ClassEntity, String> jsInteropClasses =
+ map.toBackendClassMap(nativeBasicData.jsInteropClasses, identity);
+ Set<ClassEntity> anonymousJsInteropClasses =
+ map.toBackendClassSet(nativeBasicData.anonymousJsInteropClasses);
+ Map<MemberEntity, String> jsInteropMembers =
+ map.toBackendMemberMap(nativeBasicData.jsInteropMembers, identity);
+ return new NativeBasicDataImpl(
+ _elementEnvironment,
+ nativeClassTagInfo,
+ jsInteropLibraries,
+ jsInteropClasses,
+ anonymousJsInteropClasses,
+ jsInteropMembers);
}
NativeData _convertNativeData(
@@ -146,13 +155,13 @@ class JsBackendStrategy implements KernelBackendStrategy {
map.toBackendMemberMap(
nativeData.nativeFieldStoreBehavior, convertNativeBehavior);
Map<LibraryEntity, String> jsInteropLibraryNames =
- map.toBackendLibraryMap(nativeData.jsInteropLibraryNames, identity);
+ map.toBackendLibraryMap(nativeData.jsInteropLibraries, identity);
Set<ClassEntity> anonymousJsInteropClasses =
map.toBackendClassSet(nativeData.anonymousJsInteropClasses);
Map<ClassEntity, String> jsInteropClassNames =
- map.toBackendClassMap(nativeData.jsInteropClassNames, identity);
+ map.toBackendClassMap(nativeData.jsInteropClasses, identity);
Map<MemberEntity, String> jsInteropMemberNames =
- map.toBackendMemberMap(nativeData.jsInteropMemberNames, identity);
+ map.toBackendMemberMap(nativeData.jsInteropMembers, identity);
return new NativeDataImpl(
nativeBasicData,
« no previous file with comments | « pkg/compiler/lib/src/js_backend/native_data.dart ('k') | pkg/compiler/lib/src/kernel/element_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698