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

Unified Diff: frog/leg/emitter.dart

Issue 9706054: Fix wrong assumptions I had on the isolate library. (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
« no previous file with comments | « no previous file | frog/leg/ssa/builder.dart » ('j') | frog/leg/ssa/builder.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/emitter.dart
===================================================================
--- frog/leg/emitter.dart (revision 5514)
+++ frog/leg/emitter.dart (working copy)
@@ -606,7 +606,7 @@
Selector.SETTER);
});
}
-
+
String buildIsolateSetup(Element appMain, Element isolateMain) {
String mainAccess = "${namer.isolateAccess(appMain)}";
String currentIsolate = "${namer.CURRENT_ISOLATE}";
@@ -624,15 +624,16 @@
// are not really needed. We should remove them once Leg replaces Frog.
return """
var \$globalThis = $currentIsolate;
-var \$globalState = $currentIsolate;
-var \$globals = $currentIsolate;
+var \$globalState;
+var \$globals;
function \$static_init(){};
function \$initGlobals(context) {
context.isolateStatics = new ${namer.ISOLATE}();
}
function \$setGlobals(context) {
- \$globals = context.isolateStatics;
+ $currentIsolate = context.isolateStatics;
+ \$globalThis = $currentIsolate;
}
$mainEnsureGetter
${namer.isolateAccess(isolateMain)}($mainAccess);""";
« no previous file with comments | « no previous file | frog/leg/ssa/builder.dart » ('j') | frog/leg/ssa/builder.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698