Chromium Code Reviews| Index: dart/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart |
| diff --git a/dart/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart b/dart/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart |
| index 2c80eaa53140bf0741af00a07796497205109974..72d3f0aa59381eb3d5821d55d6e6ad11d4031c4e 100644 |
| --- a/dart/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart |
| +++ b/dart/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart |
| @@ -522,6 +522,16 @@ class Primitives { |
| ? JS('bool', '# == null', b) |
| : JS('bool', '# === #', a, b); |
| } |
| + |
| + // Used to implement deferred loading. Used as callback on "load" |
|
ahe
2013/02/04 17:46:29
I should be able to move these methods into async_
ahe
2013/02/05 13:54:22
Done.
|
| + // event by async_patch.dart. |
| + static onDeferredLibraryLoadClosure(/* Completer<bool> */ completer, event) { |
| + completer.complete(true); |
| + } |
| + |
| + static onDeferredLibraryLoad() { |
| + return DART_CLOSURE_TO_JS(onDeferredLibraryLoadClosure); |
| + } |
| } |
| /** |