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

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

Issue 1487213002: Special-case top-level final JS fields. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: rebased Created 5 years 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 | « no previous file | lib/runtime/dart/_js_mirrors.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", 2 "dart/_runtime",
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 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 this.isolate.delayedEvents[dartx.add](this); 909 this.isolate.delayedEvents[dartx.add](this);
910 return; 910 return;
911 } 911 }
912 this.isolate.eval(this.fn); 912 this.isolate.eval(this.fn);
913 } 913 }
914 } 914 }
915 dart.setSignature(_IsolateEvent, { 915 dart.setSignature(_IsolateEvent, {
916 constructors: () => ({_IsolateEvent: [_IsolateEvent, [_IsolateContext, core. Function, core.String]]}), 916 constructors: () => ({_IsolateEvent: [_IsolateEvent, [_IsolateContext, core. Function, core.String]]}),
917 methods: () => ({process: [dart.void, []]}) 917 methods: () => ({process: [dart.void, []]})
918 }); 918 });
919 dart.defineLazyProperties(exports, { 919 const _global = typeof global == 'undefined' ? self : global;
920 get _global() {
921 return typeof global == 'undefined' ? self : global;
922 }
923 });
924 class _MainManagerStub extends core.Object { 920 class _MainManagerStub extends core.Object {
925 postMessage(msg) { 921 postMessage(msg) {
926 exports._global.postMessage(msg); 922 _global.postMessage(msg);
927 } 923 }
928 } 924 }
929 dart.setSignature(_MainManagerStub, { 925 dart.setSignature(_MainManagerStub, {
930 methods: () => ({postMessage: [dart.void, [dart.dynamic]]}) 926 methods: () => ({postMessage: [dart.void, [dart.dynamic]]})
931 }); 927 });
932 const _SPAWNED_SIGNAL = "spawned"; 928 const _SPAWNED_SIGNAL = "spawned";
933 const _SPAWN_FAILED_SIGNAL = "spawn failed"; 929 const _SPAWN_FAILED_SIGNAL = "spawn failed";
934 dart.copyProperties(exports, { 930 dart.copyProperties(exports, {
935 get globalWindow() { 931 get globalWindow() {
936 return exports._global.window; 932 return _global.window;
937 }, 933 },
938 get globalWorker() { 934 get globalWorker() {
939 return exports._global.Worker; 935 return _global.Worker;
940 }, 936 },
941 get globalPostMessageDefined() { 937 get globalPostMessageDefined() {
942 return !!exports._global.postMessage; 938 return !!_global.postMessage;
943 } 939 }
944 }); 940 });
945 const _MainFunction = dart.typedef('_MainFunction', () => dart.functionType(da rt.dynamic, [])); 941 const _MainFunction = dart.typedef('_MainFunction', () => dart.functionType(da rt.dynamic, []));
946 const _MainFunctionArgs = dart.typedef('_MainFunctionArgs', () => dart.functio nType(dart.dynamic, [dart.dynamic])); 942 const _MainFunctionArgs = dart.typedef('_MainFunctionArgs', () => dart.functio nType(dart.dynamic, [dart.dynamic]));
947 const _MainFunctionArgsMessage = dart.typedef('_MainFunctionArgsMessage', () = > dart.functionType(dart.dynamic, [dart.dynamic, dart.dynamic])); 943 const _MainFunctionArgsMessage = dart.typedef('_MainFunctionArgsMessage', () = > dart.functionType(dart.dynamic, [dart.dynamic, dart.dynamic]));
948 class IsolateNatives extends core.Object { 944 class IsolateNatives extends core.Object {
949 static computeThisScript() { 945 static computeThisScript() {
950 let currentScript = document.currentScript; 946 let currentScript = document.currentScript;
951 if (currentScript != null) { 947 if (currentScript != null) {
952 return String(currentScript.src); 948 return String(currentScript.src);
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
1560 exports.leaveJsAsync = leaveJsAsync; 1556 exports.leaveJsAsync = leaveJsAsync;
1561 exports.isWorker = isWorker; 1557 exports.isWorker = isWorker;
1562 exports.startRootIsolate = startRootIsolate; 1558 exports.startRootIsolate = startRootIsolate;
1563 exports.IsolateNatives = IsolateNatives; 1559 exports.IsolateNatives = IsolateNatives;
1564 exports.RawReceivePortImpl = RawReceivePortImpl; 1560 exports.RawReceivePortImpl = RawReceivePortImpl;
1565 exports.ReceivePortImpl = ReceivePortImpl; 1561 exports.ReceivePortImpl = ReceivePortImpl;
1566 exports.TimerImpl = TimerImpl; 1562 exports.TimerImpl = TimerImpl;
1567 exports.hasTimer = hasTimer; 1563 exports.hasTimer = hasTimer;
1568 exports.CapabilityImpl = CapabilityImpl; 1564 exports.CapabilityImpl = CapabilityImpl;
1569 }); 1565 });
OLDNEW
« no previous file with comments | « no previous file | lib/runtime/dart/_js_mirrors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698