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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart

Issue 14286007: Revert "Native mixin interceptor bug fix" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | « no previous file | tests/compiler/dart2js_extra/10216a_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
index 074f1783d9000bea2a90179c6468a787a47943ff..7feb253ee3c6375dd5dbdd799c38e770855572b9 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
@@ -845,37 +845,12 @@ class JavaScriptBackend extends Backend {
Set<ClassElement> result = new Set<ClassElement>();
for (Element element in intercepted) {
ClassElement classElement = element.getEnclosingClass();
- if (classElement.isNative()
- || interceptedClasses.contains(classElement)) {
- result.add(classElement);
- }
- if (classesMixedIntoNativeClasses.contains(classElement)) {
- Set<Element> nativeSubclasses = nativeSubclassesOfMixin(classElement);
- if (nativeSubclasses != null) result.addAll(nativeSubclasses);
- }
+ result.add(classElement);
}
return result;
});
}
- Set<Element> nativeSubclassesOfMixin(ClassElement mixin) {
- Set<MixinApplicationElement> uses = compiler.world.mixinUses[mixin];
- if (uses == null) return null;
- Set<Element> result = null;
- for (MixinApplicationElement use in uses) {
- Iterable<ClassElement> subclasses = compiler.world.subclasses[use];
- if (subclasses != null) {
- for (ClassElement subclass in subclasses) {
- if (subclass.isNative()) {
- if (result == null) result = new Set<Element>();
- result.add(subclass);
- }
- }
- }
- }
- return result;
- }
-
bool operatorEqHandlesNullArgument(FunctionElement operatorEqfunction) {
return specialOperatorEqClasses.contains(
operatorEqfunction.getEnclosingClass());
« no previous file with comments | « no previous file | tests/compiler/dart2js_extra/10216a_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698