Chromium Code Reviews| Index: dart/lib/compiler/implementation/native_handler.dart |
| diff --git a/dart/lib/compiler/implementation/native_handler.dart b/dart/lib/compiler/implementation/native_handler.dart |
| index d6b9add71ec5c733a8d7e2fbf6e20017bd60d38b..7da59ad4d1794c498b4eb1d7d33569d77b86a77e 100644 |
| --- a/dart/lib/compiler/implementation/native_handler.dart |
| +++ b/dart/lib/compiler/implementation/native_handler.dart |
| @@ -59,14 +59,17 @@ void processNativeClassesInLibrary(CodeEmitterTask emitter, |
| } |
| } |
| if (hasNativeClass) { |
| - compiler.registerStaticUse(compiler.findHelper( |
| - const SourceString('dynamicFunction'))); |
| - compiler.registerStaticUse(compiler.findHelper( |
| - const SourceString('dynamicSetMetadata'))); |
| - compiler.registerStaticUse(compiler.findHelper( |
| - const SourceString('defineProperty'))); |
| - compiler.registerStaticUse(compiler.findHelper( |
| - const SourceString('toStringForNativeObject'))); |
| + final worlds = [compiler.enqueuer.resolution, compiler.enqueuer.codegen]; |
|
ngeoffray
2012/05/23 11:48:59
Could 'worlds' be placed in compiler instead?
ahe
2012/05/23 12:00:30
I'm not really sure about this yet.
|
| + for (Universe world in worlds) { |
| + world.registerStaticUse(compiler.findHelper( |
| + const SourceString('dynamicFunction'))); |
| + world.registerStaticUse(compiler.findHelper( |
| + const SourceString('dynamicSetMetadata'))); |
| + world.registerStaticUse(compiler.findHelper( |
| + const SourceString('defineProperty'))); |
| + world.registerStaticUse(compiler.findHelper( |
| + const SourceString('toStringForNativeObject'))); |
| + } |
| } |
| } |