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

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

Issue 868283005: dart2js: make "CREATE_JS_ISOLATE" an embedded global. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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: sdk/lib/_internal/compiler/js_lib/isolate_helper.dart
diff --git a/sdk/lib/_internal/compiler/js_lib/isolate_helper.dart b/sdk/lib/_internal/compiler/js_lib/isolate_helper.dart
index 9936e00fbac79a150c84786d949cb06e388b707e..4627da32b9f47654025a7f784a22bdec6e3f7bb1 100644
--- a/sdk/lib/_internal/compiler/js_lib/isolate_helper.dart
+++ b/sdk/lib/_internal/compiler/js_lib/isolate_helper.dart
@@ -7,6 +7,7 @@ library _isolate_helper;
import 'dart:_js_embedded_names' show
CLASS_ID_EXTRACTOR,
CLASS_FIELDS_EXTRACTOR,
+ CREATE_NEW_ISOLATE,
CURRENT_SCRIPT,
GLOBAL_FUNCTIONS,
INITIALIZE_EMPTY_INSTANCE,
@@ -28,7 +29,6 @@ import 'dart:_js_helper' show
import 'dart:_foreign_helper' show DART_CLOSURE_TO_JS,
JS,
- JS_CREATE_ISOLATE,
JS_CURRENT_ISOLATE_CONTEXT,
JS_CURRENT_ISOLATE,
JS_EMBEDDED_GLOBAL,
@@ -289,7 +289,8 @@ class _IsolateContext implements IsolateContext {
/** Holds isolate globals (statics and top-level properties). */
// native object containing all globals of an isolate.
- final isolateStatics = JS_CREATE_ISOLATE();
+ final isolateStatics =
+ JS('', "#()", JS_EMBEDDED_GLOBAL('', CREATE_NEW_ISOLATE));
final RawReceivePortImpl controlPort = new RawReceivePortImpl._controlPort();
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/foreign_helper.dart ('k') | sdk/lib/_internal/compiler/js_lib/shared/embedded_names.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698