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

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

Issue 2782583003: Extract the AST specific part of NoSuchMethodRegistry (Closed)
Patch Set: Created 3 years, 9 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_helpers.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend_helpers.dart b/pkg/compiler/lib/src/js_backend/backend_helpers.dart
index 252e3217619701b8cda437ede0ee3a8fe0c6e727..c3373d8b89c2de3ce4c584b6f09b4aabae0d3d66 100644
--- a/pkg/compiler/lib/src/js_backend/backend_helpers.dart
+++ b/pkg/compiler/lib/src/js_backend/backend_helpers.dart
@@ -745,6 +745,13 @@ class BackendHelpers {
commonElements.objectClass, Identifiers.noSuchMethod_);
}
+ bool isDefaultNoSuchMethodImplementation(FunctionEntity element) {
+ ClassEntity classElement = element.enclosingClass;
+ return classElement == commonElements.objectClass ||
+ classElement == jsInterceptorClass ||
+ classElement == jsNullClass;
+ }
+
ClassEntity get constantMapClass =>
_findHelperClass(JavaScriptMapConstant.DART_CLASS);
ClassEntity get constantStringMapClass =>
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/js_backend/no_such_method_registry.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698