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

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

Issue 1055923002: Don't call dinvoke on Object methods (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Refactor dynamic target logic Created 5 years, 8 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 | « no previous file | lib/runtime/dart/_js_helper.js » ('j') | lib/src/checker/rules.dart » ('J')
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 _serializeMessage: (dynamic) → dynamic 4 // Function _serializeMessage: (dynamic) → dynamic
5 function _serializeMessage(message) { 5 function _serializeMessage(message) {
6 return new _Serializer().serialize(message); 6 return new _Serializer().serialize(message);
7 } 7 }
8 // Function _deserializeMessage: (dynamic) → dynamic 8 // Function _deserializeMessage: (dynamic) → dynamic
9 function _deserializeMessage(message) { 9 function _deserializeMessage(message) {
10 return new _Deserializer().deserialize(message); 10 return new _Deserializer().deserialize(message);
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 if (self.console && self.console.error) { 588 if (self.console && self.console.error) {
589 self.console.error(error, stackTrace); 589 self.console.error(error, stackTrace);
590 } else { 590 } else {
591 core.print(error); 591 core.print(error);
592 if (stackTrace != null) 592 if (stackTrace != null)
593 core.print(stackTrace); 593 core.print(stackTrace);
594 } 594 }
595 return; 595 return;
596 } 596 }
597 let message = new core.List(2); 597 let message = new core.List(2);
598 message[core.$set](0, dart.dinvoke(error, 'toString')); 598 message[core.$set](0, error.toString());
599 message[core.$set](1, stackTrace == null ? null : stackTrace.toString()); 599 message[core.$set](1, stackTrace == null ? null : stackTrace.toString());
600 for (let port of this.errorPorts) 600 for (let port of this.errorPorts)
601 port.send(message); 601 port.send(message);
602 } 602 }
603 eval(code) { 603 eval(code) {
604 let old = exports._globalState.currentContext; 604 let old = exports._globalState.currentContext;
605 exports._globalState.currentContext = this; 605 exports._globalState.currentContext = this;
606 this[_setGlobals](); 606 this[_setGlobals]();
607 let result = null; 607 let result = null;
608 this[_isExecutingEvent] = true; 608 this[_isExecutingEvent] = true;
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1375 exports.leaveJsAsync = leaveJsAsync; 1375 exports.leaveJsAsync = leaveJsAsync;
1376 exports.isWorker = isWorker; 1376 exports.isWorker = isWorker;
1377 exports.startRootIsolate = startRootIsolate; 1377 exports.startRootIsolate = startRootIsolate;
1378 exports.IsolateNatives = IsolateNatives; 1378 exports.IsolateNatives = IsolateNatives;
1379 exports.RawReceivePortImpl = RawReceivePortImpl; 1379 exports.RawReceivePortImpl = RawReceivePortImpl;
1380 exports.ReceivePortImpl = ReceivePortImpl; 1380 exports.ReceivePortImpl = ReceivePortImpl;
1381 exports.TimerImpl = TimerImpl; 1381 exports.TimerImpl = TimerImpl;
1382 exports.hasTimer = hasTimer; 1382 exports.hasTimer = hasTimer;
1383 exports.CapabilityImpl = CapabilityImpl; 1383 exports.CapabilityImpl = CapabilityImpl;
1384 })(_isolate_helper || (_isolate_helper = {})); 1384 })(_isolate_helper || (_isolate_helper = {}));
OLDNEW
« no previous file with comments | « no previous file | lib/runtime/dart/_js_helper.js » ('j') | lib/src/checker/rules.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698