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

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

Issue 16135004: Rename JS_CURRENT_ISOLATE to JS_CURRENT_ISOLATE_CONTEXT. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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/isolate_helper.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart b/dart/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart
index 3c7929910497803cbbeb89d879a8d9cf49d340a9..2f85b44bf49a945f2be0dd1cd5bfee35647aa8d7 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart
@@ -12,6 +12,7 @@ import 'dart:_js_helper' show convertDartClosureToJS,
import 'dart:_foreign_helper' show DART_CLOSURE_TO_JS,
JS,
JS_CREATE_ISOLATE,
+ JS_CURRENT_ISOLATE_CONTEXT,
JS_CURRENT_ISOLATE,
JS_SET_CURRENT_ISOLATE,
IsolateContext;
@@ -425,7 +426,7 @@ class IsolateNatives {
* JavaScript workers.
*/
static String computeThisScript() {
- var currentScript = JS('', r'$.$currentScript');
+ var currentScript = JS('', r'#.$currentScript', JS_CURRENT_ISOLATE());
if (currentScript != null) {
return JS('String', 'String(#.src)', currentScript);
}
@@ -555,11 +556,11 @@ class IsolateNatives {
/** Find a constructor given its name. */
static dynamic _getJSConstructorFromName(String factoryName) {
- return JS("", r"$[#]", factoryName);
+ return JS("", "#[#]", JS_CURRENT_ISOLATE(), factoryName);
}
static dynamic _getJSFunctionFromName(String functionName) {
- return JS("", r"$[#]", functionName);
+ return JS("", "#[#]", JS_CURRENT_ISOLATE(), functionName);
}
/**

Powered by Google App Engine
This is Rietveld 408576698