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

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

Issue 12288047: Change IsolateNatives.computeThisScript to use captured value of document.currentScript. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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: dart/sdk/lib/_internal/compiler/implementation/lib/foreign_helper.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/lib/foreign_helper.dart b/dart/sdk/lib/_internal/compiler/implementation/lib/foreign_helper.dart
index 97700a7bee865515680cfd605f294e0d467fc2a9..ac14c322a98fc27e80307b78b9beacdb3bf1bda3 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/lib/foreign_helper.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/lib/foreign_helper.dart
@@ -96,7 +96,13 @@ dynamic JS(String typeDescription, String codeTemplate,
/**
* Returns the isolate in which this code is running.
*/
-dynamic JS_CURRENT_ISOLATE() {}
+IsolateContext JS_CURRENT_ISOLATE() {}
+
+abstract class IsolateContext {
+ /// Holds a (native) JavaScript instance of Isolate, see
+ /// finishIsolateConstructorFunction in emitter.dart.
+ get isolateStatics;
+}
/**
* Invokes [function] in the context of [isolate].

Powered by Google App Engine
This is Rietveld 408576698