| 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..61701c3e9f2cc2f6c9499f4d36fa7ef1c0bb801c 100644
|
| --- a/pkg/compiler/lib/src/js_backend/backend.dart
|
| +++ b/pkg/compiler/lib/src/js_backend/backend.dart
|
| @@ -585,9 +585,6 @@ class JavaScriptBackend extends Backend {
|
| /// constructors for custom elements.
|
| CustomElementsAnalysis customElementsAnalysis;
|
|
|
| - /// Support for classifying `noSuchMethod` implementations.
|
| - NoSuchMethodRegistry noSuchMethodRegistry;
|
| -
|
| JavaScriptConstantTask constantCompilerTask;
|
|
|
| JavaScriptResolutionCallbacks resolutionCallbacks;
|
| @@ -596,8 +593,6 @@ class JavaScriptBackend extends Backend {
|
|
|
| bool get canHandleCompilationFailed => true;
|
|
|
| - bool enabledNoSuchMethod = false;
|
| -
|
| JavaScriptBackend(Compiler compiler, bool generateSourceMap)
|
| : namer = determineNamer(compiler),
|
| oneShotInterceptors = new Map<String, Selector>(),
|
| @@ -608,7 +603,6 @@ class JavaScriptBackend extends Backend {
|
| emitter = new CodeEmitterTask(compiler, namer, generateSourceMap);
|
| typeVariableHandler = new TypeVariableHandler(this);
|
| customElementsAnalysis = new CustomElementsAnalysis(this);
|
| - noSuchMethodRegistry = new NoSuchMethodRegistry(this);
|
| constantCompilerTask = new JavaScriptConstantTask(compiler);
|
| resolutionCallbacks = new JavaScriptResolutionCallbacks(this);
|
| patchResolverTask = new PatchResolverTask(compiler);
|
| @@ -1216,13 +1210,11 @@ class JavaScriptBackend extends Backend {
|
| enqueueClass(compiler.enqueuer.resolution, compiler.stringClass, registry);
|
| }
|
|
|
| - void registerNoSuchMethod(Element noSuchMethod) {
|
| - noSuchMethodRegistry.registerNoSuchMethod(noSuchMethod);
|
| - }
|
| -
|
| - void enableNoSuchMethod(Enqueuer world) {
|
| + void enableNoSuchMethod(Element context, Enqueuer world) {
|
| enqueue(world, getCreateInvocationMirror(), compiler.globalDependencies);
|
| world.registerInvocation(compiler.noSuchMethodSelector);
|
| + // TODO(tyoverby): Send the context element to DumpInfoTask to be
|
| + // blamed.
|
| }
|
|
|
| void enableIsolateSupport(Enqueuer enqueuer) {
|
| @@ -2411,14 +2403,6 @@ class JavaScriptBackend extends Backend {
|
| customElementsAnalysis.onQueueEmpty(enqueuer);
|
| if (!enqueuer.queueIsEmpty) return false;
|
|
|
| - noSuchMethodRegistry.onQueueEmpty();
|
| - if (!enabledNoSuchMethod &&
|
| - (noSuchMethodRegistry.hasThrowingNoSuchMethod ||
|
| - noSuchMethodRegistry.hasComplexNoSuchMethod)) {
|
| - enableNoSuchMethod(enqueuer);
|
| - enabledNoSuchMethod = true;
|
| - }
|
| -
|
| if (compiler.hasIncrementalSupport) {
|
| // Always enable tear-off closures during incremental compilation.
|
| Element e = findHelper('closureFromTearOff');
|
|
|