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

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 15954)
+++ sdk/lib/_internal/compiler/implementation/native_handler.dart (working copy)
@@ -114,7 +114,7 @@
library.implementation.forEachLocalMember((Element element) {
if (element.kind == ElementKind.CLASS) {
ClassElement classElement = element;
- if (classElement.isNative()) {
+ if (classElement.isNative() || classElement == compiler.listClass) {
sra1 2012/12/12 04:28:02 And compile.stringClass? It would be better to ad
ngeoffray 2012/12/12 11:54:56 Done. I also added string, int, double and bool as
nativeClasses.add(classElement);
unusedClasses.add(classElement);
@@ -310,9 +310,9 @@
matchedTypeConstraints.add(type);
if (type is SpecialType) {
if (type == SpecialType.JsArray) {
- world.registerInstantiatedClass(compiler.listClass);
+ enqueueClass(compiler.listClass, 'core type');
} else if (type == SpecialType.JsObject) {
- world.registerInstantiatedClass(compiler.objectClass);
+ enqueueClass(compiler.objectClass, 'core type');
}
continue;
}

Powered by Google App Engine
This is Rietveld 408576698