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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart

Issue 23523003: Address a number of issues related to computation of currentScript and deferred loading. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add tests Created 7 years, 4 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 | dart/sdk/lib/_internal/lib/async_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
index 06c9420cc5416e3f8b4b05464f532fab0c0754b0..07e1fce6985f48905e72fd4c6039e6ef0f9d518a 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
@@ -857,8 +857,6 @@ class CodeEmitterTask extends CompilerTask {
return js.fun('oldIsolate', [
js('var isolateProperties = oldIsolate.${namer.isolatePropertiesName}'),
- js(r'isolateProperties.$currentScript = null'),
-
js('var isolatePrototype = oldIsolate.prototype'),
js('var str = "{\\n"'),
js('str += "var properties = '
@@ -2962,8 +2960,7 @@ class CodeEmitterTask extends CompilerTask {
scripts[i].addEventListener('load', onLoad, false);
}
})(function(currentScript) {
- ${namer.isolateName}.${namer.isolatePropertiesName}.\$currentScript =
- currentScript;
+ init.currentScript = currentScript;
if (typeof console !== 'undefined' && typeof document !== 'undefined' &&
document.readyState == "loading") {
« no previous file with comments | « no previous file | dart/sdk/lib/_internal/lib/async_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698