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

Unified Diff: sdk/lib/_internal/compiler/implementation/native_handler.dart

Issue 11348316: Move the handling of operator[] into the new interceptors. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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: sdk/lib/_internal/compiler/implementation/native_handler.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/native_handler.dart (revision 15907)
+++ sdk/lib/_internal/compiler/implementation/native_handler.dart (working copy)
@@ -311,8 +311,10 @@
if (type is SpecialType) {
if (type == SpecialType.JsArray) {
world.registerInstantiatedClass(compiler.listClass);
+ enqueueClass(compiler.listClass, 'core type');
sra1 2012/12/10 23:42:21 Line before this should be unnecessary, since enqu
ngeoffray 2012/12/11 09:30:15 Done.
} else if (type == SpecialType.JsObject) {
world.registerInstantiatedClass(compiler.objectClass);
+ enqueueClass(compiler.objectClass, 'core type');
}
continue;
}
@@ -399,14 +401,10 @@
: super(world, compiler, compiler.enableNativeLiveTypeAnalysis);
void processNativeClasses(Collection<LibraryElement> libraries) {
- super.processNativeClasses(libraries);
sra1 2012/12/10 23:42:21 Removing this will mess up --disable-native-live-t
-
// HACK HACK - add all the resolved classes.
NativeEnqueuerBase enqueuer = compiler.enqueuer.resolution.nativeEnqueuer;
for (final classElement in enqueuer.registeredClasses) {
- if (unusedClasses.contains(classElement)) {
- enqueueClass(classElement, 'was resolved');
- }
+ enqueueClass(classElement, 'was resolved');
}
flushQueue();
}

Powered by Google App Engine
This is Rietveld 408576698