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

Side by Side Diff: lib/runtime/dart/isolate.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
OLDNEW
1 var isolate; 1 var isolate;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class Capability extends core.Object { 4 class Capability extends core.Object {
5 Capability() { 5 Capability() {
6 return new _isolate_helper.CapabilityImpl(); 6 return new _isolate_helper.CapabilityImpl();
7 } 7 }
8 } 8 }
9 class IsolateSpawnException extends core.Object { 9 class IsolateSpawnException extends core.Object {
10 IsolateSpawnException(message) { 10 IsolateSpawnException(message) {
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 return new _isolate_helper.RawReceivePortImpl(handler); 175 return new _isolate_helper.RawReceivePortImpl(handler);
176 } 176 }
177 } 177 }
178 class _IsolateUnhandledException extends core.Object { 178 class _IsolateUnhandledException extends core.Object {
179 _IsolateUnhandledException(message, source, stackTrace) { 179 _IsolateUnhandledException(message, source, stackTrace) {
180 this.message = message; 180 this.message = message;
181 this.source = source; 181 this.source = source;
182 this.stackTrace = stackTrace; 182 this.stackTrace = stackTrace;
183 } 183 }
184 toString() { 184 toString() {
185 return 'IsolateUnhandledException: exception while handling message: ' + ` ${this.message} \n ` + `${dart.dinvoke(dart.dinvoke(this.source, 'toString'), ' replaceAll', "\n", "\n ")}\n` + 'original stack trace:\n ' + `${this.stackTrac e.toString().replaceAll("\n", "\n ")}`; 185 return 'IsolateUnhandledException: exception while handling message: ' + ` ${this.message} \n ` + `${dart.dinvoke(this.source.toString(), 'replaceAll', "\ n", "\n ")}\n` + 'original stack trace:\n ' + `${this.stackTrace.toString().re placeAll("\n", "\n ")}`;
186 } 186 }
187 } 187 }
188 _IsolateUnhandledException[dart.implements] = () => [core.Exception]; 188 _IsolateUnhandledException[dart.implements] = () => [core.Exception];
189 let _description = Symbol('_description'); 189 let _description = Symbol('_description');
190 class RemoteError extends core.Object { 190 class RemoteError extends core.Object {
191 RemoteError(description, stackDescription) { 191 RemoteError(description, stackDescription) {
192 this[_description] = description; 192 this[_description] = description;
193 this.stackTrace = new _RemoteStackTrace(stackDescription); 193 this.stackTrace = new _RemoteStackTrace(stackDescription);
194 } 194 }
195 toString() { 195 toString() {
(...skipping 13 matching lines...) Expand all
209 _RemoteStackTrace[dart.implements] = () => [core.StackTrace]; 209 _RemoteStackTrace[dart.implements] = () => [core.StackTrace];
210 // Exports: 210 // Exports:
211 exports.Capability = Capability; 211 exports.Capability = Capability;
212 exports.IsolateSpawnException = IsolateSpawnException; 212 exports.IsolateSpawnException = IsolateSpawnException;
213 exports.Isolate = Isolate; 213 exports.Isolate = Isolate;
214 exports.SendPort = SendPort; 214 exports.SendPort = SendPort;
215 exports.ReceivePort = ReceivePort; 215 exports.ReceivePort = ReceivePort;
216 exports.RawReceivePort = RawReceivePort; 216 exports.RawReceivePort = RawReceivePort;
217 exports.RemoteError = RemoteError; 217 exports.RemoteError = RemoteError;
218 })(isolate || (isolate = {})); 218 })(isolate || (isolate = {}));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698