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

Unified Diff: pkg/compiler/lib/src/js_emitter/native_emitter.dart

Issue 2680823002: Extract InterceptorData from JavaScriptBackend. (Closed)
Patch Set: Updated cf. comments Created 3 years, 10 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_emitter/native_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/native_emitter.dart b/pkg/compiler/lib/src/js_emitter/native_emitter.dart
index c49895a6612ec1a54f07eaadf687c6f375efd6b3..ef26ac69db0bb678d0bcd3a86bd0ac239141f1a5 100644
--- a/pkg/compiler/lib/src/js_emitter/native_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/native_emitter.dart
@@ -346,7 +346,8 @@ class NativeEmitter {
}
bool isSupertypeOfNativeClass(ClassEntity element) {
- if (backend.classesMixedIntoInterceptedClasses.contains(element)) {
+ if (backend.interceptorData.classesMixedIntoInterceptedClasses
+ .contains(element)) {
return true;
}
@@ -361,7 +362,7 @@ class NativeEmitter {
// the type info. i.e the criteria for whether or not to use an interceptor
// is whether the receiver can be native, not the type of the test.
ClassEntity cls = element;
- if (backend.isNativeOrExtendsNative(cls)) return true;
+ if (backend.nativeData.isNativeOrExtendsNative(cls)) return true;
return isSupertypeOfNativeClass(element);
}
}

Powered by Google App Engine
This is Rietveld 408576698