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

Unified Diff: lib/isolate/isolate_leg.dart

Issue 9702074: Add support for capturing and changing the current isolate in the closure wrapper. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 months 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
« frog/leg/ssa/builder.dart ('K') | « frog/leg/ssa/builder.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« frog/leg/ssa/builder.dart ('K') | « frog/leg/ssa/builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698