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

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

Issue 1020853007: Don't bailout of type inference for simple NSM implementations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index e5285d384610dc4e54dbf1f952c28dd3dcee84f8..3559724bea44f8bc7922f4c0dd156e70dd7b85b9 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -1275,13 +1275,8 @@ class JavaScriptBackend extends Backend {
compiler.enabledRuntimeType;
}
- bool isDefaultNoSuchMethodImplementation(Element element) {
- assert(element.name == Compiler.NO_SUCH_METHOD);
- ClassElement classElement = element.enclosingClass;
- return classElement == compiler.objectClass
- || classElement == jsInterceptorClass
- || classElement == jsNullClass;
- }
+ bool isComplexNoSuchMethod(FunctionElement element) =>
+ noSuchMethodRegistry.isComplex(element);
bool isDefaultEqualityImplementation(Element element) {
assert(element.name == '==');
« no previous file with comments | « pkg/compiler/lib/src/inferrer/type_graph_nodes.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