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

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: modify test 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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 if (self.console && self.console.error) { 585 if (self.console && self.console.error) {
586 self.console.error(error, stackTrace); 586 self.console.error(error, stackTrace);
587 } else { 587 } else {
588 core.print(error); 588 core.print(error);
589 if (stackTrace != null) 589 if (stackTrace != null)
590 core.print(stackTrace); 590 core.print(stackTrace);
591 } 591 }
592 return; 592 return;
593 } 593 }
594 let message = new core.List(2); 594 let message = new core.List(2);
595 message.set(0, dart.dinvoke(error, 'toString')); 595 message.set(0, error.toString());
596 message.set(1, stackTrace == null ? null : stackTrace.toString()); 596 message.set(1, stackTrace == null ? null : stackTrace.toString());
597 for (let port of this.errorPorts) 597 for (let port of this.errorPorts)
598 port.send(message); 598 port.send(message);
599 } 599 }
600 eval(code) { 600 eval(code) {
601 let old = exports._globalState.currentContext; 601 let old = exports._globalState.currentContext;
602 exports._globalState.currentContext = this; 602 exports._globalState.currentContext = this;
603 this._setGlobals(); 603 this._setGlobals();
604 let result = null; 604 let result = null;
605 this[_isExecutingEvent] = true; 605 this[_isExecutingEvent] = true;
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1372 exports.leaveJsAsync = leaveJsAsync; 1372 exports.leaveJsAsync = leaveJsAsync;
1373 exports.isWorker = isWorker; 1373 exports.isWorker = isWorker;
1374 exports.startRootIsolate = startRootIsolate; 1374 exports.startRootIsolate = startRootIsolate;
1375 exports.IsolateNatives = IsolateNatives; 1375 exports.IsolateNatives = IsolateNatives;
1376 exports.RawReceivePortImpl = RawReceivePortImpl; 1376 exports.RawReceivePortImpl = RawReceivePortImpl;
1377 exports.ReceivePortImpl = ReceivePortImpl; 1377 exports.ReceivePortImpl = ReceivePortImpl;
1378 exports.TimerImpl = TimerImpl; 1378 exports.TimerImpl = TimerImpl;
1379 exports.hasTimer = hasTimer; 1379 exports.hasTimer = hasTimer;
1380 exports.CapabilityImpl = CapabilityImpl; 1380 exports.CapabilityImpl = CapabilityImpl;
1381 })(_isolate_helper || (_isolate_helper = {})); 1381 })(_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