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

Unified Diff: pkg/compiler/lib/src/ssa/kernel_impact.dart

Issue 3000763002: Implement .getCallType (Closed)
Patch Set: The fix 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/ssa/builder.dart ('k') | pkg/compiler/lib/src/ssa/types.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/kernel_impact.dart
diff --git a/pkg/compiler/lib/src/ssa/kernel_impact.dart b/pkg/compiler/lib/src/ssa/kernel_impact.dart
index 8540e88e7194287e15e929f7c3e97994712937aa..379f151139c20b38d5841ccb832bc89859b04e51 100644
--- a/pkg/compiler/lib/src/ssa/kernel_impact.dart
+++ b/pkg/compiler/lib/src/ssa/kernel_impact.dart
@@ -124,9 +124,11 @@ class KernelImpactBuilder extends ir.Visitor {
}
if (field.isInstanceMember &&
elementAdapter.isNativeClass(field.enclosingClass)) {
- // TODO(redemption): Provide the correct value for [isJsInterop].
+ MemberEntity member = elementAdapter.getMember(field);
+ bool isJsInterop =
+ elementAdapter.nativeBasicData.isJsInteropMember(member);
impactBuilder.registerNativeData(elementAdapter
- .getNativeBehaviorForFieldLoad(field, isJsInterop: false));
+ .getNativeBehaviorForFieldLoad(field, isJsInterop: isJsInterop));
impactBuilder.registerNativeData(
elementAdapter.getNativeBehaviorForFieldStore(field));
}
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | pkg/compiler/lib/src/ssa/types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698