Index: lib/isolate/isolate_leg.dart |
=================================================================== |
--- lib/isolate/isolate_leg.dart (revision 5517) |
+++ lib/isolate/isolate_leg.dart (working copy) |
@@ -43,3 +43,14 @@ |
#source("frog/isolateimpl.dart"); |
#source("frog/ports.dart"); |
#source("frog/messages.dart"); |
+ |
+/** |
+ * These methods are called by the compiler to support switching |
ahe
2012/03/16 14:03:16
A documentation comment only applies to one elemen
ngeoffray
2012/03/19 10:29:58
Done.
|
+ * between isolates when we get a callback from the DOM. |
+ */ |
+void _callInIsolate(IsolateContext isolate, Function function) { |
ahe
2012/03/16 14:03:16
I would rather have these methods in js_helper.
ngeoffray
2012/03/19 10:29:58
I agree, and maybe long-term that's what will happ
|
+ isolate.eval(function); |
+ _globalState.topEventLoop.run(); |
+} |
+ |
+void _currentIsolate() => _globalState.currentContext; |