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

Side by Side Diff: lib/runtime/dart/_isolate_helper.js

Issue 1243503007: fixes #221, initial sync*, async, async* implementation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « lib/runtime/_operations.js ('k') | lib/runtime/dart/_js_helper.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('dart/_isolate_helper', null, /* Imports */[ 1 dart_library.library('dart/_isolate_helper', null, /* Imports */[
2 "dart_runtime/dart", 2 "dart_runtime/dart",
3 'dart/core', 3 'dart/core',
4 'dart/_interceptors', 4 'dart/_interceptors',
5 'dart/_js_helper', 5 'dart/_js_helper',
6 'dart/isolate', 6 'dart/isolate',
7 'dart/_foreign_helper', 7 'dart/_foreign_helper',
8 'dart/collection', 8 'dart/collection',
9 'dart/async' 9 'dart/async'
10 ], /* Lazy imports */[ 10 ], /* Lazy imports */[
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 class IsolateNatives extends core.Object { 943 class IsolateNatives extends core.Object {
944 static computeThisScript() { 944 static computeThisScript() {
945 let currentScript = document.currentScript; 945 let currentScript = document.currentScript;
946 if (currentScript != null) { 946 if (currentScript != null) {
947 return String(currentScript.src); 947 return String(currentScript.src);
948 } 948 }
949 if (dart.notNull(_js_helper.Primitives.isD8)) 949 if (dart.notNull(_js_helper.Primitives.isD8))
950 return IsolateNatives.computeThisScriptD8(); 950 return IsolateNatives.computeThisScriptD8();
951 if (dart.notNull(_js_helper.Primitives.isJsshell)) 951 if (dart.notNull(_js_helper.Primitives.isJsshell))
952 return IsolateNatives.computeThisScriptJsshell(); 952 return IsolateNatives.computeThisScriptJsshell();
953 if (dart.notNull(exports._globalState.isWorker)) 953 if (exports._globalState != null && dart.notNull(exports._globalState.isWo rker)) {
954 return IsolateNatives.computeThisScriptFromTrace(); 954 return IsolateNatives.computeThisScriptFromTrace();
955 }
955 return null; 956 return null;
956 } 957 }
957 static computeThisScriptJsshell() { 958 static computeThisScriptJsshell() {
958 return dart.as(thisFilename(), core.String); 959 return dart.as(thisFilename(), core.String);
959 } 960 }
960 static computeThisScriptD8() { 961 static computeThisScriptD8() {
961 return IsolateNatives.computeThisScriptFromTrace(); 962 return IsolateNatives.computeThisScriptFromTrace();
962 } 963 }
963 static computeThisScriptFromTrace() { 964 static computeThisScriptFromTrace() {
964 let stack = new Error().stack; 965 let stack = new Error().stack;
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
1554 exports.leaveJsAsync = leaveJsAsync; 1555 exports.leaveJsAsync = leaveJsAsync;
1555 exports.isWorker = isWorker; 1556 exports.isWorker = isWorker;
1556 exports.startRootIsolate = startRootIsolate; 1557 exports.startRootIsolate = startRootIsolate;
1557 exports.IsolateNatives = IsolateNatives; 1558 exports.IsolateNatives = IsolateNatives;
1558 exports.RawReceivePortImpl = RawReceivePortImpl; 1559 exports.RawReceivePortImpl = RawReceivePortImpl;
1559 exports.ReceivePortImpl = ReceivePortImpl; 1560 exports.ReceivePortImpl = ReceivePortImpl;
1560 exports.TimerImpl = TimerImpl; 1561 exports.TimerImpl = TimerImpl;
1561 exports.hasTimer = hasTimer; 1562 exports.hasTimer = hasTimer;
1562 exports.CapabilityImpl = CapabilityImpl; 1563 exports.CapabilityImpl = CapabilityImpl;
1563 }); 1564 });
OLDNEW
« no previous file with comments | « lib/runtime/_operations.js ('k') | lib/runtime/dart/_js_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698