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

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

Issue 1144303003: Use signature inheritance when method types are unchanged (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Remove empty signatures Created 5 years, 7 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/runtime/dart/core.js ('k') | lib/runtime/dart/math.js » ('j') | 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 = dart.defineLibrary(isolate, {}); 1 var isolate = dart.defineLibrary(isolate, {});
2 var core = dart.import(core); 2 var core = dart.import(core);
3 var _isolate_helper = dart.lazyImport(_isolate_helper); 3 var _isolate_helper = dart.lazyImport(_isolate_helper);
4 var async = dart.import(async); 4 var async = dart.import(async);
5 (function(exports, core, _isolate_helper, async) { 5 (function(exports, core, _isolate_helper, async) {
6 'use strict'; 6 'use strict';
7 class Capability extends core.Object { 7 class Capability extends core.Object {
8 Capability() { 8 Capability() {
9 return new _isolate_helper.CapabilityImpl(); 9 return new _isolate_helper.CapabilityImpl();
10 } 10 }
11 } 11 }
12 dart.setSignature(Capability, {});
13 class IsolateSpawnException extends core.Object { 12 class IsolateSpawnException extends core.Object {
14 IsolateSpawnException(message) { 13 IsolateSpawnException(message) {
15 this.message = message; 14 this.message = message;
16 } 15 }
17 toString() { 16 toString() {
18 return `IsolateSpawnException: ${this.message}`; 17 return `IsolateSpawnException: ${this.message}`;
19 } 18 }
20 } 19 }
21 IsolateSpawnException[dart.implements] = () => [core.Exception]; 20 IsolateSpawnException[dart.implements] = () => [core.Exception];
22 dart.setSignature(IsolateSpawnException, {
23 methods: () => ({toString: dart.functionType(core.String, [])})
24 });
25 let _pause = Symbol('_pause'); 21 let _pause = Symbol('_pause');
26 class Isolate extends core.Object { 22 class Isolate extends core.Object {
27 Isolate(controlPort, opts) { 23 Isolate(controlPort, opts) {
28 let pauseCapability = opts && 'pauseCapability' in opts ? opts.pauseCapabi lity : null; 24 let pauseCapability = opts && 'pauseCapability' in opts ? opts.pauseCapabi lity : null;
29 let terminateCapability = opts && 'terminateCapability' in opts ? opts.ter minateCapability : null; 25 let terminateCapability = opts && 'terminateCapability' in opts ? opts.ter minateCapability : null;
30 this.controlPort = controlPort; 26 this.controlPort = controlPort;
31 this.pauseCapability = pauseCapability; 27 this.pauseCapability = pauseCapability;
32 this.terminateCapability = terminateCapability; 28 this.terminateCapability = terminateCapability;
33 } 29 }
34 static get current() { 30 static get current() {
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 Isolate.IMMEDIATE = 0; 171 Isolate.IMMEDIATE = 0;
176 Isolate.BEFORE_NEXT_EVENT = 1; 172 Isolate.BEFORE_NEXT_EVENT = 1;
177 Isolate.AS_EVENT = 2; 173 Isolate.AS_EVENT = 2;
178 dart.defineLazyProperties(Isolate, { 174 dart.defineLazyProperties(Isolate, {
179 get _currentIsolateCache() { 175 get _currentIsolateCache() {
180 return _isolate_helper.IsolateNatives.currentIsolate; 176 return _isolate_helper.IsolateNatives.currentIsolate;
181 } 177 }
182 }); 178 });
183 class SendPort extends core.Object {} 179 class SendPort extends core.Object {}
184 SendPort[dart.implements] = () => [Capability]; 180 SendPort[dart.implements] = () => [Capability];
185 dart.setSignature(SendPort, {});
186 class ReceivePort extends core.Object { 181 class ReceivePort extends core.Object {
187 ReceivePort() { 182 ReceivePort() {
188 return new _isolate_helper.ReceivePortImpl(); 183 return new _isolate_helper.ReceivePortImpl();
189 } 184 }
190 fromRawReceivePort(rawPort) { 185 fromRawReceivePort(rawPort) {
191 return new _isolate_helper.ReceivePortImpl.fromRawReceivePort(rawPort); 186 return new _isolate_helper.ReceivePortImpl.fromRawReceivePort(rawPort);
192 } 187 }
193 } 188 }
194 ReceivePort[dart.implements] = () => [async.Stream]; 189 ReceivePort[dart.implements] = () => [async.Stream];
195 dart.defineNamedConstructor(ReceivePort, 'fromRawReceivePort'); 190 dart.defineNamedConstructor(ReceivePort, 'fromRawReceivePort');
196 dart.setSignature(ReceivePort, {});
197 class RawReceivePort extends core.Object { 191 class RawReceivePort extends core.Object {
198 RawReceivePort(handler) { 192 RawReceivePort(handler) {
199 if (handler === void 0) 193 if (handler === void 0)
200 handler = null; 194 handler = null;
201 return new _isolate_helper.RawReceivePortImpl(handler); 195 return new _isolate_helper.RawReceivePortImpl(handler);
202 } 196 }
203 } 197 }
204 dart.setSignature(RawReceivePort, {});
205 class _IsolateUnhandledException extends core.Object { 198 class _IsolateUnhandledException extends core.Object {
206 _IsolateUnhandledException(message, source, stackTrace) { 199 _IsolateUnhandledException(message, source, stackTrace) {
207 this.message = message; 200 this.message = message;
208 this.source = source; 201 this.source = source;
209 this.stackTrace = stackTrace; 202 this.stackTrace = stackTrace;
210 } 203 }
211 toString() { 204 toString() {
212 return 'IsolateUnhandledException: exception while handling message: ' + ` ${this.message} \n ` + `${dart.toString(this.source).replaceAll("\n", "\n ")}\ n` + 'original stack trace:\n ' + `${dart.toString(this.stackTrace).replaceAll( "\n", "\n ")}`; 205 return 'IsolateUnhandledException: exception while handling message: ' + ` ${this.message} \n ` + `${dart.toString(this.source).replaceAll("\n", "\n ")}\ n` + 'original stack trace:\n ' + `${dart.toString(this.stackTrace).replaceAll( "\n", "\n ")}`;
213 } 206 }
214 } 207 }
215 _IsolateUnhandledException[dart.implements] = () => [core.Exception]; 208 _IsolateUnhandledException[dart.implements] = () => [core.Exception];
216 dart.setSignature(_IsolateUnhandledException, {
217 methods: () => ({toString: dart.functionType(core.String, [])})
218 });
219 let _description = Symbol('_description'); 209 let _description = Symbol('_description');
220 class RemoteError extends core.Object { 210 class RemoteError extends core.Object {
221 RemoteError(description, stackDescription) { 211 RemoteError(description, stackDescription) {
222 this[_description] = description; 212 this[_description] = description;
223 this.stackTrace = new _RemoteStackTrace(stackDescription); 213 this.stackTrace = new _RemoteStackTrace(stackDescription);
224 } 214 }
225 toString() { 215 toString() {
226 return this[_description]; 216 return this[_description];
227 } 217 }
228 } 218 }
229 RemoteError[dart.implements] = () => [core.Error]; 219 RemoteError[dart.implements] = () => [core.Error];
230 dart.setSignature(RemoteError, {
231 methods: () => ({toString: dart.functionType(core.String, [])})
232 });
233 let _trace = Symbol('_trace'); 220 let _trace = Symbol('_trace');
234 class _RemoteStackTrace extends core.Object { 221 class _RemoteStackTrace extends core.Object {
235 _RemoteStackTrace(trace) { 222 _RemoteStackTrace(trace) {
236 this[_trace] = trace; 223 this[_trace] = trace;
237 } 224 }
238 toString() { 225 toString() {
239 return this[_trace]; 226 return this[_trace];
240 } 227 }
241 } 228 }
242 _RemoteStackTrace[dart.implements] = () => [core.StackTrace]; 229 _RemoteStackTrace[dart.implements] = () => [core.StackTrace];
243 dart.setSignature(_RemoteStackTrace, {
244 methods: () => ({toString: dart.functionType(core.String, [])})
245 });
246 // Exports: 230 // Exports:
247 exports.Capability = Capability; 231 exports.Capability = Capability;
248 exports.IsolateSpawnException = IsolateSpawnException; 232 exports.IsolateSpawnException = IsolateSpawnException;
249 exports.Isolate = Isolate; 233 exports.Isolate = Isolate;
250 exports.SendPort = SendPort; 234 exports.SendPort = SendPort;
251 exports.ReceivePort = ReceivePort; 235 exports.ReceivePort = ReceivePort;
252 exports.RawReceivePort = RawReceivePort; 236 exports.RawReceivePort = RawReceivePort;
253 exports.RemoteError = RemoteError; 237 exports.RemoteError = RemoteError;
254 })(isolate, core, _isolate_helper, async); 238 })(isolate, core, _isolate_helper, async);
OLDNEW
« no previous file with comments | « lib/runtime/dart/core.js ('k') | lib/runtime/dart/math.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698