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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/foreign_helper.dart

Issue 11778064: Cleanup the isolate library to pave the way for web worker support. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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
Index: sdk/lib/_internal/compiler/implementation/lib/foreign_helper.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/lib/foreign_helper.dart (revision 16903)
+++ sdk/lib/_internal/compiler/implementation/lib/foreign_helper.dart (working copy)
@@ -91,7 +91,7 @@
[var arg0, var arg1, var arg2]) {}
/**
- * Invoke a method without the compiler trying to intercept it.
+ * Invokes a method without the compiler trying to intercept it.
*/
dynamic UNINTERCEPTED(var expression) {}
@@ -106,11 +106,21 @@
dynamic JS_CURRENT_ISOLATE() {}
/**
- * Invoke [function] in the context of [isolate].
+ * Invokes [function] in the context of [isolate].
*/
dynamic JS_CALL_IN_ISOLATE(var isolate, Function function) {}
/**
- * Convers the Dart closure [function] into a JavaScript closure.
+ * Converts the Dart closure [function] into a JavaScript closure.
*/
dynamic DART_CLOSURE_TO_JS(Function function) {}
+
+/**
+ * Sets the current isolate to [isolate].
+ */
+void JS_SET_CURRENT_ISOLATE(var isolate) {}
+
+/**
+ * Creates an isolate and returns it.
+ */
+dynamic JS_CREATE_ISOLATE() {}

Powered by Google App Engine
This is Rietveld 408576698