Chromium Code Reviews| 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; |
| } |