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

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

Issue 969783002: implement rethrow (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
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var _isolate_helper; 1 var _isolate_helper;
2 (function(exports) { 2 (function(exports) {
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 exports._globalState.topEventLoop.run(); 7 exports._globalState.topEventLoop.run();
8 return result; 8 return result;
9 } 9 }
10 // Function enterJsAsync: () → dynamic 10 // Function enterJsAsync: () → dynamic
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 let result = null; 247 let result = null;
248 this._isExecutingEvent = true; 248 this._isExecutingEvent = true;
249 try { 249 try {
250 result = dart.dinvokef(code); 250 result = dart.dinvokef(code);
251 } catch (e) { 251 } catch (e) {
252 let s = dart.stackTrace(e); 252 let s = dart.stackTrace(e);
253 this.handleUncaughtError(e, s); 253 this.handleUncaughtError(e, s);
254 if (this.errorsAreFatal) { 254 if (this.errorsAreFatal) {
255 this.kill(); 255 this.kill();
256 if (core.identical(this, exports._globalState.rootContext)) { 256 if (core.identical(this, exports._globalState.rootContext)) {
257 dart.throw_("Unimplemented RethrowExpression: rethrow"); 257 throw e;
258 } 258 }
259 } 259 }
260 } 260 }
261 finally { 261 finally {
262 this._isExecutingEvent = false; 262 this._isExecutingEvent = false;
263 exports._globalState.currentContext = old; 263 exports._globalState.currentContext = old;
264 if (old !== null) 264 if (old !== null)
265 old._setGlobals(); 265 old._setGlobals();
266 if (this._scheduledControlEvents !== null) { 266 if (this._scheduledControlEvents !== null) {
267 while (dart.dload(this._scheduledControlEvents, 'isNotEmpty')) { 267 while (dart.dload(this._scheduledControlEvents, 'isNotEmpty')) {
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 exports.globalWindow = globalWindow; 1266 exports.globalWindow = globalWindow;
1267 exports.globalWorker = globalWorker; 1267 exports.globalWorker = globalWorker;
1268 exports.globalPostMessageDefined = globalPostMessageDefined; 1268 exports.globalPostMessageDefined = globalPostMessageDefined;
1269 exports.IsolateNatives = IsolateNatives; 1269 exports.IsolateNatives = IsolateNatives;
1270 exports.RawReceivePortImpl = RawReceivePortImpl; 1270 exports.RawReceivePortImpl = RawReceivePortImpl;
1271 exports.ReceivePortImpl = ReceivePortImpl; 1271 exports.ReceivePortImpl = ReceivePortImpl;
1272 exports.TimerImpl = TimerImpl; 1272 exports.TimerImpl = TimerImpl;
1273 exports.hasTimer = hasTimer; 1273 exports.hasTimer = hasTimer;
1274 exports.CapabilityImpl = CapabilityImpl; 1274 exports.CapabilityImpl = CapabilityImpl;
1275 })(_isolate_helper || (_isolate_helper = {})); 1275 })(_isolate_helper || (_isolate_helper = {}));
OLDNEW
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698