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

Side by Side Diff: test/codegen/expect/_isolate_helper/_isolate_helper.js

Issue 973433003: Initial cut for a development server (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 var _isolate_helper; 1 var _isolate_helper;
2 (function(_isolate_helper) { 2 (function(_isolate_helper) {
3 'use strict'; 3 'use strict';
4 // Function _callInIsolate: (_IsolateContext, Function) → dynamic 4 // Function _callInIsolate: (_IsolateContext, Function) → dynamic
5 function _callInIsolate(isolate, function) { 5 function _callInIsolate(isolate, function) {
6 let result = isolate.eval(function); 6 let result = isolate.eval(function);
7 _isolate_helper._globalState.topEventLoop.run(); 7 _isolate_helper._globalState.topEventLoop.run();
8 return result; 8 return result;
9 } 9 }
10 // Function enterJsAsync: () → dynamic 10 // Function enterJsAsync: () → dynamic
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 } 701 }
702 onError(message); 702 onError(message);
703 return true; 703 return true;
704 } 704 }
705 } 705 }
706 IsolateNatives.enableSpawnWorker = null; 706 IsolateNatives.enableSpawnWorker = null;
707 dart.defineLazyProperties(IsolateNatives, { 707 dart.defineLazyProperties(IsolateNatives, {
708 get thisScript() { 708 get thisScript() {
709 return computeThisScript(); 709 return computeThisScript();
710 }, 710 },
711 set thisScript() {}, 711 set thisScript(_) {},
712 get workerIds() { 712 get workerIds() {
713 return new core.Expando(); 713 return new core.Expando();
714 } 714 }
715 }); 715 });
716 class _BaseSendPort extends dart.Object { 716 class _BaseSendPort extends dart.Object {
717 _BaseSendPort(_isolateId) { 717 _BaseSendPort(_isolateId) {
718 this._isolateId = _isolateId; 718 this._isolateId = _isolateId;
719 } 719 }
720 _checkReplyTo(replyTo) { 720 _checkReplyTo(replyTo) {
721 if (dart.notNull(dart.notNull(replyTo !== null) && dart.notNull(!dart.is(r eplyTo, _NativeJsSendPort))) && dart.notNull(!dart.is(replyTo, _WorkerSendPort)) ) { 721 if (dart.notNull(dart.notNull(replyTo !== null) && dart.notNull(!dart.is(r eplyTo, _NativeJsSendPort))) && dart.notNull(!dart.is(replyTo, _WorkerSendPort)) ) {
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 _isolate_helper.globalWindow = globalWindow; 1266 _isolate_helper.globalWindow = globalWindow;
1267 _isolate_helper.globalWorker = globalWorker; 1267 _isolate_helper.globalWorker = globalWorker;
1268 _isolate_helper.globalPostMessageDefined = globalPostMessageDefined; 1268 _isolate_helper.globalPostMessageDefined = globalPostMessageDefined;
1269 _isolate_helper.IsolateNatives = IsolateNatives; 1269 _isolate_helper.IsolateNatives = IsolateNatives;
1270 _isolate_helper.RawReceivePortImpl = RawReceivePortImpl; 1270 _isolate_helper.RawReceivePortImpl = RawReceivePortImpl;
1271 _isolate_helper.ReceivePortImpl = ReceivePortImpl; 1271 _isolate_helper.ReceivePortImpl = ReceivePortImpl;
1272 _isolate_helper.TimerImpl = TimerImpl; 1272 _isolate_helper.TimerImpl = TimerImpl;
1273 _isolate_helper.hasTimer = hasTimer; 1273 _isolate_helper.hasTimer = hasTimer;
1274 _isolate_helper.CapabilityImpl = CapabilityImpl; 1274 _isolate_helper.CapabilityImpl = CapabilityImpl;
1275 })(_isolate_helper || (_isolate_helper = {})); 1275 })(_isolate_helper || (_isolate_helper = {}));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698