OLD | NEW |
1 // Generated by dart2js, the Dart to JavaScript compiler. | 1 // Generated by dart2js, the Dart to JavaScript compiler. |
2 // The code supports the following hooks: | 2 // The code supports the following hooks: |
3 // dartPrint(message) - if this function is defined it is called | 3 // dartPrint(message) - if this function is defined it is called |
4 // instead of the Dart [print] method. | 4 // instead of the Dart [print] method. |
5 // dartMainRunner(main) - if this function is defined, the Dart [main] | 5 // dartMainRunner(main) - if this function is defined, the Dart [main] |
6 // method will not be invoked directly. | 6 // method will not be invoked directly. |
7 // Instead, a closure that will invoke [main] is | 7 // Instead, a closure that will invoke [main] is |
8 // passed to [dartMainRunner]. | 8 // passed to [dartMainRunner]. |
9 (function($) { | 9 (function($) { |
10 var A = {}; | 10 var A = {}; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 var Z = {}; | 58 var Z = {}; |
59 delete Z.x; | 59 delete Z.x; |
60 function Isolate() {} | 60 function Isolate() {} |
61 init(); | 61 init(); |
62 | 62 |
63 $ = Isolate.$isolateProperties; | 63 $ = Isolate.$isolateProperties; |
64 var $$ = {}; | 64 var $$ = {}; |
65 | 65 |
66 // Native classes | 66 // Native classes |
67 // Method closures | 67 // Method closures |
68 $$.BoundClosure$2 = [P, {"": "BoundClosure;_self,_target,_receiver,__js_helper$_
name", | 68 $$.BoundClosure$i0 = [H, {"": "BoundClosure;_self,__js_helper$_target,_receiver,
__js_helper$_name", |
| 69 call$0: function() { |
| 70 return this.__js_helper$_target.call(this._self, this._receiver); |
| 71 } |
| 72 }]; |
| 73 |
| 74 $$.BoundClosure$1 = [H, {"": "BoundClosure;_self,__js_helper$_target,_receiver,_
_js_helper$_name", |
| 75 call$1: function(p0) { |
| 76 return this.__js_helper$_target.call(this._self, p0); |
| 77 }, |
| 78 $is_args1: true |
| 79 }]; |
| 80 |
| 81 $$.BoundClosure$2 = [P, {"": "BoundClosure;_self,__js_helper$_target,_receiver,_
_js_helper$_name", |
69 call$2: function(p0, p1) { | 82 call$2: function(p0, p1) { |
70 return this._target.call(this._self, p0, p1); | 83 return this.__js_helper$_target.call(this._self, p0, p1); |
71 }, | 84 }, |
72 call$1: function(p0) { | 85 call$1: function(p0) { |
73 return this.call$2(p0, null); | 86 return this.call$2(p0, null); |
74 }, | 87 }, |
75 $is_args2: true | 88 $is_args2: true, |
| 89 $is_args1: true |
76 }]; | 90 }]; |
77 | 91 |
78 $$.BoundClosure$0 = [P, {"": "BoundClosure;_self,_target,_receiver,__js_helper$_
name", | 92 $$.BoundClosure$0 = [P, {"": "BoundClosure;_self,__js_helper$_target,_receiver,_
_js_helper$_name", |
79 call$0: function() { | 93 call$0: function() { |
80 return this._target.call(this._self); | 94 return this.__js_helper$_target.call(this._self); |
81 } | 95 } |
82 }]; | 96 }]; |
83 | 97 |
84 $$.Closure$2 = [H, {"": "Closure;call$2,$name", $is_args2: true}]; | 98 $$.Closure$2 = [H, {"": "Closure;call$2,$name", $is_args2: true}]; |
85 | 99 |
86 $$.Closure$0 = [H, {"": "Closure;call$0,$name"}]; | 100 $$.Closure$0 = [H, {"": "Closure;call$0,$name"}]; |
87 | 101 |
88 $$.Closure$7 = [H, {"": "Closure;call$7,$name"}]; | 102 $$.Closure$7 = [H, {"": "Closure;call$7,$name"}]; |
89 | 103 |
90 $$.Closure$1 = [H, {"": "Closure;call$1,$name"}]; | 104 $$.Closure$1 = [H, {"": "Closure;call$1,$name", $is_args1: true}]; |
91 | 105 |
92 $$.Closure$21 = [P, {"": "Closure;call$2,$name", | 106 $$.Closure$21 = [P, {"": "Closure;call$2,$name", |
93 call$1: function(p0) { | 107 call$1: function(p0) { |
94 return this.call$2(p0, null); | 108 return this.call$2(p0, null); |
95 }, | 109 }, |
96 $is_args2: true | 110 $is_args2: true, |
| 111 $is_args1: true |
97 }]; | 112 }]; |
98 | 113 |
99 (function (reflectionData) { | 114 (function (reflectionData) { |
100 function map(x){x={x:x};delete x.x;return x} | 115 function map(x){x={x:x};delete x.x;return x} |
101 if (!init.libraries) init.libraries = []; | 116 if (!init.libraries) init.libraries = []; |
102 if (!init.mangledNames) init.mangledNames = map(); | 117 if (!init.mangledNames) init.mangledNames = map(); |
103 if (!init.mangledGlobalNames) init.mangledGlobalNames = map(); | 118 if (!init.mangledGlobalNames) init.mangledGlobalNames = map(); |
104 if (!init.statics) init.statics = map(); | 119 if (!init.statics) init.statics = map(); |
105 if (!init.interfaces) init.interfaces = map(); | 120 if (!init.interfaces) init.interfaces = map(); |
106 if (!init.globalFunctions) init.globalFunctions = map(); | 121 if (!init.globalFunctions) init.globalFunctions = map(); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 classes.push(property); | 189 classes.push(property); |
175 } | 190 } |
176 } | 191 } |
177 } | 192 } |
178 processStatics(descriptor); | 193 processStatics(descriptor); |
179 libraries.push([name, uri, classes, functions, metadata, fields, isRoot, | 194 libraries.push([name, uri, classes, functions, metadata, fields, isRoot, |
180 globalObject]); | 195 globalObject]); |
181 } | 196 } |
182 })([ | 197 })([ |
183 ["_foreign_helper", "dart:_foreign_helper", , H, { | 198 ["_foreign_helper", "dart:_foreign_helper", , H, { |
184 JS_CONST: {"": "Object;code>"}}], | 199 JS_CONST: {"": "Object;code"}}], |
185 ["_interceptors", "dart:_interceptors", , J, { | 200 ["_interceptors", "dart:_interceptors", , J, { |
186 getInterceptor: function(object) { | 201 getInterceptor: function(object) { |
187 return void 0; | 202 return void 0; |
188 }, | 203 }, |
189 | 204 |
190 makeDispatchRecord: function(interceptor, proto, extension, indexability) { | 205 makeDispatchRecord: function(interceptor, proto, extension, indexability) { |
191 return {i: interceptor, p: proto, e: extension, x: indexability}; | 206 return {i: interceptor, p: proto, e: extension, x: indexability}; |
192 }, | 207 }, |
193 | 208 |
194 getNativeInterceptor: function(object) { | 209 getNativeInterceptor: function(object) { |
195 var record, proto, objectProto; | 210 var record, proto, objectProto; |
196 record = object[init.dispatchPropertyName]; | 211 record = object[init.dispatchPropertyName]; |
| 212 if (record == null) |
| 213 if ($.initNativeDispatchFlag == null) { |
| 214 H.initNativeDispatch(); |
| 215 record = object[init.dispatchPropertyName]; |
| 216 } |
197 if (record != null) { | 217 if (record != null) { |
198 proto = record.p; | 218 proto = record.p; |
199 if (false === proto) | 219 if (false === proto) |
200 return record.i; | 220 return record.i; |
201 if (true === proto) | 221 if (true === proto) |
202 return object; | 222 return object; |
203 objectProto = Object.getPrototypeOf(object); | 223 objectProto = Object.getPrototypeOf(object); |
204 if (proto === objectProto) | 224 if (proto === objectProto) |
205 return record.i; | 225 return record.i; |
206 if (record.e === objectProto) | 226 if (record.e === objectProto) |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 get$hashCode: function(_) { | 271 get$hashCode: function(_) { |
252 return 0; | 272 return 0; |
253 } | 273 } |
254 }, | 274 }, |
255 | 275 |
256 PlainJavaScriptObject: {"": "JavaScriptObject;"}, | 276 PlainJavaScriptObject: {"": "JavaScriptObject;"}, |
257 | 277 |
258 UnknownJavaScriptObject: {"": "JavaScriptObject;"}, | 278 UnknownJavaScriptObject: {"": "JavaScriptObject;"}, |
259 | 279 |
260 JSArray: {"": "List/Interceptor;", | 280 JSArray: {"": "List/Interceptor;", |
261 add$1: function(receiver, value) { | |
262 if (!!receiver.fixed$length) | |
263 H.throwExpression(P.UnsupportedError$("add")); | |
264 receiver.push(value); | |
265 }, | |
266 removeLast$0: function(receiver) { | |
267 if (!!receiver.fixed$length) | |
268 H.throwExpression(P.UnsupportedError$("removeLast")); | |
269 if (receiver.length === 0) | |
270 throw H.wrapException(P.RangeError$value(-1)); | |
271 return receiver.pop(); | |
272 }, | |
273 forEach$1: function(receiver, f) { | 281 forEach$1: function(receiver, f) { |
274 return H.IterableMixinWorkaround_forEach(receiver, f); | 282 return H.IterableMixinWorkaround_forEach(receiver, f); |
275 }, | 283 }, |
276 elementAt$1: function(receiver, index) { | 284 elementAt$1: function(receiver, index) { |
277 if (index < 0 || index >= receiver.length) | 285 if (index < 0 || index >= receiver.length) |
278 throw H.ioore(receiver, index); | 286 throw H.ioore(receiver, index); |
279 return receiver[index]; | 287 return receiver[index]; |
280 }, | 288 }, |
281 toString$0: function(receiver) { | 289 toString$0: function(receiver) { |
282 return H.IterableMixinWorkaround_toStringIterable(receiver, "[", "]"); | 290 return H.IterableMixinWorkaround_toStringIterable(receiver, "[", "]"); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 $asJSArray: function() { | 324 $asJSArray: function() { |
317 return [null]; | 325 return [null]; |
318 }, | 326 }, |
319 $asList: function() { | 327 $asList: function() { |
320 return [null]; | 328 return [null]; |
321 } | 329 } |
322 }, | 330 }, |
323 | 331 |
324 JSFixedArray: {"": "JSMutableArray;"}, | 332 JSFixedArray: {"": "JSMutableArray;"}, |
325 | 333 |
326 JSExtendableArray: {"": "JSMutableArray;", $isJSExtendableArray: true}, | 334 JSExtendableArray: {"": "JSMutableArray;"}, |
327 | 335 |
328 JSNumber: {"": "num/Interceptor;", | 336 JSNumber: {"": "num/Interceptor;", |
329 remainder$1: function(receiver, b) { | 337 remainder$1: function(receiver, b) { |
330 return receiver % b; | 338 return receiver % b; |
331 }, | 339 }, |
332 toInt$0: function(receiver) { | 340 toInt$0: function(receiver) { |
333 var t1; | 341 var t1; |
| 342 if (receiver >= -2147483648 && receiver <= 2147483647) |
| 343 return receiver | 0; |
334 if (isFinite(receiver)) { | 344 if (isFinite(receiver)) { |
335 t1 = receiver < 0 ? Math.ceil(receiver) : Math.floor(receiver); | 345 t1 = receiver < 0 ? Math.ceil(receiver) : Math.floor(receiver); |
336 return t1 + 0; | 346 return t1 + 0; |
337 } | 347 } |
338 throw H.wrapException(P.UnsupportedError$('' + receiver)); | 348 throw H.wrapException(P.UnsupportedError$('' + receiver)); |
339 }, | 349 }, |
340 toString$0: function(receiver) { | 350 toString$0: function(receiver) { |
341 if (receiver === 0 && 1 / receiver < 0) | 351 if (receiver === 0 && 1 / receiver < 0) |
342 return "-0.0"; | 352 return "-0.0"; |
343 else | 353 else |
344 return "" + receiver; | 354 return "" + receiver; |
345 }, | 355 }, |
346 get$hashCode: function(receiver) { | 356 get$hashCode: function(receiver) { |
347 return receiver & 0x1FFFFFFF; | 357 return receiver & 0x1FFFFFFF; |
348 }, | 358 }, |
349 $tdiv: function(receiver, other) { | 359 $tdiv: function(receiver, other) { |
| 360 if ((receiver | 0) === receiver && (other | 0) === other && 0 !== other && -
1 !== other) |
| 361 return receiver / other | 0; |
| 362 else |
| 363 return this._slowTdiv$1(receiver, other); |
| 364 }, |
| 365 _slowTdiv$1: function(receiver, other) { |
350 return this.toInt$0(receiver / other); | 366 return this.toInt$0(receiver / other); |
351 }, | 367 }, |
352 $shr: function(receiver, other) { | 368 $shr: function(receiver, other) { |
353 if (other < 0) | 369 if (other < 0) |
354 throw H.wrapException(P.ArgumentError$(other)); | 370 throw H.wrapException(new P.ArgumentError(other)); |
355 if (receiver > 0) { | 371 if (receiver > 0) { |
356 if (other > 31) | 372 if (other > 31) |
357 return 0; | 373 return 0; |
358 return receiver >>> other; | 374 return receiver >>> other; |
359 } | 375 } |
360 if (other > 31) | 376 if (other > 31) |
361 other = 31; | 377 other = 31; |
362 return receiver >> other >>> 0; | 378 return receiver >> other >>> 0; |
363 }, | 379 }, |
364 $lt: function(receiver, other) { | 380 $lt: function(receiver, other) { |
365 if (typeof other !== "number") | 381 if (typeof other !== "number") |
366 throw H.wrapException(P.ArgumentError$(other)); | 382 throw H.wrapException(new P.ArgumentError(other)); |
367 return receiver < other; | 383 return receiver < other; |
368 }, | 384 }, |
369 $gt: function(receiver, other) { | 385 $gt: function(receiver, other) { |
370 if (typeof other !== "number") | 386 if (typeof other !== "number") |
371 throw H.wrapException(new P.ArgumentError(other)); | 387 throw H.wrapException(new P.ArgumentError(other)); |
372 return receiver > other; | 388 return receiver > other; |
373 }, | 389 }, |
374 $ge: function(receiver, other) { | 390 $ge: function(receiver, other) { |
375 if (typeof other !== "number") | 391 if (typeof other !== "number") |
376 throw H.wrapException(P.ArgumentError$(other)); | 392 throw H.wrapException(new P.ArgumentError(other)); |
377 return receiver >= other; | 393 return receiver >= other; |
378 }, | 394 }, |
379 $isnum: true | 395 $isnum: true, |
| 396 static: { |
| 397 "": "JSNumber__MIN_INT32,JSNumber__MAX_INT32", |
| 398 } |
| 399 |
380 }, | 400 }, |
381 | 401 |
382 JSInt: {"": "int/JSNumber;", $isdouble: true, $isnum: true, $isint: true}, | 402 JSInt: {"": "int/JSNumber;", $isdouble: true, $isnum: true, $isint: true}, |
383 | 403 |
384 JSDouble: {"": "double/JSNumber;", $isdouble: true, $isnum: true}, | 404 JSDouble: {"": "double/JSNumber;", $isdouble: true, $isnum: true}, |
385 | 405 |
386 JSString: {"": "String/Interceptor;", | 406 JSString: {"": "String/Interceptor;", |
387 codeUnitAt$1: function(receiver, index) { | 407 codeUnitAt$1: function(receiver, index) { |
388 if (index < 0) | 408 if (index < 0) |
389 throw H.wrapException(P.RangeError$value(index)); | 409 throw H.wrapException(P.RangeError$value(index)); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 $isString: true | 459 $isString: true |
440 }}], | 460 }}], |
441 ["_isolate_helper", "dart:_isolate_helper", , H, { | 461 ["_isolate_helper", "dart:_isolate_helper", , H, { |
442 _callInIsolate: function(isolate, $function) { | 462 _callInIsolate: function(isolate, $function) { |
443 var result = isolate.eval$1($function); | 463 var result = isolate.eval$1($function); |
444 $globalState.topEventLoop.run$0(); | 464 $globalState.topEventLoop.run$0(); |
445 return result; | 465 return result; |
446 }, | 466 }, |
447 | 467 |
448 startRootIsolate: function(entry) { | 468 startRootIsolate: function(entry) { |
449 var rootContext; | 469 var rootContext, t1; |
450 $globalState = H._Manager$(entry); | 470 $globalState = H._Manager$(entry); |
451 if ($globalState.isWorker === true) | 471 if ($globalState.isWorker === true) |
452 return; | 472 return; |
453 rootContext = H._IsolateContext$(); | 473 rootContext = H._IsolateContext$(); |
454 $globalState.rootContext = rootContext; | 474 $globalState.rootContext = rootContext; |
455 $globalState.currentContext = rootContext; | 475 $globalState.currentContext = rootContext; |
456 rootContext.eval$1(entry); | 476 t1 = J.getInterceptor(entry); |
| 477 if (!!t1.$is_args1) |
| 478 rootContext.eval$1(new H.startRootIsolate_closure(entry)); |
| 479 else if (!!t1.$is_args2) |
| 480 rootContext.eval$1(new H.startRootIsolate_closure0(entry)); |
| 481 else |
| 482 rootContext.eval$1(entry); |
457 $globalState.topEventLoop.run$0(); | 483 $globalState.topEventLoop.run$0(); |
458 }, | 484 }, |
459 | 485 |
460 IsolateNatives_computeThisScript: function() { | 486 IsolateNatives_computeThisScript: function() { |
461 var currentScript = init.currentScript; | 487 var currentScript = init.currentScript; |
462 if (currentScript != null) | 488 if (currentScript != null) |
463 return String(currentScript.src); | 489 return String(currentScript.src); |
464 if (typeof version == "function" && typeof os == "object" && "system" in os) | 490 if (typeof version == "function" && typeof os == "object" && "system" in os) |
465 return H.IsolateNatives_computeThisScriptD8(); | 491 return H.IsolateNatives_computeThisScriptD8(); |
466 if (typeof version == "function" && typeof system == "function") | 492 if (typeof version == "function" && typeof system == "function") |
(...skipping 12 matching lines...) Expand all Loading... |
479 matches = stack.match(new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "m"))
; | 505 matches = stack.match(new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "m"))
; |
480 if (matches != null) | 506 if (matches != null) |
481 return matches[1]; | 507 return matches[1]; |
482 matches = stack.match(new RegExp("^[^@]*@(.*):[0-9]*$", "m")); | 508 matches = stack.match(new RegExp("^[^@]*@(.*):[0-9]*$", "m")); |
483 if (matches != null) | 509 if (matches != null) |
484 return matches[1]; | 510 return matches[1]; |
485 throw H.wrapException(P.UnsupportedError$("Cannot extract URI from \"" + stack
+ "\"")); | 511 throw H.wrapException(P.UnsupportedError$("Cannot extract URI from \"" + stack
+ "\"")); |
486 }, | 512 }, |
487 | 513 |
488 IsolateNatives__processWorkerMessage: function(sender, e) { | 514 IsolateNatives__processWorkerMessage: function(sender, e) { |
489 var msg, t1, functionName, entryPoint, replyTo, context, t2; | 515 var msg, t1, functionName, entryPoint, args, message, isSpawnUri, replyTo, con
text, t2; |
490 msg = H._deserializeMessage(e.data); | 516 msg = H._deserializeMessage(e.data); |
491 t1 = J.getInterceptor$asx(msg); | 517 t1 = J.getInterceptor$asx(msg); |
492 switch (t1.$index(msg, "command")) { | 518 switch (t1.$index(msg, "command")) { |
493 case "start": | 519 case "start": |
494 $globalState.currentManagerId = t1.$index(msg, "id"); | 520 $globalState.currentManagerId = t1.$index(msg, "id"); |
495 functionName = t1.$index(msg, "functionName"); | 521 functionName = t1.$index(msg, "functionName"); |
496 entryPoint = functionName == null ? $globalState.entry : init.globalFuncti
ons[functionName]; | 522 entryPoint = functionName == null ? $globalState.entry : init.globalFuncti
ons[functionName]; |
| 523 args = t1.$index(msg, "args"); |
| 524 message = H._deserializeMessage(t1.$index(msg, "msg")); |
| 525 isSpawnUri = t1.$index(msg, "isSpawnUri"); |
497 replyTo = H._deserializeMessage(t1.$index(msg, "replyTo")); | 526 replyTo = H._deserializeMessage(t1.$index(msg, "replyTo")); |
498 context = H._IsolateContext$(); | 527 context = H._IsolateContext$(); |
499 $globalState.topEventLoop.events._add$1(new H._IsolateEvent(context, new H
.IsolateNatives__processWorkerMessage_closure(entryPoint, replyTo), "worker-star
t")); | 528 $globalState.topEventLoop.events._add$1(new H._IsolateEvent(context, new H
.IsolateNatives__processWorkerMessage_closure(entryPoint, args, message, isSpawn
Uri, replyTo), "worker-start")); |
500 $globalState.currentContext = context; | 529 $globalState.currentContext = context; |
501 $globalState.topEventLoop.run$0(); | 530 $globalState.topEventLoop.run$0(); |
502 break; | 531 break; |
503 case "spawn-worker": | 532 case "spawn-worker": |
504 H.IsolateNatives__spawnWorker(t1.$index(msg, "functionName"), t1.$index(ms
g, "uri"), t1.$index(msg, "replyPort")); | 533 H.IsolateNatives__spawnWorker(t1.$index(msg, "functionName"), t1.$index(ms
g, "uri"), t1.$index(msg, "args"), t1.$index(msg, "msg"), t1.$index(msg, "isSpaw
nUri"), t1.$index(msg, "replyPort")); |
505 break; | 534 break; |
506 case "message": | 535 case "message": |
507 if (t1.$index(msg, "port") != null) | 536 if (t1.$index(msg, "port") != null) |
508 t1.$index(msg, "port").send$2(t1.$index(msg, "msg"), t1.$index(msg, "rep
lyTo")); | 537 t1.$index(msg, "port").send$1(t1.$index(msg, "msg")); |
509 $globalState.topEventLoop.run$0(); | 538 $globalState.topEventLoop.run$0(); |
510 break; | 539 break; |
511 case "close": | 540 case "close": |
512 t1 = $globalState.managers; | 541 t1 = $globalState.managers; |
513 t2 = $.get$IsolateNatives_workerIds(); | 542 t2 = $.get$IsolateNatives_workerIds(); |
514 t1.remove$1(t1, t2.$index(t2, sender)); | 543 t1.remove$1(t1, t2.$index(t2, sender)); |
515 sender.terminate(); | 544 sender.terminate(); |
516 $globalState.topEventLoop.run$0(); | 545 $globalState.topEventLoop.run$0(); |
517 break; | 546 break; |
518 case "log": | 547 case "log": |
(...skipping 25 matching lines...) Expand all Loading... |
544 try { | 573 try { |
545 $.get$globalThis().console.log(msg); | 574 $.get$globalThis().console.log(msg); |
546 } catch (exception) { | 575 } catch (exception) { |
547 H.unwrapException(exception); | 576 H.unwrapException(exception); |
548 trace = new H._StackTrace(exception, null); | 577 trace = new H._StackTrace(exception, null); |
549 throw H.wrapException(P.Exception_Exception(trace)); | 578 throw H.wrapException(P.Exception_Exception(trace)); |
550 } | 579 } |
551 | 580 |
552 }, | 581 }, |
553 | 582 |
554 IsolateNatives__startIsolate: function(topLevel, replyTo) { | 583 IsolateNatives__startIsolate: function(topLevel, args, message, isSpawnUri, repl
yTo) { |
555 var t1; | 584 var t1; |
556 H.Primitives_initializeStatics($globalState.currentContext.id); | 585 H.Primitives_initializeStatics($globalState.currentContext.id); |
557 $.lazyPort = H.ReceivePortImpl$(); | 586 $.lazyPort = H.ReceivePortImpl$(); |
558 t1 = P._Isolate_port(); | 587 t1 = $.lazyPort; |
559 t1.toString; | 588 t1.toString; |
560 replyTo.send$2("spawned", new H._NativeJsSendPort(t1, $globalState.currentCont
ext.id)); | 589 replyTo.send$1(["spawned", new H._NativeJsSendPort(t1, $globalState.currentCon
text.id)]); |
561 topLevel.call$0(); | 590 if (isSpawnUri !== true) |
| 591 topLevel.call$1(message); |
| 592 else { |
| 593 t1 = J.getInterceptor(topLevel); |
| 594 if (!!t1.$is_args2) |
| 595 topLevel.call$2(args, message); |
| 596 else if (!!t1.$is_args1) |
| 597 topLevel.call$1(args); |
| 598 else |
| 599 topLevel.call$0(); |
| 600 } |
562 }, | 601 }, |
563 | 602 |
564 IsolateNatives__spawnWorker: function(functionName, uri, replyPort) { | 603 IsolateNatives__spawnWorker: function(functionName, uri, args, message, isSpawnU
ri, replyPort) { |
565 var worker, t1, workerId; | 604 var worker, t1, workerId; |
566 if (uri == null) | 605 if (uri == null) |
567 uri = $.get$IsolateNatives_thisScript(); | 606 uri = $.get$IsolateNatives_thisScript(); |
568 worker = new Worker(uri); | 607 worker = new Worker(uri); |
569 worker.onmessage = function(e) { H.IsolateNatives__processWorkerMessage$closur
e.call$2(worker, e); }; | 608 worker.onmessage = function(e) { H.IsolateNatives__processWorkerMessage$closur
e.call$2(worker, e); }; |
570 t1 = $globalState; | 609 t1 = $globalState; |
571 workerId = t1.nextManagerId; | 610 workerId = t1.nextManagerId; |
572 t1.nextManagerId = workerId + 1; | 611 t1.nextManagerId = workerId + 1; |
573 t1 = $.get$IsolateNatives_workerIds(); | 612 t1 = $.get$IsolateNatives_workerIds(); |
574 t1.$indexSet(t1, worker, workerId); | 613 t1.$indexSet(t1, worker, workerId); |
575 t1 = $globalState.managers; | 614 t1 = $globalState.managers; |
576 t1.$indexSet(t1, workerId, worker); | 615 t1.$indexSet(t1, workerId, worker); |
577 worker.postMessage(H._serializeMessage(H.fillLiteralMap(["command", "start", "
id", workerId, "replyTo", H._serializeMessage(replyPort), "functionName", functi
onName], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null)))); | 616 worker.postMessage(H._serializeMessage(H.fillLiteralMap(["command", "start", "
id", workerId, "replyTo", H._serializeMessage(replyPort), "args", args, "msg", H
._serializeMessage(message), "isSpawnUri", isSpawnUri, "functionName", functionN
ame], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null)))); |
578 }, | 617 }, |
579 | 618 |
580 _waitForPendingPorts: function(message, callback) { | 619 _waitForPendingPorts: function(message, callback) { |
581 var finder = H._PendingSendPortFinder$(); | 620 var finder = H._PendingSendPortFinder$(); |
582 finder.traverse$1(message); | 621 finder.traverse$1(message); |
583 P.Future_wait(finder.ports).then$1(new H._waitForPendingPorts_closure(callback
)); | 622 P.Future_wait(finder.ports).then$1(new H._waitForPendingPorts_closure(callback
)); |
584 }, | 623 }, |
585 | 624 |
586 _serializeMessage: function(message) { | 625 _serializeMessage: function(message) { |
587 var t1; | 626 var t1; |
(...skipping 16 matching lines...) Expand all Loading... |
604 }, | 643 }, |
605 | 644 |
606 _MessageTraverser_isPrimitive: function(x) { | 645 _MessageTraverser_isPrimitive: function(x) { |
607 return x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean"; | 646 return x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean"; |
608 }, | 647 }, |
609 | 648 |
610 _Deserializer_isPrimitive: function(x) { | 649 _Deserializer_isPrimitive: function(x) { |
611 return x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean"; | 650 return x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean"; |
612 }, | 651 }, |
613 | 652 |
614 CloseToken: {"": "Object;", $isCloseToken: true}, | 653 startRootIsolate_closure: {"": "Closure;entry_0", |
| 654 call$0: function() { |
| 655 this.entry_0.call$1([]); |
| 656 } |
| 657 }, |
615 | 658 |
616 JsIsolateSink: {"": "EventSink;_isClosed,_port<", | 659 startRootIsolate_closure0: {"": "Closure;entry_1", |
617 add$1: function(_, message) { | 660 call$0: function() { |
618 this._port.send$1(message); | 661 this.entry_1.call$2([], null); |
619 }, | 662 } |
620 $eq: function(_, other) { | |
621 var t1; | |
622 if (other == null) | |
623 return false; | |
624 t1 = J.getInterceptor(other); | |
625 return typeof other === "object" && other !== null && !!t1.$isIsolateSink &&
J.$eq(this._port, other.get$_port()); | |
626 }, | |
627 get$hashCode: function(_) { | |
628 return J.get$hashCode$(this._port) + 499; | |
629 }, | |
630 $isJsIsolateSink: true, | |
631 $isIsolateSink: true | |
632 }, | 663 }, |
633 | 664 |
634 _Manager: {"": "Object;nextIsolateId,currentManagerId,nextManagerId,currentConte
xt,rootContext,topEventLoop,fromCommandLine,isWorker,supportsWorkers,isolates,ma
inManager,managers,entry", | 665 _Manager: {"": "Object;nextIsolateId,currentManagerId,nextManagerId,currentConte
xt,rootContext,topEventLoop,fromCommandLine,isWorker,supportsWorkers,isolates,ma
inManager,managers,entry", |
635 _nativeDetectEnvironment$0: function() { | 666 _nativeDetectEnvironment$0: function() { |
636 var t1, t2; | 667 var t1, t2; |
637 t1 = $.get$globalWindow() == null; | 668 t1 = $.get$globalWindow() == null; |
638 t2 = $.get$globalWorker(); | 669 t2 = $.get$globalWorker(); |
639 this.isWorker = t1 && $.get$globalPostMessageDefined() === true; | 670 this.isWorker = t1 && $.get$globalPostMessageDefined() === true; |
640 if (this.isWorker !== true) | 671 if (this.isWorker !== true) |
641 t2 = t2 != null && $.get$IsolateNatives_thisScript() != null; | 672 t2 = t2 != null && $.get$IsolateNatives_thisScript() != null; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 }, | 818 }, |
788 | 819 |
789 _IsolateEvent: {"": "Object;isolate,fn,message", | 820 _IsolateEvent: {"": "Object;isolate,fn,message", |
790 process$0: function() { | 821 process$0: function() { |
791 this.isolate.eval$1(this.fn); | 822 this.isolate.eval$1(this.fn); |
792 } | 823 } |
793 }, | 824 }, |
794 | 825 |
795 _MainManagerStub: {"": "Object;"}, | 826 _MainManagerStub: {"": "Object;"}, |
796 | 827 |
797 IsolateNatives__processWorkerMessage_closure: {"": "Closure;entryPoint_0,replyTo
_1", | 828 IsolateNatives__processWorkerMessage_closure: {"": "Closure;entryPoint_0,args_1,
message_2,isSpawnUri_3,replyTo_4", |
798 call$0: function() { | 829 call$0: function() { |
799 H.IsolateNatives__startIsolate(this.entryPoint_0, this.replyTo_1); | 830 H.IsolateNatives__startIsolate(this.entryPoint_0, this.args_1, this.message_
2, this.isSpawnUri_3, this.replyTo_4); |
800 } | 831 } |
801 }, | 832 }, |
802 | 833 |
803 _BaseSendPort: {"": "Object;", | 834 _BaseSendPort: {"": "Object;", $isSendPort: true}, |
804 _checkReplyTo$1: function(replyTo) { | |
805 var t1; | |
806 if (replyTo != null) { | |
807 t1 = J.getInterceptor(replyTo); | |
808 t1 = (typeof replyTo !== "object" || replyTo === null || !t1.$is_NativeJsS
endPort) && (typeof replyTo !== "object" || replyTo === null || !t1.$is_WorkerSe
ndPort) && true; | |
809 } else | |
810 t1 = false; | |
811 if (t1) | |
812 throw H.wrapException(P.Exception_Exception("SendPort.send: Illegal replyT
o port type")); | |
813 }, | |
814 call$1: function(message) { | |
815 var t1, completer, port; | |
816 t1 = null; | |
817 completer = new P._AsyncCompleter(P._Future$(t1)); | |
818 H.setRuntimeTypeInfo(completer, [t1]); | |
819 port = H.ReceivePortImpl$(); | |
820 this.send$2(message, new H._NativeJsSendPort(port, $globalState.currentConte
xt.id)); | |
821 port._callback = new H._BaseSendPort_call_closure(completer, port); | |
822 return completer.future; | |
823 }, | |
824 $isSendPort: true | |
825 }, | |
826 | |
827 _BaseSendPort_call_closure: {"": "Closure;completer_0,port_1", | |
828 call$2: function(value, ignoreReplyTo) { | |
829 var t1, t2; | |
830 t1 = this.port_1; | |
831 t1._callback = null; | |
832 $globalState.currentContext.unregister$1(t1._id); | |
833 t1 = J.getInterceptor(value); | |
834 t2 = this.completer_0; | |
835 if (typeof value === "object" && value !== null && !!t1.$isException) { | |
836 t1 = t2.future; | |
837 if (t1._state !== 0) | |
838 H.throwExpression(new P.StateError("Future already completed")); | |
839 t1._asyncCompleteError$2(value, null); | |
840 } else { | |
841 t1 = t2.future; | |
842 if (t1._state !== 0) | |
843 H.throwExpression(new P.StateError("Future already completed")); | |
844 t1._asyncComplete$1(value); | |
845 } | |
846 }, | |
847 $is_args2: true | |
848 }, | |
849 | 835 |
850 _NativeJsSendPort: {"": "_BaseSendPort;_receivePort,_isolateId", | 836 _NativeJsSendPort: {"": "_BaseSendPort;_receivePort,_isolateId", |
851 send$2: function(message, replyTo) { | 837 send$2: function(message, replyTo) { |
852 H._waitForPendingPorts([message, replyTo], new H._NativeJsSendPort_send_clos
ure(this, message, replyTo)); | 838 H._waitForPendingPorts(message, new H._NativeJsSendPort_send_closure(this, m
essage)); |
853 }, | 839 }, |
854 send$1: function(message) { | 840 send$1: function(message) { |
855 return this.send$2(message, null); | 841 return this.send$2(message, null); |
856 }, | 842 }, |
857 $eq: function(_, other) { | 843 $eq: function(_, other) { |
858 var t1; | 844 var t1; |
859 if (other == null) | 845 if (other == null) |
860 return false; | 846 return false; |
861 t1 = J.getInterceptor(other); | 847 t1 = J.getInterceptor(other); |
862 return typeof other === "object" && other !== null && !!t1.$is_NativeJsSendP
ort && J.$eq(this._receivePort, other._receivePort); | 848 return typeof other === "object" && other !== null && !!t1.$is_NativeJsSendP
ort && J.$eq(this._receivePort, other._receivePort); |
863 }, | 849 }, |
864 get$hashCode: function(_) { | 850 get$hashCode: function(_) { |
865 return this._receivePort.get$_id(); | 851 return this._receivePort.get$_id(); |
866 }, | 852 }, |
867 $is_NativeJsSendPort: true, | 853 $is_NativeJsSendPort: true, |
868 $isSendPort: true | 854 $isSendPort: true |
869 }, | 855 }, |
870 | 856 |
871 _NativeJsSendPort_send_closure: {"": "Closure;this_1,message_2,replyTo_3", | 857 _NativeJsSendPort_send_closure: {"": "Closure;this_1,message_2", |
872 call$0: function() { | 858 call$0: function() { |
873 var t1, t2, t3, t4, t5, isolate, shouldSerialize, msg; | 859 var t1, t2, t3, t4, isolate, shouldSerialize, msg; |
874 t1 = {}; | 860 t1 = {}; |
875 t2 = this.this_1; | 861 t2 = $globalState.isolates; |
876 t3 = this.replyTo_3; | 862 t3 = this.this_1; |
877 t2._checkReplyTo$1(t3); | 863 t4 = t3._isolateId; |
878 t4 = $globalState.isolates; | 864 isolate = t2.$index(t2, t4); |
879 t5 = t2._isolateId; | |
880 isolate = t4.$index(t4, t5); | |
881 if (isolate == null) | 865 if (isolate == null) |
882 return; | 866 return; |
883 if (t2._receivePort.get$_callback() == null) | 867 if ((t3._receivePort.get$_controller()._state & 4) !== 0) |
884 return; | 868 return; |
885 shouldSerialize = $globalState.currentContext != null && $globalState.curren
tContext.id !== t5; | 869 shouldSerialize = $globalState.currentContext != null && $globalState.curren
tContext.id !== t4; |
886 msg = this.message_2; | 870 msg = this.message_2; |
887 t1.msg_0 = msg; | 871 t1.msg_0 = msg; |
888 t1.reply_1 = t3; | 872 if (shouldSerialize) |
889 if (shouldSerialize) { | |
890 t1.msg_0 = H._serializeMessage(t1.msg_0); | 873 t1.msg_0 = H._serializeMessage(t1.msg_0); |
891 t1.reply_1 = H._serializeMessage(t1.reply_1); | 874 t2 = $globalState.topEventLoop; |
892 } | |
893 t3 = $globalState.topEventLoop; | |
894 t4 = "receive " + H.S(msg); | 875 t4 = "receive " + H.S(msg); |
895 t3.events._add$1(new H._IsolateEvent(isolate, new H._NativeJsSendPort_send__
closure(t1, t2, shouldSerialize), t4)); | 876 t2.events._add$1(new H._IsolateEvent(isolate, new H._NativeJsSendPort_send__
closure(t1, t3, shouldSerialize), t4)); |
896 } | 877 } |
897 }, | 878 }, |
898 | 879 |
899 _NativeJsSendPort_send__closure: {"": "Closure;box_0,this_4,shouldSerialize_5", | 880 _NativeJsSendPort_send__closure: {"": "Closure;box_0,this_3,shouldSerialize_4", |
900 call$0: function() { | 881 call$0: function() { |
901 var t1, t2; | 882 var t1, t2; |
902 t1 = this.this_4._receivePort; | 883 t1 = this.this_3._receivePort; |
903 if (t1.get$_callback() != null) { | 884 if ((t1.get$_controller()._state & 4) === 0) { |
904 if (this.shouldSerialize_5) { | 885 if (this.shouldSerialize_4) { |
905 t2 = this.box_0; | 886 t2 = this.box_0; |
906 t2.msg_0 = H._deserializeMessage(t2.msg_0); | 887 t2.msg_0 = H._deserializeMessage(t2.msg_0); |
907 t2.reply_1 = H._deserializeMessage(t2.reply_1); | |
908 } | 888 } |
909 t2 = this.box_0; | 889 t1 = t1.get$_controller(); |
910 t1._callback$2(t2.msg_0, t2.reply_1); | 890 t2 = this.box_0.msg_0; |
| 891 if (t1._state >= 4) |
| 892 H.throwExpression(t1._badEventState$0()); |
| 893 t1._async$_add$1(t2); |
911 } | 894 } |
912 } | 895 } |
913 }, | 896 }, |
914 | 897 |
915 _WorkerSendPort: {"": "_BaseSendPort;_workerId,_receivePortId,_isolateId", | 898 _WorkerSendPort: {"": "_BaseSendPort;_workerId,_receivePortId,_isolateId", |
916 send$2: function(message, replyTo) { | 899 send$2: function(message, replyTo) { |
917 H._waitForPendingPorts([message, replyTo], new H._WorkerSendPort_send_closur
e(this, message, replyTo)); | 900 H._waitForPendingPorts(message, new H._WorkerSendPort_send_closure(this, mes
sage)); |
918 }, | 901 }, |
919 send$1: function(message) { | 902 send$1: function(message) { |
920 return this.send$2(message, null); | 903 return this.send$2(message, null); |
921 }, | 904 }, |
922 $eq: function(_, other) { | 905 $eq: function(_, other) { |
923 var t1; | 906 var t1; |
924 if (other == null) | 907 if (other == null) |
925 return false; | 908 return false; |
926 t1 = J.getInterceptor(other); | 909 t1 = J.getInterceptor(other); |
927 if (typeof other === "object" && other !== null && !!t1.$is_WorkerSendPort) | 910 if (typeof other === "object" && other !== null && !!t1.$is_WorkerSendPort) |
(...skipping 12 matching lines...) Expand all Loading... |
940 throw t2.$shl(); | 923 throw t2.$shl(); |
941 t3 = this._receivePortId; | 924 t3 = this._receivePortId; |
942 if (typeof t3 !== "number") | 925 if (typeof t3 !== "number") |
943 throw H.iae(t3); | 926 throw H.iae(t3); |
944 return (t1 << 16 ^ t2 << 8 ^ t3) >>> 0; | 927 return (t1 << 16 ^ t2 << 8 ^ t3) >>> 0; |
945 }, | 928 }, |
946 $is_WorkerSendPort: true, | 929 $is_WorkerSendPort: true, |
947 $isSendPort: true | 930 $isSendPort: true |
948 }, | 931 }, |
949 | 932 |
950 _WorkerSendPort_send_closure: {"": "Closure;this_0,message_1,replyTo_2", | 933 _WorkerSendPort_send_closure: {"": "Closure;this_0,message_1", |
951 call$0: function() { | 934 call$0: function() { |
952 var t1, t2, workerMessage, manager; | 935 var t1, workerMessage, t2, manager; |
953 t1 = this.this_0; | 936 t1 = this.this_0; |
954 t2 = this.replyTo_2; | 937 workerMessage = H._serializeMessage(H.fillLiteralMap(["command", "message",
"port", t1, "msg", this.message_1], P.LinkedHashMap_LinkedHashMap(null, null, nu
ll, null, null))); |
955 t1._checkReplyTo$1(t2); | |
956 workerMessage = H._serializeMessage(H.fillLiteralMap(["command", "message",
"port", t1, "msg", this.message_1, "replyTo", t2], P.LinkedHashMap_LinkedHashMap
(null, null, null, null, null))); | |
957 if ($globalState.isWorker === true) { | 938 if ($globalState.isWorker === true) { |
958 $globalState.mainManager.toString; | 939 $globalState.mainManager.toString; |
959 self.postMessage(workerMessage); | 940 self.postMessage(workerMessage); |
960 } else { | 941 } else { |
961 t2 = $globalState.managers; | 942 t2 = $globalState.managers; |
962 manager = t2.$index(t2, t1._workerId); | 943 manager = t2.$index(t2, t1._workerId); |
963 if (manager != null) | 944 if (manager != null) |
964 manager.postMessage(workerMessage); | 945 manager.postMessage(workerMessage); |
965 } | 946 } |
966 } | 947 } |
967 }, | 948 }, |
968 | 949 |
969 ReceivePortImpl: {"": "Object;_id<,_callback<", | 950 ReceivePortImpl: {"": "Stream;_id<,_controller<", |
970 _callback$2: function(arg0, arg1) { | 951 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone,
onError) { |
971 return this._callback.call$2(arg0, arg1); | 952 var t1 = this._controller; |
| 953 t1.toString; |
| 954 t1 = new P._ControllerStream(t1); |
| 955 H.setRuntimeTypeInfo(t1, [null]); |
| 956 return t1.listen$4$cancelOnError$onDone$onError(onData, cancelOnError, onDon
e, onError); |
| 957 }, |
| 958 close$0: function(_) { |
| 959 var t1 = this._controller; |
| 960 if ((t1._state & 4) !== 0) |
| 961 return; |
| 962 t1.close$0(t1); |
| 963 $globalState.currentContext.unregister$1(this._id); |
| 964 }, |
| 965 get$close: function(_receiver) { |
| 966 return new H.BoundClosure$i0(this, H.ReceivePortImpl.prototype.close$0, _rec
eiver, "close$0"); |
972 }, | 967 }, |
973 ReceivePortImpl$0: function() { | 968 ReceivePortImpl$0: function() { |
| 969 this._controller = P.StreamController_StreamController(this.get$close(this),
null, null, null, true, null); |
974 var t1 = $globalState.currentContext; | 970 var t1 = $globalState.currentContext; |
975 t1.register$2(t1, this._id, this); | 971 t1.register$2(t1, this._id, this); |
976 }, | 972 }, |
977 static: { | 973 static: { |
978 "": "ReceivePortImpl__nextFreeId", | 974 "": "ReceivePortImpl__nextFreeId", |
979 ReceivePortImpl$: function() { | 975 ReceivePortImpl$: function() { |
980 var t1 = $.ReceivePortImpl__nextFreeId; | 976 var t1 = $.ReceivePortImpl__nextFreeId; |
981 $.ReceivePortImpl__nextFreeId = t1 + 1; | 977 $.ReceivePortImpl__nextFreeId = t1 + 1; |
982 t1 = new H.ReceivePortImpl(t1, null); | 978 t1 = new H.ReceivePortImpl(t1, null); |
983 t1.ReceivePortImpl$0(); | 979 t1.ReceivePortImpl$0(); |
984 return t1; | 980 return t1; |
985 }} | 981 }} |
986 | 982 |
987 }, | 983 }, |
988 | 984 |
989 _waitForPendingPorts_closure: {"": "Closure;callback_0", | 985 _waitForPendingPorts_closure: {"": "Closure;callback_0", |
990 call$1: function(_) { | 986 call$1: function(_) { |
991 return this.callback_0.call$0(); | 987 return this.callback_0.call$0(); |
992 } | 988 }, |
| 989 $is_args1: true |
993 }, | 990 }, |
994 | 991 |
995 _PendingSendPortFinder: {"": "_MessageTraverser;ports,_visited", | 992 _PendingSendPortFinder: {"": "_MessageTraverser;ports,_visited", |
996 visitPrimitive$1: function(x) { | 993 visitPrimitive$1: function(x) { |
997 }, | 994 }, |
998 visitList$1: function(list) { | 995 visitList$1: function(list) { |
999 var t1 = this._visited; | 996 var t1 = this._visited; |
1000 if (t1.$index(t1, list) != null) | 997 if (t1.$index(t1, list) != null) |
1001 return; | 998 return; |
1002 t1 = this._visited; | 999 t1 = this._visited; |
1003 t1.$indexSet(t1, list, true); | 1000 t1.$indexSet(t1, list, true); |
1004 J.forEach$1$ax(list, new H._PendingSendPortFinder_visitList_closure(this)); | 1001 J.forEach$1$ax(list, this.get$_dispatch()); |
1005 }, | 1002 }, |
1006 visitMap$1: function(map) { | 1003 visitMap$1: function(map) { |
1007 var t1 = this._visited; | 1004 var t1 = this._visited; |
1008 if (t1.$index(t1, map) != null) | 1005 if (t1.$index(t1, map) != null) |
1009 return; | 1006 return; |
1010 t1 = this._visited; | 1007 t1 = this._visited; |
1011 t1.$indexSet(t1, map, true); | 1008 t1.$indexSet(t1, map, true); |
1012 t1 = map.get$values(map); | 1009 t1 = map.get$values(map); |
1013 t1.forEach$1(t1, new H._PendingSendPortFinder_visitMap_closure(this)); | 1010 t1.forEach$1(t1, this.get$_dispatch()); |
1014 }, | 1011 }, |
1015 visitSendPort$1: function(port) { | 1012 visitSendPort$1: function(port) { |
1016 }, | 1013 }, |
1017 visitIsolateSink$1: function(sink) { | |
1018 this.visitSendPort$1(sink._port); | |
1019 }, | |
1020 visitCloseToken$1: function(token) { | |
1021 }, | |
1022 _PendingSendPortFinder$0: function() { | 1014 _PendingSendPortFinder$0: function() { |
1023 this._visited = new H._JsVisitedMap(null); | 1015 this._visited = new H._JsVisitedMap(null); |
1024 }, | 1016 }, |
1025 static: { | 1017 static: { |
1026 _PendingSendPortFinder$: function() { | 1018 _PendingSendPortFinder$: function() { |
1027 var t1 = new H._PendingSendPortFinder([], new H._MessageTraverserVisitedMap())
; | 1019 var t1 = new H._PendingSendPortFinder([], new H._MessageTraverserVisitedMap())
; |
1028 t1._PendingSendPortFinder$0(); | 1020 t1._PendingSendPortFinder$0(); |
1029 return t1; | 1021 return t1; |
1030 }} | 1022 }} |
1031 | 1023 |
1032 }, | 1024 }, |
1033 | 1025 |
1034 _PendingSendPortFinder_visitList_closure: {"": "Closure;this_0", | |
1035 call$1: function(e) { | |
1036 return this.this_0._dispatch$1(e); | |
1037 } | |
1038 }, | |
1039 | |
1040 _PendingSendPortFinder_visitMap_closure: {"": "Closure;this_0", | |
1041 call$1: function(e) { | |
1042 return this.this_0._dispatch$1(e); | |
1043 } | |
1044 }, | |
1045 | |
1046 _JsSerializer: {"": "_Serializer;_nextFreeRefId,_visited", | 1026 _JsSerializer: {"": "_Serializer;_nextFreeRefId,_visited", |
1047 visitSendPort$1: function(x) { | 1027 visitSendPort$1: function(x) { |
1048 var t1 = J.getInterceptor(x); | 1028 if (!!x.$is_NativeJsSendPort) |
1049 if (typeof x === "object" && x !== null && !!t1.$is_NativeJsSendPort) | |
1050 return ["sendport", $globalState.currentManagerId, x._isolateId, x._receiv
ePort.get$_id()]; | 1029 return ["sendport", $globalState.currentManagerId, x._isolateId, x._receiv
ePort.get$_id()]; |
1051 if (typeof x === "object" && x !== null && !!t1.$is_WorkerSendPort) | 1030 if (!!x.$is_WorkerSendPort) |
1052 return ["sendport", x._workerId, x._isolateId, x._receivePortId]; | 1031 return ["sendport", x._workerId, x._isolateId, x._receivePortId]; |
1053 throw H.wrapException("Illegal underlying port " + H.S(x)); | 1032 throw H.wrapException("Illegal underlying port " + H.S(x)); |
1054 }, | |
1055 visitIsolateSink$1: function(sink) { | |
1056 var isClosed = sink._isClosed; | |
1057 return ["isolateSink", this.visitSendPort$1(sink._port), isClosed]; | |
1058 }, | |
1059 visitCloseToken$1: function(token) { | |
1060 return ["closeToken"]; | |
1061 } | 1033 } |
1062 }, | 1034 }, |
1063 | 1035 |
1064 _JsCopier: {"": "_Copier;_visited", | 1036 _JsCopier: {"": "_Copier;_visited", |
1065 visitSendPort$1: function(x) { | 1037 visitSendPort$1: function(x) { |
1066 var t1 = J.getInterceptor(x); | 1038 if (!!x.$is_NativeJsSendPort) |
1067 if (typeof x === "object" && x !== null && !!t1.$is_NativeJsSendPort) | |
1068 return new H._NativeJsSendPort(x._receivePort, x._isolateId); | 1039 return new H._NativeJsSendPort(x._receivePort, x._isolateId); |
1069 if (typeof x === "object" && x !== null && !!t1.$is_WorkerSendPort) | 1040 if (!!x.$is_WorkerSendPort) |
1070 return new H._WorkerSendPort(x._workerId, x._receivePortId, x._isolateId); | 1041 return new H._WorkerSendPort(x._workerId, x._receivePortId, x._isolateId); |
1071 throw H.wrapException("Illegal underlying port " + H.S(x)); | 1042 throw H.wrapException("Illegal underlying port " + H.S(x)); |
1072 }, | |
1073 visitIsolateSink$1: function(sink) { | |
1074 var result = new H.JsIsolateSink(false, this.visitSendPort$1(sink._port)); | |
1075 result._isClosed = sink._isClosed; | |
1076 return result; | |
1077 }, | |
1078 visitCloseToken$1: function(token) { | |
1079 return token; | |
1080 } | 1043 } |
1081 }, | 1044 }, |
1082 | 1045 |
1083 _JsDeserializer: {"": "_Deserializer;_deserialized", | 1046 _JsDeserializer: {"": "_Deserializer;_deserialized", |
1084 deserializeSendPort$1: function(list) { | 1047 deserializeSendPort$1: function(list) { |
1085 var t1, managerId, isolateId, receivePortId, isolate, receivePort; | 1048 var t1, managerId, isolateId, receivePortId, isolate, receivePort; |
1086 t1 = J.getInterceptor$asx(list); | 1049 t1 = J.getInterceptor$asx(list); |
1087 managerId = t1.$index(list, 1); | 1050 managerId = t1.$index(list, 1); |
1088 isolateId = t1.$index(list, 2); | 1051 isolateId = t1.$index(list, 2); |
1089 receivePortId = t1.$index(list, 3); | 1052 receivePortId = t1.$index(list, 3); |
1090 if (J.$eq(managerId, $globalState.currentManagerId)) { | 1053 if (J.$eq(managerId, $globalState.currentManagerId)) { |
1091 t1 = $globalState.isolates; | 1054 t1 = $globalState.isolates; |
1092 isolate = t1.$index(t1, isolateId); | 1055 isolate = t1.$index(t1, isolateId); |
1093 if (isolate == null) | 1056 if (isolate == null) |
1094 return; | 1057 return; |
1095 receivePort = isolate.lookup$1(receivePortId); | 1058 receivePort = isolate.lookup$1(receivePortId); |
1096 if (receivePort == null) | 1059 if (receivePort == null) |
1097 return; | 1060 return; |
1098 return new H._NativeJsSendPort(receivePort, isolateId); | 1061 return new H._NativeJsSendPort(receivePort, isolateId); |
1099 } else | 1062 } else |
1100 return new H._WorkerSendPort(managerId, receivePortId, isolateId); | 1063 return new H._WorkerSendPort(managerId, receivePortId, isolateId); |
1101 }, | |
1102 deserializeIsolateSink$1: function(list) { | |
1103 var t1, port, result; | |
1104 t1 = J.getInterceptor$asx(list); | |
1105 port = this.deserializeSendPort$1(t1.$index(list, 1)); | |
1106 result = new H.JsIsolateSink(false, port); | |
1107 result._isClosed = t1.$index(list, 2); | |
1108 return result; | |
1109 }, | |
1110 deserializeCloseToken$1: function(list) { | |
1111 return C.C_CloseToken; | |
1112 } | 1064 } |
1113 }, | 1065 }, |
1114 | 1066 |
1115 _JsVisitedMap: {"": "Object;tagged", | 1067 _JsVisitedMap: {"": "Object;tagged", |
1116 $index: function(_, object) { | 1068 $index: function(_, object) { |
1117 return object.__MessageTraverser__attached_info__; | 1069 return object.__MessageTraverser__attached_info__; |
1118 }, | 1070 }, |
1119 $indexSet: function(_, object, info) { | 1071 $indexSet: function(_, object, info) { |
1120 this.tagged.push(object); | 1072 this.tagged.push(object); |
1121 object.__MessageTraverser__attached_info__ = info; | 1073 object.__MessageTraverser__attached_info__ = info; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1166 var t1; | 1118 var t1; |
1167 if (x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean") | 1119 if (x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean") |
1168 return this.visitPrimitive$1(x); | 1120 return this.visitPrimitive$1(x); |
1169 t1 = J.getInterceptor(x); | 1121 t1 = J.getInterceptor(x); |
1170 if (typeof x === "object" && x !== null && (x.constructor === Array || !!t1.
$isList)) | 1122 if (typeof x === "object" && x !== null && (x.constructor === Array || !!t1.
$isList)) |
1171 return this.visitList$1(x); | 1123 return this.visitList$1(x); |
1172 if (typeof x === "object" && x !== null && !!t1.$isMap) | 1124 if (typeof x === "object" && x !== null && !!t1.$isMap) |
1173 return this.visitMap$1(x); | 1125 return this.visitMap$1(x); |
1174 if (typeof x === "object" && x !== null && !!t1.$isSendPort) | 1126 if (typeof x === "object" && x !== null && !!t1.$isSendPort) |
1175 return this.visitSendPort$1(x); | 1127 return this.visitSendPort$1(x); |
1176 if (typeof x === "object" && x !== null && !!t1.$isJsIsolateSink) | |
1177 return this.visitIsolateSink$1(x); | |
1178 if (typeof x === "object" && x !== null && !!t1.$isCloseToken) | |
1179 return this.visitCloseToken$1(x); | |
1180 return this.visitObject$1(x); | 1128 return this.visitObject$1(x); |
1181 }, | 1129 }, |
| 1130 get$_dispatch: function() { |
| 1131 return new H.BoundClosure$1(this, H._MessageTraverser.prototype._dispatch$1,
null, "_dispatch$1"); |
| 1132 }, |
1182 visitObject$1: function(x) { | 1133 visitObject$1: function(x) { |
1183 throw H.wrapException("Message serialization: Illegal value " + H.S(x) + " p
assed"); | 1134 throw H.wrapException("Message serialization: Illegal value " + H.S(x) + " p
assed"); |
1184 } | 1135 } |
1185 }, | 1136 }, |
1186 | 1137 |
1187 _Copier: {"": "_MessageTraverser;", | 1138 _Copier: {"": "_MessageTraverser;", |
1188 visitPrimitive$1: function(x) { | 1139 visitPrimitive$1: function(x) { |
1189 return x; | 1140 return x; |
1190 }, | 1141 }, |
1191 visitList$1: function(list) { | 1142 visitList$1: function(list) { |
1192 var t1, copy, len, i, t2; | |
1193 if (typeof list !== "string" && (typeof list !== "object" || list === null |
| list.constructor !== Array && !H.isJsIndexable(list, list[init.dispatchPropert
yName]))) | |
1194 return this.visitList$1$bailout1(1, list); | |
1195 t1 = this._visited; | |
1196 copy = t1.$index(t1, list); | |
1197 if (copy != null) | |
1198 return copy; | |
1199 len = list.length; | |
1200 copy = P.List_List(len, null); | |
1201 t1 = this._visited; | |
1202 t1.$indexSet(t1, list, copy); | |
1203 for (t1 = copy.length, i = 0; i < len; ++i) { | |
1204 if (i >= list.length) | |
1205 throw H.ioore(list, i); | |
1206 t2 = this._dispatch$1(list[i]); | |
1207 if (i >= t1) | |
1208 throw H.ioore(copy, i); | |
1209 copy[i] = t2; | |
1210 } | |
1211 return copy; | |
1212 }, | |
1213 visitList$1$bailout1: function(state0, list) { | |
1214 var t1, copy, len, t2, i, t3; | 1143 var t1, copy, len, t2, i, t3; |
1215 t1 = this._visited; | 1144 t1 = this._visited; |
1216 copy = t1.$index(t1, list); | 1145 copy = t1.$index(t1, list); |
1217 if (copy != null) | 1146 if (copy != null) |
1218 return copy; | 1147 return copy; |
1219 t1 = J.getInterceptor$asx(list); | 1148 t1 = J.getInterceptor$asx(list); |
1220 len = t1.get$length(list); | 1149 len = t1.get$length(list); |
1221 copy = P.List_List(len, null); | 1150 copy = P.List_List(len, null); |
1222 t2 = this._visited; | 1151 t2 = this._visited; |
1223 t2.$indexSet(t2, list, copy); | 1152 t2.$indexSet(t2, list, copy); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1278 id = this._nextFreeRefId; | 1207 id = this._nextFreeRefId; |
1279 this._nextFreeRefId = id + 1; | 1208 this._nextFreeRefId = id + 1; |
1280 t1 = this._visited; | 1209 t1 = this._visited; |
1281 t1.$indexSet(t1, map, id); | 1210 t1.$indexSet(t1, map, id); |
1282 t1 = map.get$keys(); | 1211 t1 = map.get$keys(); |
1283 keys = this._serializeList$1(P.List_List$from(t1, true, H.getRuntimeTypeArgu
ment(t1, "IterableBase", 0))); | 1212 keys = this._serializeList$1(P.List_List$from(t1, true, H.getRuntimeTypeArgu
ment(t1, "IterableBase", 0))); |
1284 t1 = map.get$values(map); | 1213 t1 = map.get$values(map); |
1285 return ["map", id, keys, this._serializeList$1(P.List_List$from(t1, true, H.
getRuntimeTypeArgument(t1, "IterableBase", 0)))]; | 1214 return ["map", id, keys, this._serializeList$1(P.List_List$from(t1, true, H.
getRuntimeTypeArgument(t1, "IterableBase", 0)))]; |
1286 }, | 1215 }, |
1287 _serializeList$1: function(list) { | 1216 _serializeList$1: function(list) { |
1288 var len, result, t1, i, t2; | |
1289 if (typeof list !== "string" && (typeof list !== "object" || list === null |
| list.constructor !== Array && !H.isJsIndexable(list, list[init.dispatchPropert
yName]))) | |
1290 return this._serializeList$1$bailout(1, list); | |
1291 len = list.length; | |
1292 result = P.List_List(len, null); | |
1293 for (t1 = result.length, i = 0; i < len; ++i) { | |
1294 if (i >= list.length) | |
1295 throw H.ioore(list, i); | |
1296 t2 = this._dispatch$1(list[i]); | |
1297 if (i >= t1) | |
1298 throw H.ioore(result, i); | |
1299 result[i] = t2; | |
1300 } | |
1301 return result; | |
1302 }, | |
1303 _serializeList$1$bailout: function(state0, list) { | |
1304 var t1, len, result, t2, i, t3; | 1217 var t1, len, result, t2, i, t3; |
1305 t1 = J.getInterceptor$asx(list); | 1218 t1 = J.getInterceptor$asx(list); |
1306 len = t1.get$length(list); | 1219 len = t1.get$length(list); |
1307 result = P.List_List(len, null); | 1220 result = P.List_List(len, null); |
1308 for (t2 = result.length, i = 0; i < len; ++i) { | 1221 for (t2 = result.length, i = 0; i < len; ++i) { |
1309 t3 = this._dispatch$1(t1.$index(list, i)); | 1222 t3 = this._dispatch$1(t1.$index(list, i)); |
1310 if (i >= t2) | 1223 if (i >= t2) |
1311 throw H.ioore(result, i); | 1224 throw H.ioore(result, i); |
1312 result[i] = t3; | 1225 result[i] = t3; |
1313 } | 1226 } |
(...skipping 17 matching lines...) Expand all Loading... |
1331 case "ref": | 1244 case "ref": |
1332 id = t1.$index(x, 1); | 1245 id = t1.$index(x, 1); |
1333 t1 = this._deserialized; | 1246 t1 = this._deserialized; |
1334 return t1.$index(t1, id); | 1247 return t1.$index(t1, id); |
1335 case "list": | 1248 case "list": |
1336 return this._deserializeList$1(x); | 1249 return this._deserializeList$1(x); |
1337 case "map": | 1250 case "map": |
1338 return this._deserializeMap$1(x); | 1251 return this._deserializeMap$1(x); |
1339 case "sendport": | 1252 case "sendport": |
1340 return this.deserializeSendPort$1(x); | 1253 return this.deserializeSendPort$1(x); |
1341 case "isolateSink": | |
1342 return this.deserializeIsolateSink$1(x); | |
1343 case "closeToken": | |
1344 return this.deserializeCloseToken$1(x); | |
1345 default: | 1254 default: |
1346 return this.deserializeObject$1(x); | 1255 return this.deserializeObject$1(x); |
1347 } | 1256 } |
1348 }, | 1257 }, |
1349 _deserializeList$1: function(x) { | 1258 _deserializeList$1: function(x) { |
1350 var t1, id, dartList, len, i; | 1259 var t1, id, dartList, len, i; |
1351 t1 = J.getInterceptor$asx(x); | 1260 t1 = J.getInterceptor$asx(x); |
1352 id = t1.$index(x, 1); | 1261 id = t1.$index(x, 1); |
1353 dartList = t1.$index(x, 2); | 1262 dartList = t1.$index(x, 2); |
1354 if (typeof dartList !== "object" || dartList === null || (dartList.construct
or !== Array || !!dartList.immutable$list) && !H.isJsIndexable(dartList, dartLis
t[init.dispatchPropertyName])) | |
1355 return this._deserializeList$1$bailout(1, dartList, id); | |
1356 t1 = this._deserialized; | |
1357 t1.$indexSet(t1, id, dartList); | |
1358 len = dartList.length; | |
1359 for (i = 0; i < len; ++i) { | |
1360 if (i >= dartList.length) | |
1361 throw H.ioore(dartList, i); | |
1362 t1 = this._deserializeHelper$1(dartList[i]); | |
1363 if (i >= dartList.length) | |
1364 throw H.ioore(dartList, i); | |
1365 dartList[i] = t1; | |
1366 } | |
1367 return dartList; | |
1368 }, | |
1369 _deserializeList$1$bailout: function(state0, dartList, id) { | |
1370 var t1, len, i; | |
1371 t1 = this._deserialized; | 1263 t1 = this._deserialized; |
1372 t1.$indexSet(t1, id, dartList); | 1264 t1.$indexSet(t1, id, dartList); |
1373 t1 = J.getInterceptor$asx(dartList); | 1265 t1 = J.getInterceptor$asx(dartList); |
1374 len = t1.get$length(dartList); | 1266 len = t1.get$length(dartList); |
1375 if (typeof len !== "number") | 1267 if (typeof len !== "number") |
1376 throw H.iae(len); | 1268 throw H.iae(len); |
1377 i = 0; | 1269 i = 0; |
1378 for (; i < len; ++i) | 1270 for (; i < len; ++i) |
1379 t1.$indexSet(dartList, i, this._deserializeHelper$1(t1.$index(dartList, i)
)); | 1271 t1.$indexSet(dartList, i, this._deserializeHelper$1(t1.$index(dartList, i)
)); |
1380 return dartList; | 1272 return dartList; |
1381 }, | 1273 }, |
1382 _deserializeMap$1: function(x) { | 1274 _deserializeMap$1: function(x) { |
1383 var result, t1, id, t2, keys, values, len, i, key; | 1275 var result, t1, id, t2, keys, values, len, i; |
1384 result = P.LinkedHashMap_LinkedHashMap(null, null, null, null, null); | 1276 result = P.LinkedHashMap_LinkedHashMap(null, null, null, null, null); |
1385 t1 = J.getInterceptor$asx(x); | 1277 t1 = J.getInterceptor$asx(x); |
1386 id = t1.$index(x, 1); | 1278 id = t1.$index(x, 1); |
1387 t2 = this._deserialized; | 1279 t2 = this._deserialized; |
1388 t2.$indexSet(t2, id, result); | 1280 t2.$indexSet(t2, id, result); |
1389 keys = t1.$index(x, 2); | 1281 keys = t1.$index(x, 2); |
1390 if (typeof keys !== "string" && (typeof keys !== "object" || keys === null |
| keys.constructor !== Array && !H.isJsIndexable(keys, keys[init.dispatchPropert
yName]))) | |
1391 return this._deserializeMap$1$bailout(1, result, keys, t1, x); | |
1392 values = t1.$index(x, 3); | 1282 values = t1.$index(x, 3); |
1393 if (typeof values !== "string" && (typeof values !== "object" || values ===
null || values.constructor !== Array && !H.isJsIndexable(values, values[init.dis
patchPropertyName]))) | 1283 t1 = J.getInterceptor$asx(keys); |
1394 return this._deserializeMap$1$bailout(2, result, keys, 0, 0, values); | 1284 len = t1.get$length(keys); |
1395 len = keys.length; | 1285 if (typeof len !== "number") |
1396 for (i = 0; i < len; ++i) { | 1286 throw H.iae(len); |
1397 if (i >= keys.length) | 1287 t2 = J.getInterceptor$asx(values); |
1398 throw H.ioore(keys, i); | 1288 i = 0; |
1399 key = this._deserializeHelper$1(keys[i]); | 1289 for (; i < len; ++i) |
1400 if (i >= values.length) | 1290 result.$indexSet(result, this._deserializeHelper$1(t1.$index(keys, i)), th
is._deserializeHelper$1(t2.$index(values, i))); |
1401 throw H.ioore(values, i); | |
1402 result.$indexSet(result, key, this._deserializeHelper$1(values[i])); | |
1403 } | |
1404 return result; | 1291 return result; |
1405 }, | 1292 }, |
1406 _deserializeMap$1$bailout: function(state0, result, keys, t1, x, values) { | |
1407 switch (state0) { | |
1408 case 0: | |
1409 result = P.LinkedHashMap_LinkedHashMap(null, null, null, null, null); | |
1410 t1 = J.getInterceptor$asx(x); | |
1411 id = t1.$index(x, 1); | |
1412 t2 = this._deserialized; | |
1413 t2.$indexSet(t2, id, result); | |
1414 keys = t1.$index(x, 2); | |
1415 case 1: | |
1416 state0 = 0; | |
1417 values = t1.$index(x, 3); | |
1418 case 2: | |
1419 var id, t2, len, i; | |
1420 state0 = 0; | |
1421 t1 = J.getInterceptor$asx(keys); | |
1422 len = t1.get$length(keys); | |
1423 if (typeof len !== "number") | |
1424 throw H.iae(len); | |
1425 t2 = J.getInterceptor$asx(values); | |
1426 i = 0; | |
1427 for (; i < len; ++i) | |
1428 result.$indexSet(result, this._deserializeHelper$1(t1.$index(keys, i))
, this._deserializeHelper$1(t2.$index(values, i))); | |
1429 return result; | |
1430 } | |
1431 }, | |
1432 deserializeObject$1: function(x) { | 1293 deserializeObject$1: function(x) { |
1433 throw H.wrapException("Unexpected serialized object"); | 1294 throw H.wrapException("Unexpected serialized object"); |
1434 } | 1295 } |
1435 }, | 1296 }, |
1436 | 1297 |
1437 TimerImpl: {"": "Object;_once,_inEventLoop,_handle", | 1298 TimerImpl: {"": "Object;_once,_inEventLoop,_handle", |
1438 TimerImpl$2: function(milliseconds, callback) { | 1299 TimerImpl$2: function(milliseconds, callback) { |
1439 var t1, t2; | 1300 var t1, t2; |
1440 if (milliseconds === 0) | 1301 if (milliseconds === 0) |
1441 t1 = $.get$globalThis().setTimeout == null || $globalState.isWorker === tr
ue; | 1302 t1 = $.get$globalThis().setTimeout == null || $globalState.isWorker === tr
ue; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1563 } | 1424 } |
1564 return result; | 1425 return result; |
1565 }, | 1426 }, |
1566 | 1427 |
1567 Primitives_stringFromCodePoints: function(codePoints) { | 1428 Primitives_stringFromCodePoints: function(codePoints) { |
1568 var a, t1, i; | 1429 var a, t1, i; |
1569 a = []; | 1430 a = []; |
1570 for (t1 = new H.ListIterator(codePoints, codePoints.length, 0, null); t1.moveN
ext$0();) { | 1431 for (t1 = new H.ListIterator(codePoints, codePoints.length, 0, null); t1.moveN
ext$0();) { |
1571 i = t1._current; | 1432 i = t1._current; |
1572 if (typeof i !== "number" || Math.floor(i) !== i) | 1433 if (typeof i !== "number" || Math.floor(i) !== i) |
1573 throw H.wrapException(P.ArgumentError$(i)); | 1434 throw H.wrapException(new P.ArgumentError(i)); |
1574 if (i <= 65535) | 1435 if (i <= 65535) |
1575 a.push(i); | 1436 a.push(i); |
1576 else if (i <= 1114111) { | 1437 else if (i <= 1114111) { |
1577 a.push(55296 + (C.JSInt_methods.$shr(i - 65536, 10) & 1023)); | 1438 a.push(55296 + (C.JSInt_methods.$shr(i - 65536, 10) & 1023)); |
1578 a.push(56320 + (i & 1023)); | 1439 a.push(56320 + (i & 1023)); |
1579 } else | 1440 } else |
1580 throw H.wrapException(P.ArgumentError$(i)); | 1441 throw H.wrapException(new P.ArgumentError(i)); |
1581 } | 1442 } |
1582 return H.Primitives__fromCharCodeApply(a); | 1443 return H.Primitives__fromCharCodeApply(a); |
1583 }, | 1444 }, |
1584 | 1445 |
1585 Primitives_stringFromCharCodes: function(charCodes) { | 1446 Primitives_stringFromCharCodes: function(charCodes) { |
1586 var t1, i; | 1447 var t1, i; |
1587 for (t1 = new H.ListIterator(charCodes, charCodes.length, 0, null); t1.moveNex
t$0();) { | 1448 for (t1 = new H.ListIterator(charCodes, charCodes.length, 0, null); t1.moveNex
t$0();) { |
1588 i = t1._current; | 1449 i = t1._current; |
1589 if (typeof i !== "number" || Math.floor(i) !== i) | 1450 if (typeof i !== "number" || Math.floor(i) !== i) |
1590 throw H.wrapException(P.ArgumentError$(i)); | 1451 throw H.wrapException(new P.ArgumentError(i)); |
1591 if (i < 0) | 1452 if (i < 0) |
1592 throw H.wrapException(P.ArgumentError$(i)); | 1453 throw H.wrapException(new P.ArgumentError(i)); |
1593 if (i > 65535) | 1454 if (i > 65535) |
1594 return H.Primitives_stringFromCodePoints(charCodes); | 1455 return H.Primitives_stringFromCodePoints(charCodes); |
1595 } | 1456 } |
1596 return H.Primitives__fromCharCodeApply(charCodes); | 1457 return H.Primitives__fromCharCodeApply(charCodes); |
1597 }, | 1458 }, |
1598 | 1459 |
1599 Primitives_getProperty: function(object, key) { | 1460 Primitives_getProperty: function(object, key) { |
1600 if (object == null || typeof object === "boolean" || typeof object === "number
" || typeof object === "string") | 1461 if (object == null || typeof object === "boolean" || typeof object === "number
" || typeof object === "string") |
1601 throw H.wrapException(new P.ArgumentError(object)); | 1462 throw H.wrapException(new P.ArgumentError(object)); |
1602 return object[key]; | 1463 return object[key]; |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1777 if (closure == null) | 1638 if (closure == null) |
1778 return; | 1639 return; |
1779 $function = closure.$identity; | 1640 $function = closure.$identity; |
1780 if (!!$function) | 1641 if (!!$function) |
1781 return $function; | 1642 return $function; |
1782 $function = (function(closure, arity, context, invoke) { return function(a1,
a2, a3, a4) { return invoke(closure, context, arity, a1, a2, a3, a4); };})(
closure,arity,$globalState.currentContext,H.invokeClosure$closure.call$7); | 1643 $function = (function(closure, arity, context, invoke) { return function(a1,
a2, a3, a4) { return invoke(closure, context, arity, a1, a2, a3, a4); };})(
closure,arity,$globalState.currentContext,H.invokeClosure$closure.call$7); |
1783 closure.$identity = $function; | 1644 closure.$identity = $function; |
1784 return $function; | 1645 return $function; |
1785 }, | 1646 }, |
1786 | 1647 |
| 1648 propertyTypeCastError: function(value, property) { |
| 1649 var t1 = J.getInterceptor$asx(property); |
| 1650 throw H.wrapException(H.CastErrorImplementation$(H.Primitives_objectTypeName(v
alue), t1.substring$2(property, 3, t1.get$length(property)))); |
| 1651 }, |
| 1652 |
| 1653 interceptedTypeCast: function(value, property) { |
| 1654 var t1; |
| 1655 if (value != null) |
| 1656 t1 = typeof value === "object" && J.getInterceptor(value)[property]; |
| 1657 else |
| 1658 t1 = true; |
| 1659 if (t1) |
| 1660 return value; |
| 1661 H.propertyTypeCastError(value, property); |
| 1662 }, |
| 1663 |
1787 throwCyclicInit: function(staticName) { | 1664 throwCyclicInit: function(staticName) { |
1788 throw H.wrapException(P.CyclicInitializationError$("Cyclic initialization for
static " + H.S(staticName))); | 1665 throw H.wrapException(P.CyclicInitializationError$("Cyclic initialization for
static " + H.S(staticName))); |
1789 }, | 1666 }, |
1790 | 1667 |
1791 setRuntimeTypeInfo: function(target, typeInfo) { | 1668 setRuntimeTypeInfo: function(target, typeInfo) { |
1792 if (target != null) | 1669 if (target != null) |
1793 target.$builtinTypeInfo = typeInfo; | 1670 target.$builtinTypeInfo = typeInfo; |
1794 return target; | 1671 return target; |
1795 }, | 1672 }, |
1796 | 1673 |
(...skipping 12 matching lines...) Expand all Loading... |
1809 return $arguments == null ? null : $arguments[index]; | 1686 return $arguments == null ? null : $arguments[index]; |
1810 }, | 1687 }, |
1811 | 1688 |
1812 runtimeTypeToString: function(type) { | 1689 runtimeTypeToString: function(type) { |
1813 if (type == null) | 1690 if (type == null) |
1814 return "dynamic"; | 1691 return "dynamic"; |
1815 else if (typeof type === "object" && type !== null && type.constructor === Arr
ay) | 1692 else if (typeof type === "object" && type !== null && type.constructor === Arr
ay) |
1816 return type[0].builtin$cls + H.joinArguments(type, 1); | 1693 return type[0].builtin$cls + H.joinArguments(type, 1); |
1817 else if (typeof type == "function") | 1694 else if (typeof type == "function") |
1818 return type.builtin$cls; | 1695 return type.builtin$cls; |
| 1696 else if (typeof type === "number" && Math.floor(type) === type) |
| 1697 return C.JSInt_methods.toString$0(type); |
1819 else | 1698 else |
1820 return; | 1699 return; |
1821 }, | 1700 }, |
1822 | 1701 |
1823 joinArguments: function(types, startIndex) { | 1702 joinArguments: function(types, startIndex) { |
1824 var buffer, index, firstArgument, allDynamic, argument, str; | 1703 var buffer, index, firstArgument, allDynamic, argument, str; |
1825 if (types == null) | 1704 if (types == null) |
1826 return ""; | 1705 return ""; |
1827 buffer = P.StringBuffer$(""); | 1706 buffer = P.StringBuffer$(""); |
1828 for (index = startIndex, firstArgument = true, allDynamic = true; index < type
s.length; ++index) { | 1707 for (index = startIndex, firstArgument = true, allDynamic = true; index < type
s.length; ++index) { |
(...skipping 17 matching lines...) Expand all Loading... |
1846 else if (typeof substitution == "function") { | 1725 else if (typeof substitution == "function") { |
1847 substitution = H.invokeOn(substitution, null, $arguments); | 1726 substitution = H.invokeOn(substitution, null, $arguments); |
1848 if (typeof substitution === "object" && substitution !== null && substitutio
n.constructor === Array) | 1727 if (typeof substitution === "object" && substitution !== null && substitutio
n.constructor === Array) |
1849 $arguments = substitution; | 1728 $arguments = substitution; |
1850 else if (typeof substitution == "function") | 1729 else if (typeof substitution == "function") |
1851 $arguments = H.invokeOn(substitution, null, $arguments); | 1730 $arguments = H.invokeOn(substitution, null, $arguments); |
1852 } | 1731 } |
1853 return $arguments; | 1732 return $arguments; |
1854 }, | 1733 }, |
1855 | 1734 |
| 1735 computeSignature: function(signature, context, contextName) { |
| 1736 return H.invokeOn(signature, context, H.getRuntimeTypeArguments(context, conte
xtName)); |
| 1737 }, |
| 1738 |
1856 invokeOn: function($function, receiver, $arguments) { | 1739 invokeOn: function($function, receiver, $arguments) { |
1857 return $function.apply(receiver, $arguments); | 1740 return $function.apply(receiver, $arguments); |
1858 }, | 1741 }, |
1859 | 1742 |
1860 typeNameInChrome: function(obj) { | 1743 typeNameInChrome: function(obj) { |
1861 return obj.constructor.name; | 1744 return obj.constructor.name; |
1862 }, | 1745 }, |
1863 | 1746 |
1864 typeNameInSafari: function(obj) { | 1747 typeNameInSafari: function(obj) { |
1865 return H.constructorNameFallback(obj); | 1748 return H.constructorNameFallback(obj); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1995 tag = $.get$getTypeNameOf().call$1(obj); | 1878 tag = $.get$getTypeNameOf().call$1(obj); |
1996 interceptorClass = H.lookupInterceptor(hasOwnPropertyFunction, tag); | 1879 interceptorClass = H.lookupInterceptor(hasOwnPropertyFunction, tag); |
1997 if (interceptorClass == null) { | 1880 if (interceptorClass == null) { |
1998 secondTag = H.alternateTag(obj, tag); | 1881 secondTag = H.alternateTag(obj, tag); |
1999 if (secondTag != null) | 1882 if (secondTag != null) |
2000 interceptorClass = H.lookupInterceptor(hasOwnPropertyFunction, secondTag); | 1883 interceptorClass = H.lookupInterceptor(hasOwnPropertyFunction, secondTag); |
2001 } | 1884 } |
2002 if (interceptorClass == null) | 1885 if (interceptorClass == null) |
2003 return; | 1886 return; |
2004 interceptor = interceptorClass.prototype; | 1887 interceptor = interceptorClass.prototype; |
2005 init.leafTags; | |
2006 if (init.leafTags[tag] === true) | 1888 if (init.leafTags[tag] === true) |
2007 return H.makeLeafDispatchRecord(interceptor); | 1889 return H.makeLeafDispatchRecord(interceptor); |
2008 else | 1890 else |
2009 return J.makeDispatchRecord(interceptor, Object.getPrototypeOf(obj), null, n
ull); | 1891 return J.makeDispatchRecord(interceptor, Object.getPrototypeOf(obj), null, n
ull); |
2010 }, | 1892 }, |
2011 | 1893 |
2012 makeLeafDispatchRecord: function(interceptor) { | 1894 makeLeafDispatchRecord: function(interceptor) { |
2013 return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaScr
iptIndexingBehavior); | 1895 return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaScr
iptIndexingBehavior); |
2014 }, | 1896 }, |
2015 | 1897 |
| 1898 makeDefaultDispatchRecord: function(tag, interceptorClass, proto) { |
| 1899 var interceptor = interceptorClass.prototype; |
| 1900 if (init.leafTags[tag] === true) |
| 1901 return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaS
criptIndexingBehavior); |
| 1902 else |
| 1903 return J.makeDispatchRecord(interceptor, proto, null, null); |
| 1904 }, |
| 1905 |
| 1906 initNativeDispatch: function() { |
| 1907 var context, map, tags, i, tag, proto, record; |
| 1908 $.initNativeDispatchFlag = true; |
| 1909 if (typeof window != "undefined") { |
| 1910 context = window; |
| 1911 map = init.interceptorsByTag; |
| 1912 tags = Object.getOwnPropertyNames(map); |
| 1913 for (i = 0; i < tags.length; ++i) { |
| 1914 tag = tags[i]; |
| 1915 if (typeof context[tag] == "function") { |
| 1916 proto = context[tag].prototype; |
| 1917 if (proto != null) { |
| 1918 record = H.makeDefaultDispatchRecord(tag, map[tag], proto); |
| 1919 if (record != null) |
| 1920 Object.defineProperty(proto, init.dispatchPropertyName, {value: reco
rd, enumerable: false, writable: true, configurable: true}); |
| 1921 } |
| 1922 } |
| 1923 } |
| 1924 } |
| 1925 }, |
| 1926 |
2016 TypeErrorDecoder: {"": "Object;_pattern,_arguments,_argumentsExpr,_expr,_method,
_receiver", | 1927 TypeErrorDecoder: {"": "Object;_pattern,_arguments,_argumentsExpr,_expr,_method,
_receiver", |
2017 matchTypeError$1: function(message) { | 1928 matchTypeError$1: function(message) { |
2018 var match, result, t1; | 1929 var match, result, t1; |
2019 match = new RegExp(this._pattern).exec(message); | 1930 match = new RegExp(this._pattern).exec(message); |
2020 if (match == null) | 1931 if (match == null) |
2021 return; | 1932 return; |
2022 result = {}; | 1933 result = {}; |
2023 t1 = this._arguments; | 1934 t1 = this._arguments; |
2024 if (t1 !== -1) | 1935 if (t1 !== -1) |
2025 result.arguments = match[t1 + 1]; | 1936 result.arguments = match[t1 + 1]; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2158 } | 2069 } |
2159 }, | 2070 }, |
2160 | 2071 |
2161 unwrapException_saveStackTrace: {"": "Closure;ex_0", | 2072 unwrapException_saveStackTrace: {"": "Closure;ex_0", |
2162 call$1: function(error) { | 2073 call$1: function(error) { |
2163 var t1 = J.getInterceptor(error); | 2074 var t1 = J.getInterceptor(error); |
2164 if (typeof error === "object" && error !== null && !!t1.$isError) | 2075 if (typeof error === "object" && error !== null && !!t1.$isError) |
2165 if (error.$thrownJsError == null) | 2076 if (error.$thrownJsError == null) |
2166 error.$thrownJsError = this.ex_0; | 2077 error.$thrownJsError = this.ex_0; |
2167 return error; | 2078 return error; |
2168 } | 2079 }, |
| 2080 $is_args1: true |
2169 }, | 2081 }, |
2170 | 2082 |
2171 _StackTrace: {"": "Object;_exception,_trace", | 2083 _StackTrace: {"": "Object;_exception,_trace", |
2172 toString$0: function(_) { | 2084 toString$0: function(_) { |
2173 var t1, trace; | 2085 var t1, trace; |
2174 t1 = this._trace; | 2086 t1 = this._trace; |
2175 if (t1 != null) | 2087 if (t1 != null) |
2176 return t1; | 2088 return t1; |
2177 t1 = this._exception; | 2089 t1 = this._exception; |
2178 trace = typeof t1 === "object" ? t1.stack : null; | 2090 trace = typeof t1 === "object" ? t1.stack : null; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2211 return this.closure_10.call$4(this.arg1_11, this.arg2_12, this.arg3_13, this
.arg4_14); | 2123 return this.closure_10.call$4(this.arg1_11, this.arg2_12, this.arg3_13, this
.arg4_14); |
2212 } | 2124 } |
2213 }, | 2125 }, |
2214 | 2126 |
2215 Closure: {"": "Object;", | 2127 Closure: {"": "Object;", |
2216 toString$0: function(_) { | 2128 toString$0: function(_) { |
2217 return "Closure"; | 2129 return "Closure"; |
2218 } | 2130 } |
2219 }, | 2131 }, |
2220 | 2132 |
2221 BoundClosure: {"": "Closure;_self,_target,_receiver,__js_helper$_name", | 2133 BoundClosure: {"": "Closure;_self,__js_helper$_target,_receiver,__js_helper$_nam
e", |
2222 $eq: function(_, other) { | 2134 $eq: function(_, other) { |
2223 var t1; | 2135 var t1; |
2224 if (other == null) | 2136 if (other == null) |
2225 return false; | 2137 return false; |
2226 if (this === other) | 2138 if (this === other) |
2227 return true; | 2139 return true; |
2228 t1 = J.getInterceptor(other); | 2140 t1 = J.getInterceptor(other); |
2229 if (typeof other !== "object" || other === null || !t1.$isBoundClosure) | 2141 if (typeof other !== "object" || other === null || !t1.$isBoundClosure) |
2230 return false; | 2142 return false; |
2231 return this._self === other._self && this._target === other._target && this.
_receiver === other._receiver; | 2143 return this._self === other._self && this.__js_helper$_target === other.__js
_helper$_target && this._receiver === other._receiver; |
2232 }, | 2144 }, |
2233 get$hashCode: function(_) { | 2145 get$hashCode: function(_) { |
2234 var t1, receiverHashCode; | 2146 var t1, receiverHashCode; |
2235 t1 = this._receiver; | 2147 t1 = this._receiver; |
2236 if (t1 == null) | 2148 if (t1 == null) |
2237 receiverHashCode = H.Primitives_objectHashCode(this._self); | 2149 receiverHashCode = H.Primitives_objectHashCode(this._self); |
2238 else | 2150 else |
2239 receiverHashCode = typeof t1 !== "object" ? J.get$hashCode$(t1) : H.Primit
ives_objectHashCode(t1); | 2151 receiverHashCode = typeof t1 !== "object" ? J.get$hashCode$(t1) : H.Primit
ives_objectHashCode(t1); |
2240 return (receiverHashCode ^ H.Primitives_objectHashCode(this._target)) >>> 0; | 2152 return (receiverHashCode ^ H.Primitives_objectHashCode(this.__js_helper$_tar
get)) >>> 0; |
2241 }, | 2153 }, |
2242 $isBoundClosure: true | 2154 $isBoundClosure: true |
2243 }, | 2155 }, |
2244 | 2156 |
| 2157 CastErrorImplementation: {"": "Error;message", |
| 2158 toString$0: function(_) { |
| 2159 return this.message; |
| 2160 }, |
| 2161 $isError: true, |
| 2162 static: { |
| 2163 CastErrorImplementation$: function(actualType, expectedType) { |
| 2164 return new H.CastErrorImplementation("CastError: Casting value of type " + act
ualType + " to incompatible type " + H.S(expectedType)); |
| 2165 }} |
| 2166 |
| 2167 }, |
| 2168 |
2245 applyExperimentalFixup_newGetTagDartFunction: {"": "Closure;newGetTagJSFunction_
0", | 2169 applyExperimentalFixup_newGetTagDartFunction: {"": "Closure;newGetTagJSFunction_
0", |
2246 call$1: function(object) { | 2170 call$1: function(object) { |
2247 return this.newGetTagJSFunction_0(object); | 2171 return this.newGetTagJSFunction_0(object); |
2248 } | 2172 }, |
| 2173 $is_args1: true |
2249 }}], | 2174 }}], |
2250 ["dart._collection.dev", "dart:_collection-dev", , H, { | 2175 ["dart._collection.dev", "dart:_collection-dev", , H, { |
2251 Arrays_copy: function(src, srcStart, dst, dstStart, count) { | 2176 Arrays_copy: function(src, srcStart, dst, dstStart, count) { |
2252 var i, j, t1, t2, t3, t4; | |
2253 if (typeof dst !== "object" || dst === null || (dst.constructor !== Array || !
!dst.immutable$list) && !H.isJsIndexable(dst, dst[init.dispatchPropertyName])) | |
2254 return H.Arrays_copy$bailout(1, dst, src, srcStart, dstStart, count); | |
2255 if (srcStart < dstStart) | |
2256 for (i = srcStart + count - 1, j = dstStart + count - 1, t1 = src.length, t2
= dst.length; i >= srcStart; --i, --j) { | |
2257 if (i < 0 || i >= t1) | |
2258 throw H.ioore(src, i); | |
2259 t3 = src[i]; | |
2260 if (j < 0 || j >= t2) | |
2261 throw H.ioore(dst, j); | |
2262 dst[j] = t3; | |
2263 } | |
2264 else | |
2265 for (t1 = srcStart + count, t2 = src.length, t3 = dst.length, j = dstStart,
i = srcStart; i < t1; ++i, ++j) { | |
2266 if (i < 0 || i >= t2) | |
2267 throw H.ioore(src, i); | |
2268 t4 = src[i]; | |
2269 if (j < 0 || j >= t3) | |
2270 throw H.ioore(dst, j); | |
2271 dst[j] = t4; | |
2272 } | |
2273 }, | |
2274 | |
2275 Arrays_copy$bailout: function(state0, dst, src, srcStart, dstStart, count) { | |
2276 var i, j, t1; | 2177 var i, j, t1; |
2277 if (srcStart < dstStart) | 2178 if (srcStart < dstStart) |
2278 for (i = srcStart + count - 1, j = dstStart + count - 1; i >= srcStart; --i,
--j) { | 2179 for (i = srcStart + count - 1, j = dstStart + count - 1; i >= srcStart; --i,
--j) { |
2279 if (i < 0 || i >= src.length) | 2180 if (i < 0 || i >= src.length) |
2280 throw H.ioore(src, i); | 2181 throw H.ioore(src, i); |
2281 C.JSArray_methods.$indexSet(dst, j, src[i]); | 2182 C.JSArray_methods.$indexSet(dst, j, src[i]); |
2282 } | 2183 } |
2283 else | 2184 else |
2284 for (t1 = srcStart + count, j = dstStart, i = srcStart; i < t1; ++i, ++j) { | 2185 for (t1 = srcStart + count, j = dstStart, i = srcStart; i < t1; ++i, ++j) { |
2285 if (i < 0 || i >= src.length) | 2186 if (i < 0 || i >= src.length) |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2428 return false; | 2329 return false; |
2429 }, | 2330 }, |
2430 get$current: function() { | 2331 get$current: function() { |
2431 return this._current; | 2332 return this._current; |
2432 }, | 2333 }, |
2433 $asIterator: function($S, $T) { | 2334 $asIterator: function($S, $T) { |
2434 return [$T]; | 2335 return [$T]; |
2435 } | 2336 } |
2436 }, | 2337 }, |
2437 | 2338 |
2438 FixedLengthListMixin: {"": "Object;", | 2339 FixedLengthListMixin: {"": "Object;"}}], |
2439 set$length: function(receiver, newLength) { | |
2440 throw H.wrapException(P.UnsupportedError$("Cannot change the length of a fix
ed-length list")); | |
2441 }, | |
2442 add$1: function(receiver, value) { | |
2443 throw H.wrapException(P.UnsupportedError$("Cannot add to a fixed-length list
")); | |
2444 }, | |
2445 removeLast$0: function(receiver) { | |
2446 throw H.wrapException(P.UnsupportedError$("Cannot remove from a fixed-length
list")); | |
2447 } | |
2448 }}], | |
2449 ["dart.async", "dart:async", , P, { | 2340 ["dart.async", "dart:async", , P, { |
2450 _attachStackTrace: function(o, st) { | 2341 _attachStackTrace: function(o, st) { |
2451 var t1; | 2342 var t1; |
2452 if (o == null || typeof o === "boolean" || typeof o === "number" || typeof o =
== "string") | 2343 if (o == null || typeof o === "boolean" || typeof o === "number" || typeof o =
== "string") |
2453 return; | 2344 return; |
2454 t1 = $.get$_stackTraceExpando(); | 2345 t1 = $.get$_stackTraceExpando(); |
2455 t1.$indexSet(t1, o, st); | 2346 t1.$indexSet(t1, o, st); |
2456 }, | 2347 }, |
2457 | 2348 |
2458 _invokeErrorHandler: function(errorHandler, error, stackTrace) { | 2349 _invokeErrorHandler: function(errorHandler, error, stackTrace) { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2553 t1 = new P._SyncStreamController(onListen, onPause, onResume, onCancel, null
, 0, null); | 2444 t1 = new P._SyncStreamController(onListen, onPause, onResume, onCancel, null
, 0, null); |
2554 H.setRuntimeTypeInfo(t1, [$T]); | 2445 H.setRuntimeTypeInfo(t1, [$T]); |
2555 } else { | 2446 } else { |
2556 t1 = new P._AsyncStreamController(onListen, onPause, onResume, onCancel, nul
l, 0, null); | 2447 t1 = new P._AsyncStreamController(onListen, onPause, onResume, onCancel, nul
l, 0, null); |
2557 H.setRuntimeTypeInfo(t1, [$T]); | 2448 H.setRuntimeTypeInfo(t1, [$T]); |
2558 } | 2449 } |
2559 return t1; | 2450 return t1; |
2560 }, | 2451 }, |
2561 | 2452 |
2562 _runGuarded: function(notificationHandler) { | 2453 _runGuarded: function(notificationHandler) { |
2563 var e, s, exception, t1, t2; | 2454 var result, e, s, t1, t2, exception; |
2564 if (notificationHandler == null) | 2455 if (notificationHandler == null) |
2565 return; | 2456 return; |
2566 try { | 2457 try { |
2567 notificationHandler.call$0(); | 2458 result = notificationHandler.call$0(); |
| 2459 t1 = result; |
| 2460 t2 = J.getInterceptor(t1); |
| 2461 if (typeof t1 === "object" && t1 !== null && !!t2.$isFuture) |
| 2462 return result; |
| 2463 return; |
2568 } catch (exception) { | 2464 } catch (exception) { |
2569 t1 = H.unwrapException(exception); | 2465 t1 = H.unwrapException(exception); |
2570 e = t1; | 2466 e = t1; |
2571 s = new H._StackTrace(exception, null); | 2467 s = new H._StackTrace(exception, null); |
2572 t1 = $.Zone__current; | 2468 t1 = $.Zone__current; |
2573 t2 = P._asyncError(e, s); | 2469 t2 = P._asyncError(e, s); |
2574 t1.toString; | 2470 t1.toString; |
2575 P._rootHandleUncaughtError(t1, null, t1, t2, s); | 2471 P._rootHandleUncaughtError(t1, null, t1, t2, s); |
2576 } | 2472 } |
2577 | 2473 |
(...skipping 26 matching lines...) Expand all Loading... |
2604 onSuccess.call$1(userCode.call$0()); | 2500 onSuccess.call$1(userCode.call$0()); |
2605 } catch (exception) { | 2501 } catch (exception) { |
2606 t1 = H.unwrapException(exception); | 2502 t1 = H.unwrapException(exception); |
2607 e = t1; | 2503 e = t1; |
2608 s = new H._StackTrace(exception, null); | 2504 s = new H._StackTrace(exception, null); |
2609 onError.call$2(P._asyncError(e, s), s); | 2505 onError.call$2(P._asyncError(e, s), s); |
2610 } | 2506 } |
2611 | 2507 |
2612 }, | 2508 }, |
2613 | 2509 |
2614 _cancelAndError: function(subscription, future) { | 2510 _cancelAndError: function(subscription, future, error, stackTrace) { |
2615 return new P._cancelAndError_closure(subscription, future); | 2511 var cancelFuture, t1; |
| 2512 cancelFuture = subscription.cancel$0(); |
| 2513 t1 = J.getInterceptor(cancelFuture); |
| 2514 if (typeof cancelFuture === "object" && cancelFuture !== null && !!t1.$isFutur
e) |
| 2515 cancelFuture.whenComplete$1(new P._cancelAndError_closure(future, error, sta
ckTrace)); |
| 2516 else |
| 2517 future._completeError$2(error, stackTrace); |
| 2518 }, |
| 2519 |
| 2520 _cancelAndErrorClosure: function(subscription, future) { |
| 2521 return new P._cancelAndErrorClosure_closure(subscription, future); |
2616 }, | 2522 }, |
2617 | 2523 |
2618 Timer_Timer: function(duration, callback) { | 2524 Timer_Timer: function(duration, callback) { |
2619 var t1, t2; | 2525 var t1, t2; |
2620 t1 = $.Zone__current; | 2526 t1 = $.Zone__current; |
2621 if (t1 === C.C__RootZone) { | 2527 if (t1 === C.C__RootZone) { |
2622 t1.toString; | 2528 t1.toString; |
2623 return P._createTimer(duration, callback); | 2529 return P._createTimer(duration, callback); |
2624 } | 2530 } |
2625 t2 = t1.bindCallback$2$runGuarded(callback, true); | 2531 t2 = t1.bindCallback$2$runGuarded(callback, true); |
2626 t1.toString; | 2532 t1.toString; |
2627 return P._createTimer(duration, t2); | 2533 return P._createTimer(duration, t2); |
2628 }, | 2534 }, |
2629 | 2535 |
2630 _createTimer: function(duration, callback) { | 2536 _createTimer: function(duration, callback) { |
2631 var milliseconds = C.JSNumber_methods.$tdiv(duration._duration, 1000); | 2537 var milliseconds = C.JSNumber_methods.$tdiv(duration._duration, 1000); |
2632 return H.TimerImpl$(milliseconds < 0 ? 0 : milliseconds, callback); | 2538 return H.TimerImpl$(milliseconds < 0 ? 0 : milliseconds, callback); |
2633 }, | 2539 }, |
2634 | 2540 |
2635 _rootHandleUncaughtError: function($self, $parent, zone, error, stackTrace) { | 2541 _rootHandleUncaughtError: function($self, $parent, zone, error, stackTrace) { |
2636 P._scheduleAsyncCallback(new P._rootHandleUncaughtError_closure(error, stackTr
ace)); | 2542 P._rootRun($self, null, $self, new P._rootHandleUncaughtError_closure(error, s
tackTrace)); |
2637 }, | 2543 }, |
2638 | 2544 |
2639 _rootRun: function($self, $parent, zone, f) { | 2545 _rootRun: function($self, $parent, zone, f) { |
2640 var old, t1, t2; | 2546 var old, t1, t2; |
2641 t1 = $.Zone__current; | 2547 t1 = $.Zone__current; |
2642 t2 = zone; | 2548 t2 = zone; |
2643 if (t1 == null ? t2 == null : t1 === t2) | 2549 if (t1 == null ? t2 == null : t1 === t2) |
2644 return f.call$0(); | 2550 return f.call$0(); |
2645 old = t1; | 2551 old = t1; |
2646 try { | 2552 try { |
(...skipping 14 matching lines...) Expand all Loading... |
2661 old = t1; | 2567 old = t1; |
2662 try { | 2568 try { |
2663 $.Zone__current = zone; | 2569 $.Zone__current = zone; |
2664 t1 = f.call$1(arg); | 2570 t1 = f.call$1(arg); |
2665 return t1; | 2571 return t1; |
2666 } finally { | 2572 } finally { |
2667 $.Zone__current = old; | 2573 $.Zone__current = old; |
2668 } | 2574 } |
2669 }, | 2575 }, |
2670 | 2576 |
2671 _rootRunBinary: function($self, $parent, zone, f, arg1, arg2) { | |
2672 var old, t1, t2; | |
2673 t1 = $.Zone__current; | |
2674 t2 = zone; | |
2675 if (t1 == null ? t2 == null : t1 === t2) | |
2676 return f.call$2(arg1, arg2); | |
2677 old = t1; | |
2678 try { | |
2679 $.Zone__current = zone; | |
2680 t1 = f.call$2(arg1, arg2); | |
2681 return t1; | |
2682 } finally { | |
2683 $.Zone__current = old; | |
2684 } | |
2685 }, | |
2686 | |
2687 _AsyncError: {"": "Object;error>,stackTrace<", $isError: true}, | 2577 _AsyncError: {"": "Object;error>,stackTrace<", $isError: true}, |
2688 | 2578 |
2689 Future: {"": "Object;", $isFuture: true}, | 2579 Future: {"": "Object;", $isFuture: true}, |
2690 | 2580 |
2691 Future_wait_handleError: {"": "Closure;box_0", | 2581 Future_wait_handleError: {"": "Closure;box_0", |
2692 call$1: function(error) { | 2582 call$1: function(error) { |
2693 var t1 = this.box_0; | 2583 var t1 = this.box_0; |
2694 if (t1.values_1 != null) { | 2584 if (t1.values_1 != null) { |
2695 t1.values_1 = null; | 2585 t1.values_1 = null; |
2696 t1 = t1.completer_0.future; | 2586 t1 = t1.completer_0.future; |
2697 if (t1._state !== 0) | 2587 if (t1._state !== 0) |
2698 H.throwExpression(new P.StateError("Future already completed")); | 2588 H.throwExpression(P.StateError$("Future already completed")); |
2699 t1._asyncCompleteError$2(error, null); | 2589 t1._asyncCompleteError$2(error, null); |
2700 } | 2590 } |
2701 return; | 2591 return; |
2702 } | 2592 }, |
| 2593 $is_args1: true |
2703 }, | 2594 }, |
2704 | 2595 |
2705 Future_wait_closure: {"": "Closure;box_0,pos_1", | 2596 Future_wait_closure: {"": "Closure;box_0,pos_1", |
2706 call$1: function(value) { | 2597 call$1: function(value) { |
2707 var t1, t2, t3; | 2598 var t1, t2, t3; |
2708 t1 = this.box_0; | 2599 t1 = this.box_0; |
2709 t2 = t1.values_1; | 2600 t2 = t1.values_1; |
2710 if (t2 == null) | 2601 if (t2 == null) |
2711 return; | 2602 return; |
2712 t3 = this.pos_1; | 2603 t3 = this.pos_1; |
2713 if (t3 < 0 || t3 >= t2.length) | 2604 if (t3 < 0 || t3 >= t2.length) |
2714 throw H.ioore(t2, t3); | 2605 throw H.ioore(t2, t3); |
2715 t2[t3] = value; | 2606 t2[t3] = value; |
2716 t1.remaining_2 = t1.remaining_2 - 1; | 2607 t1.remaining_2 = t1.remaining_2 - 1; |
2717 if (t1.remaining_2 === 0) { | 2608 if (t1.remaining_2 === 0) { |
2718 t2 = t1.completer_0; | 2609 t2 = t1.completer_0; |
2719 t1 = t1.values_1; | 2610 t1 = t1.values_1; |
2720 t2 = t2.future; | 2611 t2 = t2.future; |
2721 if (t2._state !== 0) | 2612 if (t2._state !== 0) |
2722 H.throwExpression(new P.StateError("Future already completed")); | 2613 H.throwExpression(P.StateError$("Future already completed")); |
2723 t2._asyncComplete$1(t1); | 2614 t2._asyncComplete$1(t1); |
2724 } | 2615 } |
2725 } | 2616 }, |
| 2617 $is_args1: true |
2726 }, | 2618 }, |
2727 | 2619 |
2728 _Completer: {"": "Object;future<"}, | 2620 _Completer: {"": "Object;"}, |
2729 | 2621 |
2730 _AsyncCompleter: {"": "_Completer;future", $as_Completer: null}, | 2622 _AsyncCompleter: {"": "_Completer;future", $as_Completer: null}, |
2731 | 2623 |
2732 _Future: {"": "Object;_state,_zone<,_resultOrListeners,_nextListener@,_onValueCa
llback,_errorTestCallback,_onErrorCallback,_whenCompleteActionCallback", | 2624 _Future: {"": "Object;_state,_zone<,_resultOrListeners,_nextListener@,_onValueCa
llback,_errorTestCallback,_onErrorCallback,_whenCompleteActionCallback", |
2733 get$_isComplete: function() { | 2625 get$_isComplete: function() { |
2734 return this._state >= 4; | 2626 return this._state >= 4; |
2735 }, | 2627 }, |
2736 get$_hasError: function() { | 2628 get$_hasError: function() { |
2737 return this._state === 8; | 2629 return this._state === 8; |
2738 }, | 2630 }, |
(...skipping 24 matching lines...) Expand all Loading... |
2763 return this.then$2$onError(f, null); | 2655 return this.then$2$onError(f, null); |
2764 }, | 2656 }, |
2765 catchError$2$test: function(onError, test) { | 2657 catchError$2$test: function(onError, test) { |
2766 var result = P._Future$_catchError(onError, test, null); | 2658 var result = P._Future$_catchError(onError, test, null); |
2767 this._addListener$1(result); | 2659 this._addListener$1(result); |
2768 return result; | 2660 return result; |
2769 }, | 2661 }, |
2770 catchError$1: function(onError) { | 2662 catchError$1: function(onError) { |
2771 return this.catchError$2$test(onError, null); | 2663 return this.catchError$2$test(onError, null); |
2772 }, | 2664 }, |
| 2665 whenComplete$1: function(action) { |
| 2666 var result = P._Future$_whenComplete(action, H.getRuntimeTypeArgument(this,
"_Future", 0)); |
| 2667 this._addListener$1(result); |
| 2668 return result; |
| 2669 }, |
2773 get$_value: function() { | 2670 get$_value: function() { |
2774 return this._resultOrListeners; | 2671 return this._resultOrListeners; |
2775 }, | 2672 }, |
2776 get$_error: function() { | 2673 get$_error: function() { |
2777 return this._resultOrListeners; | 2674 return this._resultOrListeners; |
2778 }, | 2675 }, |
2779 _setValue$1: function(value) { | 2676 _setValue$1: function(value) { |
2780 this._state = 4; | 2677 this._state = 4; |
2781 this._resultOrListeners = value; | 2678 this._resultOrListeners = value; |
2782 }, | 2679 }, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2819 if (stackTrace != null) | 2716 if (stackTrace != null) |
2820 P._attachStackTrace(error, stackTrace); | 2717 P._attachStackTrace(error, stackTrace); |
2821 listeners = this._state === 2 ? null : this._removeListeners$0(); | 2718 listeners = this._state === 2 ? null : this._removeListeners$0(); |
2822 this._setError$2(error, stackTrace); | 2719 this._setError$2(error, stackTrace); |
2823 P._Future__propagateToListeners(this, listeners); | 2720 P._Future__propagateToListeners(this, listeners); |
2824 }, | 2721 }, |
2825 get$_completeError: function() { | 2722 get$_completeError: function() { |
2826 return new P.BoundClosure$2(this, P._Future.prototype._completeError$2, null
, "_completeError$2"); | 2723 return new P.BoundClosure$2(this, P._Future.prototype._completeError$2, null
, "_completeError$2"); |
2827 }, | 2724 }, |
2828 _asyncComplete$1: function(value) { | 2725 _asyncComplete$1: function(value) { |
2829 var t1, t2; | |
2830 t1 = J.getInterceptor(value); | |
2831 t2 = typeof value === "object" && value !== null && !!t1.$isFuture; | |
2832 if (t2) | |
2833 ; | |
2834 if (t2) | |
2835 t1 = !t1.$is_Future || value._state < 4; | |
2836 else | |
2837 t1 = false; | |
2838 if (t1) { | |
2839 this._complete$1(value); | |
2840 return; | |
2841 } | |
2842 if (this._state !== 0) | 2726 if (this._state !== 0) |
2843 H.throwExpression(P.StateError$("Future already completed")); | 2727 H.throwExpression(P.StateError$("Future already completed")); |
2844 this._state = 1; | 2728 this._state = 1; |
2845 this._zone.toString; | 2729 this._zone.toString; |
2846 P._scheduleAsyncCallback(new P._Future__asyncComplete_closure(this, value)); | 2730 P._scheduleAsyncCallback(new P._Future__asyncComplete_closure(this, value)); |
2847 }, | 2731 }, |
2848 _asyncCompleteError$2: function(error, stackTrace) { | 2732 _asyncCompleteError$2: function(error, stackTrace) { |
2849 if (this._state !== 0) | 2733 if (this._state !== 0) |
2850 H.throwExpression(new P.StateError("Future already completed")); | 2734 H.throwExpression(P.StateError$("Future already completed")); |
2851 this._state = 1; | 2735 this._state = 1; |
2852 this._zone.toString; | 2736 this._zone.toString; |
2853 P._scheduleAsyncCallback(new P._Future__asyncCompleteError_closure(this, err
or, stackTrace)); | 2737 P._scheduleAsyncCallback(new P._Future__asyncCompleteError_closure(this, err
or, stackTrace)); |
2854 }, | 2738 }, |
2855 _async$_Future$immediate$1: function(value, $T) { | 2739 _async$_Future$immediate$1: function(value, $T) { |
2856 this._asyncComplete$1(value); | 2740 this._asyncComplete$1(value); |
2857 }, | 2741 }, |
2858 $is_Future: true, | 2742 $is_Future: true, |
2859 $isFuture: true, | 2743 $isFuture: true, |
2860 static: { | 2744 static: { |
(...skipping 22 matching lines...) Expand all Loading... |
2883 _Future$_catchError: function(onErrorCallback, errorTestCallback, $T) { | 2767 _Future$_catchError: function(onErrorCallback, errorTestCallback, $T) { |
2884 var t1, t2; | 2768 var t1, t2; |
2885 t1 = $.Zone__current; | 2769 t1 = $.Zone__current; |
2886 t2 = P._registerErrorHandler(onErrorCallback, t1); | 2770 t2 = P._registerErrorHandler(onErrorCallback, t1); |
2887 t1.toString; | 2771 t1.toString; |
2888 t2 = new P._Future(0, t1, null, null, null, errorTestCallback, t2, null); | 2772 t2 = new P._Future(0, t1, null, null, null, errorTestCallback, t2, null); |
2889 H.setRuntimeTypeInfo(t2, [$T]); | 2773 H.setRuntimeTypeInfo(t2, [$T]); |
2890 return t2; | 2774 return t2; |
2891 }, | 2775 }, |
2892 | 2776 |
| 2777 _Future$_whenComplete: function(whenCompleteActionCallback, $T) { |
| 2778 var t1 = $.Zone__current; |
| 2779 t1.toString; |
| 2780 t1 = new P._Future(0, t1, null, null, null, null, null, whenCompleteActionCall
back); |
| 2781 H.setRuntimeTypeInfo(t1, [$T]); |
| 2782 return t1; |
| 2783 }, |
| 2784 |
2893 _Future__chainFutures: function(source, target) { | 2785 _Future__chainFutures: function(source, target) { |
2894 var t1; | 2786 var t1; |
2895 target._state = 2; | 2787 target._state = 2; |
2896 t1 = J.getInterceptor(source); | 2788 t1 = J.getInterceptor(source); |
2897 if (typeof source === "object" && source !== null && !!t1.$is_Future) | 2789 if (typeof source === "object" && source !== null && !!t1.$is_Future) |
2898 if (source._state >= 4) | 2790 if (source._state >= 4) |
2899 P._Future__propagateToListeners(source, target); | 2791 P._Future__propagateToListeners(source, target); |
2900 else | 2792 else |
2901 source._addListener$1(target); | 2793 source._addListener$1(target); |
2902 else | 2794 else |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3015 | 2907 |
3016 _Future__addListener_closure: {"": "Closure;this_0,listener_1", | 2908 _Future__addListener_closure: {"": "Closure;this_0,listener_1", |
3017 call$0: function() { | 2909 call$0: function() { |
3018 P._Future__propagateToListeners(this.this_0, this.listener_1); | 2910 P._Future__propagateToListeners(this.this_0, this.listener_1); |
3019 } | 2911 } |
3020 }, | 2912 }, |
3021 | 2913 |
3022 _Future__chainFutures_closure: {"": "Closure;target_0", | 2914 _Future__chainFutures_closure: {"": "Closure;target_0", |
3023 call$1: function(value) { | 2915 call$1: function(value) { |
3024 this.target_0._complete$1(value); | 2916 this.target_0._complete$1(value); |
3025 } | 2917 }, |
| 2918 $is_args1: true |
3026 }, | 2919 }, |
3027 | 2920 |
3028 _Future__chainFutures_closure0: {"": "Closure;target_1", | 2921 _Future__chainFutures_closure0: {"": "Closure;target_1", |
3029 call$2: function(error, stackTrace) { | 2922 call$2: function(error, stackTrace) { |
3030 this.target_1._completeError$2(error, stackTrace); | 2923 this.target_1._completeError$2(error, stackTrace); |
3031 }, | 2924 }, |
3032 call$1: function(error) { | 2925 call$1: function(error) { |
3033 return this.call$2(error, null); | 2926 return this.call$2(error, null); |
3034 }, | 2927 }, |
3035 $is_args2: true | 2928 $is_args2: true, |
| 2929 $is_args1: true |
3036 }, | 2930 }, |
3037 | 2931 |
3038 _Future__asyncComplete_closure: {"": "Closure;this_0,value_1", | 2932 _Future__asyncComplete_closure: {"": "Closure;this_0,value_1", |
3039 call$0: function() { | 2933 call$0: function() { |
3040 this.this_0._complete$1(this.value_1); | 2934 this.this_0._complete$1(this.value_1); |
3041 } | 2935 } |
3042 }, | 2936 }, |
3043 | 2937 |
3044 _Future__asyncCompleteError_closure: {"": "Closure;this_0,error_1,stackTrace_2", | 2938 _Future__asyncCompleteError_closure: {"": "Closure;this_0,error_1,stackTrace_2", |
3045 call$0: function() { | 2939 call$0: function() { |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3122 t2.listenerValueOrError_2 = new P._AsyncError(P._asyncError(e, s), s); | 3016 t2.listenerValueOrError_2 = new P._AsyncError(P._asyncError(e, s), s); |
3123 this.box_1.listenerHasValue_1 = false; | 3017 this.box_1.listenerHasValue_1 = false; |
3124 } | 3018 } |
3125 | 3019 |
3126 } | 3020 } |
3127 }, | 3021 }, |
3128 | 3022 |
3129 _Future__propagateToListeners__closure: {"": "Closure;box_2,listener_6", | 3023 _Future__propagateToListeners__closure: {"": "Closure;box_2,listener_6", |
3130 call$1: function(ignored) { | 3024 call$1: function(ignored) { |
3131 P._Future__propagateToListeners(this.box_2.source_4, this.listener_6); | 3025 P._Future__propagateToListeners(this.box_2.source_4, this.listener_6); |
3132 } | 3026 }, |
| 3027 $is_args1: true |
3133 }, | 3028 }, |
3134 | 3029 |
3135 _Future__propagateToListeners__closure0: {"": "Closure;box_0,listener_7", | 3030 _Future__propagateToListeners__closure0: {"": "Closure;box_0,listener_7", |
3136 call$2: function(error, stackTrace) { | 3031 call$2: function(error, stackTrace) { |
3137 var t1, t2, t3; | 3032 var t1, t2, t3; |
3138 t1 = this.box_0; | 3033 t1 = this.box_0; |
3139 t2 = t1.completeResult_0; | 3034 t2 = t1.completeResult_0; |
3140 t3 = J.getInterceptor(t2); | 3035 t3 = J.getInterceptor(t2); |
3141 if (typeof t2 !== "object" || t2 === null || !t3.$is_Future) { | 3036 if (typeof t2 !== "object" || t2 === null || !t3.$is_Future) { |
3142 t1.completeResult_0 = P._Future$(null); | 3037 t1.completeResult_0 = P._Future$(null); |
3143 t1.completeResult_0._setError$2(error, stackTrace); | 3038 t1.completeResult_0._setError$2(error, stackTrace); |
3144 } | 3039 } |
3145 P._Future__propagateToListeners(t1.completeResult_0, this.listener_7); | 3040 P._Future__propagateToListeners(t1.completeResult_0, this.listener_7); |
3146 }, | 3041 }, |
3147 call$1: function(error) { | 3042 call$1: function(error) { |
3148 return this.call$2(error, null); | 3043 return this.call$2(error, null); |
3149 }, | 3044 }, |
3150 $is_args2: true | 3045 $is_args2: true, |
| 3046 $is_args1: true |
3151 }, | 3047 }, |
3152 | 3048 |
3153 Stream: {"": "Object;", | 3049 Stream: {"": "Object;", |
3154 forEach$1: function(_, action) { | 3050 forEach$1: function(_, action) { |
3155 var t1, future; | 3051 var t1, future; |
3156 t1 = {}; | 3052 t1 = {}; |
3157 future = P._Future$(null); | 3053 future = P._Future$(null); |
3158 t1.subscription_0 = null; | 3054 t1.subscription_0 = null; |
3159 t1.subscription_0 = this.listen$4$cancelOnError$onDone$onError(new P.Stream_
forEach_closure(t1, this, action, future), true, new P.Stream_forEach_closure0(f
uture), future.get$_completeError()); | 3055 t1.subscription_0 = this.listen$4$cancelOnError$onDone$onError(new P.Stream_
forEach_closure(t1, this, action, future), true, new P.Stream_forEach_closure0(f
uture), future.get$_completeError()); |
3160 return future; | 3056 return future; |
3161 }, | 3057 }, |
3162 get$length: function(_) { | 3058 get$length: function(_) { |
3163 var t1, future; | 3059 var t1, future; |
3164 t1 = {}; | 3060 t1 = {}; |
3165 future = P._Future$(J.JSInt); | 3061 future = P._Future$(J.JSInt); |
3166 t1.count_0 = 0; | 3062 t1.count_0 = 0; |
3167 this.listen$4$cancelOnError$onDone$onError(new P.Stream_length_closure(t1),
true, new P.Stream_length_closure0(t1, future), future.get$_completeError()); | 3063 this.listen$4$cancelOnError$onDone$onError(new P.Stream_length_closure(t1),
true, new P.Stream_length_closure0(t1, future), future.get$_completeError()); |
3168 return future; | 3064 return future; |
3169 } | 3065 } |
3170 }, | 3066 }, |
3171 | 3067 |
3172 Stream_forEach_closure: {"": "Closure;box_0,this_1,action_2,future_3", | 3068 Stream_forEach_closure: {"": "Closure;box_0,this_1,action_2,future_3", |
3173 call$1: function(element) { | 3069 call$1: function(element) { |
3174 P._runUserCode(new P.Stream_forEach__closure(this.action_2, element), new P.
Stream_forEach__closure0(), P._cancelAndError(this.box_0.subscription_0, this.fu
ture_3)); | 3070 P._runUserCode(new P.Stream_forEach__closure(this.action_2, element), new P.
Stream_forEach__closure0(), P._cancelAndErrorClosure(this.box_0.subscription_0,
this.future_3)); |
3175 } | 3071 }, |
| 3072 $is_args1: true |
3176 }, | 3073 }, |
3177 | 3074 |
3178 Stream_forEach__closure: {"": "Closure;action_4,element_5", | 3075 Stream_forEach__closure: {"": "Closure;action_4,element_5", |
3179 call$0: function() { | 3076 call$0: function() { |
3180 return this.action_4.call$1(this.element_5); | 3077 return this.action_4.call$1(this.element_5); |
3181 } | 3078 } |
3182 }, | 3079 }, |
3183 | 3080 |
3184 Stream_forEach__closure0: {"": "Closure;", | 3081 Stream_forEach__closure0: {"": "Closure;", |
3185 call$1: function(_) { | 3082 call$1: function(_) { |
3186 } | 3083 }, |
| 3084 $is_args1: true |
3187 }, | 3085 }, |
3188 | 3086 |
3189 Stream_forEach_closure0: {"": "Closure;future_6", | 3087 Stream_forEach_closure0: {"": "Closure;future_6", |
3190 call$0: function() { | 3088 call$0: function() { |
3191 this.future_6._complete$1(null); | 3089 this.future_6._complete$1(null); |
3192 } | 3090 } |
3193 }, | 3091 }, |
3194 | 3092 |
3195 Stream_length_closure: {"": "Closure;box_0", | 3093 Stream_length_closure: {"": "Closure;box_0", |
3196 call$1: function(_) { | 3094 call$1: function(_) { |
3197 var t1 = this.box_0; | 3095 var t1 = this.box_0; |
3198 t1.count_0 = t1.count_0 + 1; | 3096 t1.count_0 = t1.count_0 + 1; |
3199 } | 3097 }, |
| 3098 $is_args1: true |
3200 }, | 3099 }, |
3201 | 3100 |
3202 Stream_length_closure0: {"": "Closure;box_0,future_1", | 3101 Stream_length_closure0: {"": "Closure;box_0,future_1", |
3203 call$0: function() { | 3102 call$0: function() { |
3204 this.future_1._complete$1(this.box_0.count_0); | 3103 this.future_1._complete$1(this.box_0.count_0); |
3205 } | 3104 } |
3206 }, | 3105 }, |
3207 | 3106 |
3208 StreamSubscription: {"": "Object;"}, | 3107 StreamSubscription: {"": "Object;"}, |
3209 | 3108 |
3210 EventSink: {"": "Object;"}, | |
3211 | |
3212 _StreamController: {"": "Object;", | 3109 _StreamController: {"": "Object;", |
3213 get$_pendingEvents: function() { | 3110 get$_pendingEvents: function() { |
3214 if ((this._state & 8) === 0) | 3111 if ((this._state & 8) === 0) |
3215 return this._varData; | 3112 return this._varData; |
3216 return this._varData.get$varData(); | 3113 return this._varData.get$varData(); |
3217 }, | 3114 }, |
3218 _ensurePendingEvents$0: function() { | 3115 _ensurePendingEvents$0: function() { |
3219 if ((this._state & 8) === 0) { | 3116 if ((this._state & 8) === 0) { |
3220 if (this._varData == null) | 3117 if (this._varData == null) |
3221 this._varData = new P._StreamImplEvents(null, null, 0); | 3118 this._varData = new P._StreamImplEvents(null, null, 0); |
3222 return this._varData; | 3119 return this._varData; |
3223 } | 3120 } |
3224 var t1 = this._varData.get$varData(); | 3121 var t1 = this._varData.get$varData(); |
3225 return t1; | 3122 return t1; |
3226 }, | 3123 }, |
3227 get$_subscription: function() { | 3124 get$_subscription: function() { |
3228 if ((this._state & 8) !== 0) | 3125 if ((this._state & 8) !== 0) |
3229 return this._varData.get$varData(); | 3126 return this._varData.get$varData(); |
3230 return this._varData; | 3127 return this._varData; |
3231 }, | 3128 }, |
3232 _badEventState$0: function() { | 3129 _badEventState$0: function() { |
3233 if ((this._state & 4) !== 0) | 3130 if ((this._state & 4) !== 0) |
3234 return new P.StateError("Cannot add event after closing"); | 3131 return new P.StateError("Cannot add event after closing"); |
3235 return new P.StateError("Cannot add event while adding a stream"); | 3132 return new P.StateError("Cannot add event while adding a stream"); |
3236 }, | 3133 }, |
3237 add$1: function(_, value) { | 3134 _ensureDoneFuture$0: function() { |
3238 if (this._state >= 4) | 3135 if (this._doneFuture == null) { |
| 3136 this._doneFuture = P._Future$(null); |
| 3137 if ((this._state & 2) !== 0) |
| 3138 this._doneFuture._complete$1(null); |
| 3139 } |
| 3140 return this._doneFuture; |
| 3141 }, |
| 3142 close$0: function(_) { |
| 3143 var t1 = this._state; |
| 3144 if ((t1 & 4) !== 0) |
| 3145 return this._doneFuture; |
| 3146 if (t1 >= 4) |
3239 throw H.wrapException(this._badEventState$0()); | 3147 throw H.wrapException(this._badEventState$0()); |
3240 this._async$_add$1(value); | 3148 this._state = (t1 | 4) >>> 0; |
3241 }, | 3149 this._ensureDoneFuture$0(); |
3242 addError$2: function(error, stackTrace) { | 3150 t1 = this._state; |
3243 if (this._state >= 4) | 3151 if ((t1 & 1) !== 0) |
3244 throw H.wrapException(this._badEventState$0()); | 3152 this._sendDone$0(); |
3245 this._addError$2(error, stackTrace); | 3153 else if ((t1 & 3) === 0) { |
3246 }, | 3154 t1 = this._ensurePendingEvents$0(); |
3247 addError$1: function(error) { | 3155 t1.add$1(t1, C.C__DelayedDone); |
3248 return this.addError$2(error, null); | 3156 } |
| 3157 return this._doneFuture; |
3249 }, | 3158 }, |
3250 _async$_add$1: function(value) { | 3159 _async$_add$1: function(value) { |
3251 var t1 = this._state; | 3160 var t1 = this._state; |
3252 if ((t1 & 1) !== 0) | 3161 if ((t1 & 1) !== 0) |
3253 this._sendData$1(value); | 3162 this._sendData$1(value); |
3254 else if ((t1 & 3) === 0) { | 3163 else if ((t1 & 3) === 0) { |
3255 t1 = this._ensurePendingEvents$0(); | 3164 t1 = this._ensurePendingEvents$0(); |
3256 t1.add$1(t1, new P._DelayedData(value, null)); | 3165 t1.add$1(t1, new P._DelayedData(value, null)); |
3257 } | 3166 } |
3258 }, | 3167 }, |
3259 _addError$2: function(error, stackTrace) { | |
3260 var t1 = this._state; | |
3261 if ((t1 & 1) !== 0) | |
3262 this._sendError$2(error, stackTrace); | |
3263 else if ((t1 & 3) === 0) { | |
3264 t1 = this._ensurePendingEvents$0(); | |
3265 t1.add$1(t1, new P._DelayedError(error, stackTrace, null)); | |
3266 } | |
3267 }, | |
3268 _subscribe$1: function(cancelOnError) { | 3168 _subscribe$1: function(cancelOnError) { |
3269 var t1, t2, subscription, pendingEvents; | 3169 var t1, t2, subscription, pendingEvents; |
3270 if ((this._state & 3) !== 0) | 3170 if ((this._state & 3) !== 0) |
3271 throw H.wrapException(P.StateError$("Stream has already been listened to."
)); | 3171 throw H.wrapException(P.StateError$("Stream has already been listened to."
)); |
3272 t1 = $.Zone__current; | 3172 t1 = $.Zone__current; |
3273 t2 = cancelOnError ? 1 : 0; | 3173 t2 = cancelOnError ? 1 : 0; |
3274 subscription = new P._ControllerSubscription(this, null, null, null, t1, t2,
null); | 3174 subscription = new P._ControllerSubscription(this, null, null, null, t1, t2,
null, null); |
3275 H.setRuntimeTypeInfo(subscription, [null]); | 3175 H.setRuntimeTypeInfo(subscription, [null]); |
3276 pendingEvents = this.get$_pendingEvents(); | 3176 pendingEvents = this.get$_pendingEvents(); |
3277 this._state = (this._state | 1) >>> 0; | 3177 this._state = (this._state | 1) >>> 0; |
3278 if ((this._state & 8) !== 0) | 3178 if ((this._state & 8) !== 0) |
3279 this._varData.set$varData(subscription); | 3179 this._varData.set$varData(subscription); |
3280 else | 3180 else |
3281 this._varData = subscription; | 3181 this._varData = subscription; |
3282 subscription._setPendingEvents$1(pendingEvents); | 3182 subscription._setPendingEvents$1(pendingEvents); |
3283 subscription._guardCallback$1(new P._StreamController__subscribe_closure(thi
s)); | 3183 subscription._guardCallback$1(new P._StreamController__subscribe_closure(thi
s)); |
3284 return subscription; | 3184 return subscription; |
3285 }, | 3185 }, |
3286 _recordCancel$1: function(subscription) { | 3186 _recordCancel$1: function(subscription) { |
3287 var t1; | 3187 var t1, future; |
3288 if ((this._state & 8) !== 0) | 3188 if ((this._state & 8) !== 0) |
3289 this._varData.cancel$0(); | 3189 this._varData.cancel$0(); |
3290 this._varData = null; | 3190 this._varData = null; |
3291 this._state = (this._state & 4294967286 | 2) >>> 0; | 3191 this._state = (this._state & 4294967286 | 2) >>> 0; |
3292 P._runGuarded(this.get$_onCancel()); | 3192 t1 = new P._StreamController__recordCancel_complete(this); |
3293 t1 = this._doneFuture; | 3193 future = P._runGuarded(this.get$_onCancel()); |
3294 if (t1 != null && t1._state === 0) | 3194 if (future != null) |
3295 t1._asyncComplete$1(null); | 3195 future = future.whenComplete$1(t1); |
| 3196 else |
| 3197 t1.call$0(); |
| 3198 return future; |
3296 } | 3199 } |
3297 }, | 3200 }, |
3298 | 3201 |
3299 _StreamController__subscribe_closure: {"": "Closure;this_0", | 3202 _StreamController__subscribe_closure: {"": "Closure;this_0", |
3300 call$0: function() { | 3203 call$0: function() { |
3301 P._runGuarded(this.this_0.get$_onListen()); | 3204 P._runGuarded(this.this_0.get$_onListen()); |
3302 } | 3205 } |
3303 }, | 3206 }, |
3304 | 3207 |
| 3208 _StreamController__recordCancel_complete: {"": "Closure;this_0", |
| 3209 call$0: function() { |
| 3210 var t1 = this.this_0._doneFuture; |
| 3211 if (t1 != null && t1._state === 0) |
| 3212 t1._asyncComplete$1(null); |
| 3213 } |
| 3214 }, |
| 3215 |
3305 _SyncStreamControllerDispatch: {"": "Object;", | 3216 _SyncStreamControllerDispatch: {"": "Object;", |
3306 _sendData$1: function(data) { | 3217 _sendData$1: function(data) { |
3307 this.get$_subscription()._async$_add$1(data); | 3218 this.get$_subscription()._async$_add$1(data); |
3308 }, | 3219 }, |
3309 _sendError$2: function(error, stackTrace) { | 3220 _sendDone$0: function() { |
3310 this.get$_subscription()._addError$2(error, stackTrace); | 3221 this.get$_subscription()._close$0(); |
3311 } | 3222 } |
3312 }, | 3223 }, |
3313 | 3224 |
3314 _AsyncStreamControllerDispatch: {"": "Object;", | 3225 _AsyncStreamControllerDispatch: {"": "Object;", |
3315 _sendData$1: function(data) { | 3226 _sendData$1: function(data) { |
3316 this.get$_subscription()._addPending$1(new P._DelayedData(data, null)); | 3227 this.get$_subscription()._addPending$1(new P._DelayedData(data, null)); |
3317 }, | 3228 }, |
3318 _sendError$2: function(error, stackTrace) { | 3229 _sendDone$0: function() { |
3319 this.get$_subscription()._addPending$1(new P._DelayedError(error, stackTrace
, null)); | 3230 this.get$_subscription()._addPending$1(C.C__DelayedDone); |
3320 } | 3231 } |
3321 }, | 3232 }, |
3322 | 3233 |
3323 _AsyncStreamController: {"": "_StreamController__AsyncStreamControllerDispatch;_
onListen<,_onPause<,_onResume<,_onCancel<,_varData,_state,_doneFuture"}, | 3234 _AsyncStreamController: {"": "_StreamController__AsyncStreamControllerDispatch;_
onListen<,_onPause<,_onResume<,_onCancel<,_varData,_state,_doneFuture"}, |
3324 | 3235 |
3325 _StreamController__AsyncStreamControllerDispatch: {"": "_StreamController+_Async
StreamControllerDispatch;"}, | 3236 _StreamController__AsyncStreamControllerDispatch: {"": "_StreamController+_Async
StreamControllerDispatch;"}, |
3326 | 3237 |
3327 _SyncStreamController: {"": "_StreamController__SyncStreamControllerDispatch;_on
Listen<,_onPause<,_onResume<,_onCancel<,_varData,_state,_doneFuture"}, | 3238 _SyncStreamController: {"": "_StreamController__SyncStreamControllerDispatch;_on
Listen<,_onPause<,_onResume<,_onCancel<,_varData,_state,_doneFuture"}, |
3328 | 3239 |
3329 _StreamController__SyncStreamControllerDispatch: {"": "_StreamController+_SyncSt
reamControllerDispatch;"}, | 3240 _StreamController__SyncStreamControllerDispatch: {"": "_StreamController+_SyncSt
reamControllerDispatch;"}, |
3330 | 3241 |
3331 _ControllerStream: {"": "_StreamImpl;_controller", | 3242 _ControllerStream: {"": "_StreamImpl;_async$_controller", |
3332 _createSubscription$1: function(cancelOnError) { | 3243 _createSubscription$1: function(cancelOnError) { |
3333 return this._controller._subscribe$1(cancelOnError); | 3244 return this._async$_controller._subscribe$1(cancelOnError); |
3334 }, | 3245 }, |
3335 get$hashCode: function(_) { | 3246 get$hashCode: function(_) { |
3336 return (H.Primitives_objectHashCode(this._controller) ^ 892482866) >>> 0; | 3247 return (H.Primitives_objectHashCode(this._async$_controller) ^ 892482866) >>
> 0; |
3337 }, | 3248 }, |
3338 $eq: function(_, other) { | 3249 $eq: function(_, other) { |
3339 var t1; | 3250 var t1; |
3340 if (other == null) | 3251 if (other == null) |
3341 return false; | 3252 return false; |
3342 if (this === other) | 3253 if (this === other) |
3343 return true; | 3254 return true; |
3344 t1 = J.getInterceptor(other); | 3255 t1 = J.getInterceptor(other); |
3345 if (typeof other !== "object" || other === null || !t1.$is_ControllerStream) | 3256 if (typeof other !== "object" || other === null || !t1.$is_ControllerStream) |
3346 return false; | 3257 return false; |
3347 return other._controller === this._controller; | 3258 return other._async$_controller === this._async$_controller; |
3348 }, | 3259 }, |
3349 $is_ControllerStream: true, | 3260 $is_ControllerStream: true, |
3350 $as_StreamImpl: null | 3261 $as_StreamImpl: null |
3351 }, | 3262 }, |
3352 | 3263 |
3353 _ControllerSubscription: {"": "_BufferingStreamSubscription;_controller,_onData,
_onError,_onDone,_zone,_state,_pending", | 3264 _ControllerSubscription: {"": "_BufferingStreamSubscription;_async$_controller,_
async$_onData,_onError,_onDone,_zone,_state,_cancelFuture,_pending", |
3354 _onCancel$0: function() { | 3265 _onCancel$0: function() { |
3355 this._controller._recordCancel$1(this); | 3266 return this._async$_controller._recordCancel$1(this); |
3356 }, | 3267 }, |
3357 _onPause$0: function() { | 3268 _onPause$0: function() { |
3358 var t1, addState; | 3269 var t1, addState; |
3359 t1 = this._controller; | 3270 t1 = this._async$_controller; |
3360 if ((t1._state & 8) !== 0) { | 3271 if ((t1._state & 8) !== 0) { |
3361 addState = t1._varData; | 3272 addState = t1._varData; |
3362 addState.pause$0(addState); | 3273 addState.pause$0(addState); |
3363 } | 3274 } |
3364 P._runGuarded(t1.get$_onPause()); | 3275 P._runGuarded(t1.get$_onPause()); |
3365 }, | 3276 }, |
3366 get$_onPause: function() { | 3277 get$_onPause: function() { |
3367 return new P.BoundClosure$0(this, P._ControllerSubscription.prototype._onPau
se$0, null, "_onPause$0"); | 3278 return new P.BoundClosure$0(this, P._ControllerSubscription.prototype._onPau
se$0, null, "_onPause$0"); |
3368 }, | 3279 }, |
3369 _onResume$0: function() { | 3280 _onResume$0: function() { |
3370 var t1 = this._controller; | 3281 var t1 = this._async$_controller; |
3371 if ((t1._state & 8) !== 0) | 3282 if ((t1._state & 8) !== 0) |
3372 t1._varData.resume$0(); | 3283 t1._varData.resume$0(); |
3373 P._runGuarded(t1.get$_onResume()); | 3284 P._runGuarded(t1.get$_onResume()); |
3374 }, | 3285 }, |
3375 get$_onResume: function() { | 3286 get$_onResume: function() { |
3376 return new P.BoundClosure$0(this, P._ControllerSubscription.prototype._onRes
ume$0, null, "_onResume$0"); | 3287 return new P.BoundClosure$0(this, P._ControllerSubscription.prototype._onRes
ume$0, null, "_onResume$0"); |
3377 }, | 3288 }, |
3378 $as_BufferingStreamSubscription: null | 3289 $as_BufferingStreamSubscription: null |
3379 }, | 3290 }, |
3380 | 3291 |
3381 _EventSink: {"": "Object;"}, | 3292 _EventSink: {"": "Object;"}, |
3382 | 3293 |
3383 _BufferingStreamSubscription: {"": "Object;_onData,_onError,_onDone,_zone<,_stat
e,_pending", | 3294 _BufferingStreamSubscription: {"": "Object;_async$_onData,_onError,_onDone,_zone
<,_state,_cancelFuture,_pending", |
3384 _setPendingEvents$1: function(pendingEvents) { | 3295 _setPendingEvents$1: function(pendingEvents) { |
3385 if (pendingEvents == null) | 3296 if (pendingEvents == null) |
3386 return; | 3297 return; |
3387 this._pending = pendingEvents; | 3298 this._pending = pendingEvents; |
3388 if (!pendingEvents.get$isEmpty(pendingEvents)) { | 3299 if (!pendingEvents.get$isEmpty(pendingEvents)) { |
3389 this._state = (this._state | 32) >>> 0; | 3300 this._state = (this._state | 64) >>> 0; |
3390 this._pending.schedule$1(this); | 3301 this._pending.schedule$1(this); |
3391 } | 3302 } |
3392 }, | 3303 }, |
3393 onData$1: function(handleData) { | 3304 onData$1: function(handleData) { |
3394 $.Zone__current.toString; | 3305 $.Zone__current.toString; |
3395 this._onData = handleData; | 3306 this._async$_onData = handleData; |
3396 }, | 3307 }, |
3397 onError$1: function(_, handleError) { | 3308 onError$1: function(_, handleError) { |
3398 this._onError = P._registerErrorHandler(handleError, $.Zone__current); | 3309 this._onError = P._registerErrorHandler(handleError, $.Zone__current); |
3399 }, | 3310 }, |
3400 onDone$1: function(handleDone) { | 3311 onDone$1: function(handleDone) { |
3401 if (handleDone == null) | |
3402 handleDone = P._nullDoneHandler$closure; | |
3403 $.Zone__current.toString; | 3312 $.Zone__current.toString; |
3404 this._onDone = handleDone; | 3313 this._onDone = handleDone; |
3405 }, | 3314 }, |
3406 pause$1: function(_, resumeSignal) { | 3315 pause$1: function(_, resumeSignal) { |
3407 var t1 = this._state; | 3316 var t1 = this._state; |
3408 if ((t1 & 8) !== 0) | 3317 if ((t1 & 8) !== 0) |
3409 return; | 3318 return; |
3410 this._state = (t1 + 64 | 4) >>> 0; | 3319 this._state = (t1 + 128 | 4) >>> 0; |
3411 if (t1 < 64 && this._pending != null) | 3320 if (t1 < 128 && this._pending != null) |
3412 this._pending.cancelSchedule$0(); | 3321 this._pending.cancelSchedule$0(); |
3413 if ((t1 & 4) === 0 && (this._state & 16) === 0) | 3322 if ((t1 & 4) === 0 && (this._state & 32) === 0) |
3414 this._guardCallback$1(this.get$_onPause()); | 3323 this._guardCallback$1(this.get$_onPause()); |
3415 }, | 3324 }, |
3416 pause$0: function($receiver) { | 3325 pause$0: function($receiver) { |
3417 return this.pause$1($receiver, null); | 3326 return this.pause$1($receiver, null); |
3418 }, | 3327 }, |
3419 resume$0: function() { | 3328 resume$0: function() { |
3420 var t1, t2; | 3329 var t1, t2; |
3421 t1 = this._state; | 3330 t1 = this._state; |
3422 if ((t1 & 8) !== 0) | 3331 if ((t1 & 8) !== 0) |
3423 return; | 3332 return; |
3424 if (t1 >= 64) { | 3333 if (t1 >= 128) { |
3425 this._state = t1 - 64; | 3334 this._state = t1 - 128; |
3426 t1 = this._state; | 3335 t1 = this._state; |
3427 if (t1 < 64) { | 3336 if (t1 < 128) { |
3428 if ((t1 & 32) !== 0) { | 3337 if ((t1 & 64) !== 0) { |
3429 t2 = this._pending; | 3338 t2 = this._pending; |
3430 t2 = !t2.get$isEmpty(t2); | 3339 t2 = !t2.get$isEmpty(t2); |
3431 } else | 3340 } else |
3432 t2 = false; | 3341 t2 = false; |
3433 if (t2) | 3342 if (t2) |
3434 this._pending.schedule$1(this); | 3343 this._pending.schedule$1(this); |
3435 else { | 3344 else { |
3436 this._state = (t1 & 4294967291) >>> 0; | 3345 this._state = (t1 & 4294967291) >>> 0; |
3437 if ((this._state & 16) === 0) | 3346 if ((this._state & 32) === 0) |
3438 this._guardCallback$1(this.get$_onResume()); | 3347 this._guardCallback$1(this.get$_onResume()); |
3439 } | 3348 } |
3440 } | 3349 } |
3441 } | 3350 } |
3442 }, | 3351 }, |
3443 cancel$0: function() { | 3352 cancel$0: function() { |
| 3353 this._state = (this._state & 4294967279) >>> 0; |
3444 if ((this._state & 8) !== 0) | 3354 if ((this._state & 8) !== 0) |
3445 return; | 3355 return this._cancelFuture; |
3446 this._cancel$0(); | 3356 this._cancel$0(); |
3447 var t1 = this._state; | 3357 return this._cancelFuture; |
3448 if ((t1 & 16) === 0) { | |
3449 this._state = (t1 | 16) >>> 0; | |
3450 this._onCancel$0(); | |
3451 this._pending = null; | |
3452 this._state = (this._state & 4294967279) >>> 0; | |
3453 } | |
3454 }, | 3358 }, |
3455 get$_mayResumeInput: function() { | 3359 get$_mayResumeInput: function() { |
3456 if (this._state < 64) { | 3360 if (this._state < 128) { |
3457 var t1 = this._pending; | 3361 var t1 = this._pending; |
3458 t1 = t1 == null || t1.get$isEmpty(t1); | 3362 t1 = t1 == null || t1.get$isEmpty(t1); |
3459 } else | 3363 } else |
3460 t1 = false; | 3364 t1 = false; |
3461 return t1; | 3365 return t1; |
3462 }, | 3366 }, |
3463 _cancel$0: function() { | 3367 _cancel$0: function() { |
3464 this._state = (this._state | 8) >>> 0; | 3368 this._state = (this._state | 8) >>> 0; |
3465 if ((this._state & 32) !== 0) | 3369 if ((this._state & 64) !== 0) |
3466 this._pending.cancelSchedule$0(); | 3370 this._pending.cancelSchedule$0(); |
| 3371 if ((this._state & 32) === 0) |
| 3372 this._pending = null; |
| 3373 this._cancelFuture = this._onCancel$0(); |
3467 }, | 3374 }, |
3468 _async$_add$1: function(data) { | 3375 _async$_add$1: function(data) { |
3469 var t1 = this._state; | 3376 var t1 = this._state; |
3470 if ((t1 & 8) !== 0) | 3377 if ((t1 & 8) !== 0) |
3471 return; | 3378 return; |
3472 if (t1 < 16) | 3379 if (t1 < 32) |
3473 this._sendData$1(data); | 3380 this._sendData$1(data); |
3474 else | 3381 else |
3475 this._addPending$1(new P._DelayedData(data, null)); | 3382 this._addPending$1(new P._DelayedData(data, null)); |
3476 }, | 3383 }, |
3477 _addError$2: function(error, stackTrace) { | 3384 _close$0: function() { |
3478 var t1 = this._state; | 3385 var t1 = this._state; |
3479 if ((t1 & 8) !== 0) | 3386 if ((t1 & 8) !== 0) |
3480 return; | 3387 return; |
3481 if (t1 < 16) | 3388 this._state = (t1 | 2) >>> 0; |
3482 this._sendError$2(error, stackTrace); | 3389 if (this._state < 32) |
| 3390 this._sendDone$0(); |
3483 else | 3391 else |
3484 this._addPending$1(new P._DelayedError(error, stackTrace, null)); | 3392 this._addPending$1(C.C__DelayedDone); |
3485 }, | 3393 }, |
3486 _onPause$0: function() { | 3394 _onPause$0: function() { |
3487 }, | 3395 }, |
3488 get$_onPause: function() { | 3396 get$_onPause: function() { |
3489 return new P.BoundClosure$0(this, P._BufferingStreamSubscription.prototype._
onPause$0, null, "_onPause$0"); | 3397 return new P.BoundClosure$0(this, P._BufferingStreamSubscription.prototype._
onPause$0, null, "_onPause$0"); |
3490 }, | 3398 }, |
3491 _onResume$0: function() { | 3399 _onResume$0: function() { |
3492 }, | 3400 }, |
3493 get$_onResume: function() { | 3401 get$_onResume: function() { |
3494 return new P.BoundClosure$0(this, P._BufferingStreamSubscription.prototype._
onResume$0, null, "_onResume$0"); | 3402 return new P.BoundClosure$0(this, P._BufferingStreamSubscription.prototype._
onResume$0, null, "_onResume$0"); |
3495 }, | 3403 }, |
3496 _onCancel$0: function() { | 3404 _onCancel$0: function() { |
3497 }, | 3405 }, |
3498 _addPending$1: function($event) { | 3406 _addPending$1: function($event) { |
3499 var pending, t1; | 3407 var pending, t1; |
3500 pending = this._pending; | 3408 pending = this._pending; |
3501 if (pending == null) { | 3409 if (pending == null) { |
3502 pending = new P._StreamImplEvents(null, null, 0); | 3410 pending = new P._StreamImplEvents(null, null, 0); |
3503 this._pending = pending; | 3411 this._pending = pending; |
3504 } | 3412 } |
3505 pending.add$1(pending, $event); | 3413 pending.add$1(pending, $event); |
3506 t1 = this._state; | 3414 t1 = this._state; |
3507 if ((t1 & 32) === 0) { | 3415 if ((t1 & 64) === 0) { |
3508 this._state = (t1 | 32) >>> 0; | 3416 this._state = (t1 | 64) >>> 0; |
3509 if (this._state < 64) | 3417 if (this._state < 128) |
3510 this._pending.schedule$1(this); | 3418 this._pending.schedule$1(this); |
3511 } | 3419 } |
3512 }, | 3420 }, |
3513 _sendData$1: function(data) { | 3421 _sendData$1: function(data) { |
3514 var t1 = this._state; | 3422 var t1 = this._state; |
3515 this._state = (t1 | 16) >>> 0; | 3423 this._state = (t1 | 32) >>> 0; |
3516 this._zone.runUnaryGuarded$2(this._onData, data); | 3424 this._zone.runUnaryGuarded$2(this._async$_onData, data); |
3517 this._state = (this._state & 4294967279) >>> 0; | 3425 this._state = (this._state & 4294967263) >>> 0; |
3518 this._checkState$1((t1 & 4) !== 0); | 3426 this._checkState$1((t1 & 4) !== 0); |
3519 }, | 3427 }, |
3520 _sendError$2: function(error, stackTrace) { | 3428 _sendDone$0: function() { |
3521 var t1, t2, t3, t4; | 3429 var t1, t2, t3; |
3522 t1 = this._state; | 3430 t1 = new P._BufferingStreamSubscription__sendDone_sendDone(this); |
3523 this._state = (t1 | 16) >>> 0; | 3431 this._cancel$0(); |
3524 t2 = this._zone; | 3432 this._state = (this._state | 16) >>> 0; |
3525 t3 = $.Zone__current; | 3433 t2 = this._cancelFuture; |
3526 t2.toString; | 3434 t3 = J.getInterceptor(t2); |
3527 t3.toString; | 3435 if (typeof t2 === "object" && t2 !== null && !!t3.$isFuture) |
3528 if (t3 == null ? t2 != null : t3 !== t2) | 3436 t2.whenComplete$1(t1); |
3529 P._rootHandleUncaughtError(t3, null, t3, error, stackTrace); | 3437 else |
3530 else { | 3438 t1.call$0(); |
3531 t3 = this._onError; | |
3532 t4 = J.getInterceptor(t3); | |
3533 if (!!t4.$is_args2) | |
3534 t2.runBinaryGuarded$3(t3, error, stackTrace); | |
3535 else | |
3536 t2.runUnaryGuarded$2(t3, error); | |
3537 } | |
3538 this._state = (this._state & 4294967279) >>> 0; | |
3539 if ((this._state & 1) !== 0) | |
3540 this._cancel$0(); | |
3541 this._checkState$1((t1 & 4) !== 0); | |
3542 }, | 3439 }, |
3543 _guardCallback$1: function(callback) { | 3440 _guardCallback$1: function(callback) { |
3544 var t1 = this._state; | 3441 var t1 = this._state; |
3545 this._state = (t1 | 16) >>> 0; | 3442 this._state = (t1 | 32) >>> 0; |
3546 callback.call$0(); | 3443 callback.call$0(); |
3547 this._state = (this._state & 4294967279) >>> 0; | 3444 this._state = (this._state & 4294967263) >>> 0; |
3548 this._checkState$1((t1 & 4) !== 0); | 3445 this._checkState$1((t1 & 4) !== 0); |
3549 }, | 3446 }, |
3550 _checkState$1: function(wasInputPaused) { | 3447 _checkState$1: function(wasInputPaused) { |
3551 var t1, t2, isInputPaused; | 3448 var t1, t2, isInputPaused; |
3552 t1 = this._state; | 3449 t1 = this._state; |
3553 if ((t1 & 32) !== 0) { | 3450 if ((t1 & 64) !== 0) { |
3554 t2 = this._pending; | 3451 t2 = this._pending; |
3555 t2 = t2.get$isEmpty(t2); | 3452 t2 = t2.get$isEmpty(t2); |
3556 } else | 3453 } else |
3557 t2 = false; | 3454 t2 = false; |
3558 if (t2) { | 3455 if (t2) { |
3559 this._state = (t1 & 4294967263) >>> 0; | 3456 this._state = (t1 & 4294967231) >>> 0; |
3560 if ((this._state & 4) !== 0 && this.get$_mayResumeInput()) | 3457 if ((this._state & 4) !== 0 && this.get$_mayResumeInput()) |
3561 this._state = (this._state & 4294967291) >>> 0; | 3458 this._state = (this._state & 4294967291) >>> 0; |
3562 } | 3459 } |
3563 for (; true; wasInputPaused = isInputPaused) { | 3460 for (; true; wasInputPaused = isInputPaused) { |
3564 t1 = this._state; | 3461 t1 = this._state; |
3565 if ((t1 & 8) !== 0) { | 3462 if ((t1 & 8) !== 0) { |
3566 this._onCancel$0(); | |
3567 this._pending = null; | 3463 this._pending = null; |
3568 return; | 3464 return; |
3569 } | 3465 } |
3570 isInputPaused = (t1 & 4) !== 0; | 3466 isInputPaused = (t1 & 4) !== 0; |
3571 if (wasInputPaused === isInputPaused) | 3467 if (wasInputPaused === isInputPaused) |
3572 break; | 3468 break; |
3573 this._state = (t1 ^ 16) >>> 0; | 3469 this._state = (t1 ^ 32) >>> 0; |
3574 if (isInputPaused) | 3470 if (isInputPaused) |
3575 this._onPause$0(); | 3471 this._onPause$0(); |
3576 else | 3472 else |
3577 this._onResume$0(); | 3473 this._onResume$0(); |
3578 this._state = (this._state & 4294967279) >>> 0; | 3474 this._state = (this._state & 4294967263) >>> 0; |
3579 } | 3475 } |
3580 t1 = this._state; | 3476 t1 = this._state; |
3581 if ((t1 & 32) !== 0 && t1 < 64) | 3477 if ((t1 & 64) !== 0 && t1 < 128) |
3582 this._pending.schedule$1(this); | 3478 this._pending.schedule$1(this); |
3583 }, | 3479 }, |
3584 static: { | 3480 static: { |
3585 "": "_BufferingStreamSubscription__STATE_CANCEL_ON_ERROR,_BufferingStreamSubscri
ption__STATE_CLOSED,_BufferingStreamSubscription__STATE_INPUT_PAUSED,_BufferingS
treamSubscription__STATE_CANCELED,_BufferingStreamSubscription__STATE_IN_CALLBAC
K,_BufferingStreamSubscription__STATE_HAS_PENDING,_BufferingStreamSubscription__
STATE_PAUSE_COUNT,_BufferingStreamSubscription__STATE_PAUSE_COUNT_SHIFT", | 3481 "": "_BufferingStreamSubscription__STATE_CANCEL_ON_ERROR,_BufferingStreamSubscri
ption__STATE_CLOSED,_BufferingStreamSubscription__STATE_INPUT_PAUSED,_BufferingS
treamSubscription__STATE_CANCELED,_BufferingStreamSubscription__STATE_WAIT_FOR_C
ANCEL,_BufferingStreamSubscription__STATE_IN_CALLBACK,_BufferingStreamSubscripti
on__STATE_HAS_PENDING,_BufferingStreamSubscription__STATE_PAUSE_COUNT,_Buffering
StreamSubscription__STATE_PAUSE_COUNT_SHIFT", |
3586 } | 3482 } |
3587 | 3483 |
3588 }, | 3484 }, |
3589 | 3485 |
| 3486 _BufferingStreamSubscription__sendDone_sendDone: {"": "Closure;this_0", |
| 3487 call$0: function() { |
| 3488 var t1, t2; |
| 3489 t1 = this.this_0; |
| 3490 t2 = t1._state; |
| 3491 if ((t2 & 16) === 0) |
| 3492 return; |
| 3493 t1._state = (t2 | 42) >>> 0; |
| 3494 t1._zone.runGuarded$1(t1._onDone); |
| 3495 t1._state = (t1._state & 4294967263) >>> 0; |
| 3496 } |
| 3497 }, |
| 3498 |
3590 _StreamImpl: {"": "Stream;", | 3499 _StreamImpl: {"": "Stream;", |
3591 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone,
onError) { | 3500 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone,
onError) { |
3592 var subscription = this._createSubscription$1(true === cancelOnError); | 3501 var subscription = this._createSubscription$1(true === cancelOnError); |
3593 subscription.onData$1(onData); | 3502 subscription.onData$1(onData); |
3594 subscription.onError$1(subscription, onError); | 3503 subscription.onError$1(subscription, onError); |
3595 subscription.onDone$1(onDone); | 3504 subscription.onDone$1(onDone); |
3596 return subscription; | 3505 return subscription; |
3597 }, | 3506 }, |
3598 listen$2$onError: function(onData, onError) { | |
3599 return this.listen$4$cancelOnError$onDone$onError(onData, null, null, onErro
r); | |
3600 }, | |
3601 _createSubscription$1: function(cancelOnError) { | 3507 _createSubscription$1: function(cancelOnError) { |
3602 var t1, t2; | 3508 var t1, t2; |
3603 t1 = $.Zone__current; | 3509 t1 = $.Zone__current; |
3604 t2 = cancelOnError ? 1 : 0; | 3510 t2 = cancelOnError ? 1 : 0; |
3605 return new P._BufferingStreamSubscription(null, null, null, t1, t2, null); | 3511 return new P._BufferingStreamSubscription(null, null, null, t1, t2, null, nu
ll); |
3606 }, | 3512 }, |
3607 $asStream: null | 3513 $asStream: null |
3608 }, | 3514 }, |
3609 | 3515 |
3610 _DelayedEvent: {"": "Object;next@"}, | 3516 _DelayedEvent: {"": "Object;next@"}, |
3611 | 3517 |
3612 _DelayedData: {"": "_DelayedEvent;value,next", | 3518 _DelayedData: {"": "_DelayedEvent;value,next", |
3613 perform$1: function(dispatch) { | 3519 perform$1: function(dispatch) { |
3614 dispatch._sendData$1(this.value); | 3520 dispatch._sendData$1(this.value); |
3615 } | 3521 } |
3616 }, | 3522 }, |
3617 | 3523 |
3618 _DelayedError: {"": "_DelayedEvent;error>,stackTrace<,next", | 3524 _DelayedDone: {"": "Object;", |
3619 perform$1: function(dispatch) { | 3525 perform$1: function(dispatch) { |
3620 dispatch._sendError$2(this.error, this.stackTrace); | 3526 dispatch._sendDone$0(); |
| 3527 }, |
| 3528 get$next: function() { |
| 3529 return; |
| 3530 }, |
| 3531 set$next: function(_) { |
| 3532 throw H.wrapException(P.StateError$("No events after a done.")); |
3621 } | 3533 } |
3622 }, | 3534 }, |
3623 | 3535 |
3624 _PendingEvents: {"": "Object;", | 3536 _PendingEvents: {"": "Object;", |
3625 schedule$1: function(dispatch) { | 3537 schedule$1: function(dispatch) { |
3626 var t1 = this._state; | 3538 var t1 = this._state; |
3627 if (t1 === 1) | 3539 if (t1 === 1) |
3628 return; | 3540 return; |
3629 if (t1 >= 1) { | 3541 if (t1 >= 1) { |
3630 this._state = 1; | 3542 this._state = 1; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3667 }, | 3579 }, |
3668 handleNext$1: function(dispatch) { | 3580 handleNext$1: function(dispatch) { |
3669 var $event = this.firstPendingEvent; | 3581 var $event = this.firstPendingEvent; |
3670 this.firstPendingEvent = $event.get$next(); | 3582 this.firstPendingEvent = $event.get$next(); |
3671 if (this.firstPendingEvent == null) | 3583 if (this.firstPendingEvent == null) |
3672 this.lastPendingEvent = null; | 3584 this.lastPendingEvent = null; |
3673 $event.perform$1(dispatch); | 3585 $event.perform$1(dispatch); |
3674 } | 3586 } |
3675 }, | 3587 }, |
3676 | 3588 |
3677 _cancelAndError_closure: {"": "Closure;subscription_0,future_1", | 3589 _cancelAndError_closure: {"": "Closure;future_0,error_1,stackTrace_2", |
| 3590 call$0: function() { |
| 3591 return this.future_0._completeError$2(this.error_1, this.stackTrace_2); |
| 3592 } |
| 3593 }, |
| 3594 |
| 3595 _cancelAndErrorClosure_closure: {"": "Closure;subscription_0,future_1", |
3678 call$2: function(error, stackTrace) { | 3596 call$2: function(error, stackTrace) { |
3679 this.subscription_0.cancel$0(); | 3597 return P._cancelAndError(this.subscription_0, this.future_1, error, stackTra
ce); |
3680 this.future_1._completeError$2(error, stackTrace); | |
3681 }, | 3598 }, |
3682 $is_args2: true | 3599 $is_args2: true |
3683 }, | 3600 }, |
3684 | 3601 |
3685 _BaseZone: {"": "Object;", | 3602 _BaseZone: {"": "Object;", |
3686 runGuarded$1: function(f) { | 3603 runGuarded$1: function(f) { |
3687 var e, s, t1, exception; | 3604 var e, s, t1, exception; |
3688 try { | 3605 try { |
3689 t1 = this.run$1(f); | 3606 t1 = this.run$1(f); |
3690 return t1; | 3607 return t1; |
(...skipping 11 matching lines...) Expand all Loading... |
3702 t1 = this.runUnary$2(f, arg); | 3619 t1 = this.runUnary$2(f, arg); |
3703 return t1; | 3620 return t1; |
3704 } catch (exception) { | 3621 } catch (exception) { |
3705 t1 = H.unwrapException(exception); | 3622 t1 = H.unwrapException(exception); |
3706 e = t1; | 3623 e = t1; |
3707 s = new H._StackTrace(exception, null); | 3624 s = new H._StackTrace(exception, null); |
3708 return this.handleUncaughtError$2(e, s); | 3625 return this.handleUncaughtError$2(e, s); |
3709 } | 3626 } |
3710 | 3627 |
3711 }, | 3628 }, |
3712 runBinaryGuarded$3: function(f, arg1, arg2) { | |
3713 var e, s, t1, exception; | |
3714 try { | |
3715 t1 = this.runBinary$3(f, arg1, arg2); | |
3716 return t1; | |
3717 } catch (exception) { | |
3718 t1 = H.unwrapException(exception); | |
3719 e = t1; | |
3720 s = new H._StackTrace(exception, null); | |
3721 return this.handleUncaughtError$2(e, s); | |
3722 } | |
3723 | |
3724 }, | |
3725 bindCallback$2$runGuarded: function(f, runGuarded) { | 3629 bindCallback$2$runGuarded: function(f, runGuarded) { |
3726 var registered = this.registerCallback$1(f); | 3630 var registered = this.registerCallback$1(f); |
3727 if (runGuarded) | 3631 if (runGuarded) |
3728 return new P._BaseZone_bindCallback_closure(this, registered); | 3632 return new P._BaseZone_bindCallback_closure(this, registered); |
3729 else | 3633 else |
3730 return new P._BaseZone_bindCallback_closure0(this, registered); | 3634 return new P._BaseZone_bindCallback_closure0(this, registered); |
| 3635 }, |
| 3636 bindUnaryCallback$2$runGuarded: function(f, runGuarded) { |
| 3637 var registered = this.registerUnaryCallback$1(f); |
| 3638 if (runGuarded) |
| 3639 return new P._BaseZone_bindUnaryCallback_closure(this, registered); |
| 3640 else |
| 3641 return new P._BaseZone_bindUnaryCallback_closure0(this, registered); |
3731 } | 3642 } |
3732 }, | 3643 }, |
3733 | 3644 |
3734 _BaseZone_bindCallback_closure: {"": "Closure;this_0,registered_1", | 3645 _BaseZone_bindCallback_closure: {"": "Closure;this_0,registered_1", |
3735 call$0: function() { | 3646 call$0: function() { |
3736 return this.this_0.runGuarded$1(this.registered_1); | 3647 return this.this_0.runGuarded$1(this.registered_1); |
3737 } | 3648 } |
3738 }, | 3649 }, |
3739 | 3650 |
3740 _BaseZone_bindCallback_closure0: {"": "Closure;this_2,registered_3", | 3651 _BaseZone_bindCallback_closure0: {"": "Closure;this_2,registered_3", |
3741 call$0: function() { | 3652 call$0: function() { |
3742 return this.this_2.run$1(this.registered_3); | 3653 return this.this_2.run$1(this.registered_3); |
3743 } | 3654 } |
3744 }, | 3655 }, |
3745 | 3656 |
| 3657 _BaseZone_bindUnaryCallback_closure: {"": "Closure;this_0,registered_1", |
| 3658 call$1: function(arg) { |
| 3659 return this.this_0.runUnaryGuarded$2(this.registered_1, arg); |
| 3660 }, |
| 3661 $is_args1: true |
| 3662 }, |
| 3663 |
| 3664 _BaseZone_bindUnaryCallback_closure0: {"": "Closure;this_2,registered_3", |
| 3665 call$1: function(arg) { |
| 3666 return this.this_2.runUnary$2(this.registered_3, arg); |
| 3667 }, |
| 3668 $is_args1: true |
| 3669 }, |
| 3670 |
3746 _rootHandleUncaughtError_closure: {"": "Closure;error_0,stackTrace_1", | 3671 _rootHandleUncaughtError_closure: {"": "Closure;error_0,stackTrace_1", |
3747 call$0: function() { | 3672 call$0: function() { |
| 3673 P._scheduleAsyncCallback(new P._rootHandleUncaughtError__closure(this.error_
0, this.stackTrace_1)); |
| 3674 } |
| 3675 }, |
| 3676 |
| 3677 _rootHandleUncaughtError__closure: {"": "Closure;error_2,stackTrace_3", |
| 3678 call$0: function() { |
3748 var t1, trace; | 3679 var t1, trace; |
3749 t1 = this.error_0; | 3680 t1 = this.error_2; |
3750 P.print("Uncaught Error: " + H.S(t1)); | 3681 P.print("Uncaught Error: " + H.S(t1)); |
3751 trace = this.stackTrace_1; | 3682 trace = this.stackTrace_3; |
3752 if (trace == null) | 3683 if (trace == null) |
3753 trace = P.getAttachedStackTrace(t1); | 3684 trace = P.getAttachedStackTrace(t1); |
3754 P._attachStackTrace(t1, null); | 3685 P._attachStackTrace(t1, null); |
3755 if (trace != null) | 3686 if (trace != null) |
3756 P.print("Stack Trace: \n" + H.S(trace) + "\n"); | 3687 P.print("Stack Trace: \n" + H.S(trace) + "\n"); |
3757 throw H.wrapException(t1); | 3688 throw H.wrapException(t1); |
3758 } | 3689 } |
3759 }, | 3690 }, |
3760 | 3691 |
3761 _RootZone: {"": "_BaseZone;", | 3692 _RootZone: {"": "_BaseZone;", |
3762 $index: function(_, key) { | 3693 $index: function(_, key) { |
3763 return; | 3694 return; |
3764 }, | 3695 }, |
3765 handleUncaughtError$2: function(error, stackTrace) { | 3696 handleUncaughtError$2: function(error, stackTrace) { |
3766 return P._rootHandleUncaughtError(this, null, this, error, stackTrace); | 3697 return P._rootHandleUncaughtError(this, null, this, error, stackTrace); |
3767 }, | 3698 }, |
3768 run$1: function(f) { | 3699 run$1: function(f) { |
3769 return P._rootRun(this, null, this, f); | 3700 return P._rootRun(this, null, this, f); |
3770 }, | 3701 }, |
3771 runUnary$2: function(f, arg) { | 3702 runUnary$2: function(f, arg) { |
3772 return P._rootRunUnary(this, null, this, f, arg); | 3703 return P._rootRunUnary(this, null, this, f, arg); |
3773 }, | 3704 }, |
3774 runBinary$3: function(f, arg1, arg2) { | 3705 registerCallback$1: function(f) { |
3775 return P._rootRunBinary(this, null, this, f, arg1, arg2); | 3706 return f; |
3776 }, | 3707 }, |
3777 registerCallback$1: function(f) { | 3708 registerUnaryCallback$1: function(f) { |
3778 return f; | 3709 return f; |
3779 } | 3710 } |
3780 }}], | 3711 }}], |
3781 ["dart.collection", "dart:collection", , P, { | 3712 ["dart.collection", "dart:collection", , P, { |
3782 _HashSet__newHashTable: function() { | 3713 _HashSet__newHashTable: function() { |
3783 var table = Object.create(null); | 3714 var table = Object.create(null); |
3784 table["<non-identifier-key>"] = table; | 3715 table["<non-identifier-key>"] = table; |
3785 delete table["<non-identifier-key>"]; | 3716 delete table["<non-identifier-key>"]; |
3786 return table; | 3717 return table; |
3787 }, | 3718 }, |
3788 | 3719 |
3789 _defaultEquals: function(a, b) { | 3720 _defaultEquals: function(a, b) { |
3790 return J.$eq(a, b); | 3721 return J.$eq(a, b); |
3791 }, | 3722 }, |
3792 | 3723 |
3793 _defaultHashCode: function(a) { | 3724 _defaultHashCode: function(a) { |
3794 return J.get$hashCode$(a); | 3725 return J.get$hashCode$(a); |
3795 }, | 3726 }, |
3796 | 3727 |
3797 HashMap_HashMap: function(equals, hashCode, isValidKey, $K, $V) { | 3728 HashMap_HashMap: function(equals, hashCode, isValidKey, $K, $V) { |
3798 var t1 = new P._HashMap(0, null, null, null, null); | 3729 var t1 = new P._HashMap(0, null, null, null, null); |
3799 H.setRuntimeTypeInfo(t1, [$K, $V]); | 3730 H.setRuntimeTypeInfo(t1, [$K, $V]); |
3800 return t1; | 3731 return t1; |
3801 }, | 3732 }, |
3802 | 3733 |
3803 _iterableToString: function(iterable) { | 3734 _iterableToString: function(iterable) { |
3804 var LENGTH_LIMIT, MIN_COUNT, MAX_COUNT, OVERHEAD, ELLIPSIS_SIZE, result, $leng
th, count, it, next, penultimateString, ultimateString, penultimate, ultimate, e
lision, t1, t2, t3, t4; | 3735 var parts, t1; |
3805 LENGTH_LIMIT = 80; | |
3806 MIN_COUNT = 3; | |
3807 MAX_COUNT = 100; | |
3808 OVERHEAD = 2; | |
3809 ELLIPSIS_SIZE = 3; | |
3810 t1 = $.get$_toStringVisiting(); | 3736 t1 = $.get$_toStringVisiting(); |
3811 if (t1.contains$1(t1, iterable)) | 3737 if (t1.contains$1(t1, iterable)) |
3812 return "(...)"; | 3738 return "(...)"; |
3813 t1 = $.get$_toStringVisiting(); | 3739 t1 = $.get$_toStringVisiting(); |
3814 t1.add$1(t1, iterable); | 3740 t1.add$1(t1, iterable); |
3815 result = []; | 3741 parts = []; |
3816 try { | 3742 try { |
3817 $building$0: { | 3743 P._iterablePartsToStrings(iterable, parts); |
3818 $length = 0; | |
3819 count = 0; | |
3820 it = J.get$iterator$ax(iterable); | |
3821 while (true) { | |
3822 t1 = count; | |
3823 t2 = MIN_COUNT; | |
3824 if (typeof t1 !== "number") | |
3825 throw t1.$lt(); | |
3826 if (typeof t2 !== "number") | |
3827 throw H.iae(t2); | |
3828 if (!(t1 < t2)) { | |
3829 t1 = $length; | |
3830 t2 = LENGTH_LIMIT; | |
3831 if (typeof t1 !== "number") | |
3832 throw t1.$lt(); | |
3833 if (typeof t2 !== "number") | |
3834 throw H.iae(t2); | |
3835 t2 = t1 < t2; | |
3836 t1 = t2; | |
3837 } else | |
3838 t1 = true; | |
3839 if (!t1) | |
3840 break; | |
3841 if (!it.moveNext$0()) | |
3842 break $building$0; | |
3843 next = H.S(it.get$current()); | |
3844 J.add$1$ax(result, next); | |
3845 t1 = $length; | |
3846 t2 = J.get$length$asx(next); | |
3847 t3 = OVERHEAD; | |
3848 if (typeof t2 !== "number") | |
3849 throw t2.$add(); | |
3850 if (typeof t3 !== "number") | |
3851 throw H.iae(t3); | |
3852 if (typeof t1 !== "number") | |
3853 throw t1.$add(); | |
3854 $length = t1 + (t2 + t3); | |
3855 t3 = count; | |
3856 if (typeof t3 !== "number") | |
3857 throw t3.$add(); | |
3858 count = t3 + 1; | |
3859 } | |
3860 penultimateString = null; | |
3861 ultimateString = null; | |
3862 penultimate = null; | |
3863 ultimate = null; | |
3864 if (!it.moveNext$0()) { | |
3865 t1 = count; | |
3866 t2 = MIN_COUNT; | |
3867 if (typeof t2 !== "number") | |
3868 throw t2.$add(); | |
3869 if (typeof t1 !== "number") | |
3870 throw t1.$le(); | |
3871 if (t1 <= t2 + 2) | |
3872 break $building$0; | |
3873 ultimateString = J.removeLast$0$ax(result); | |
3874 penultimateString = J.removeLast$0$ax(result); | |
3875 } else { | |
3876 penultimate = it.get$current(); | |
3877 t1 = count; | |
3878 if (typeof t1 !== "number") | |
3879 throw t1.$add(); | |
3880 count = t1 + 1; | |
3881 if (!it.moveNext$0()) { | |
3882 t1 = count; | |
3883 t2 = MIN_COUNT; | |
3884 if (typeof t2 !== "number") | |
3885 throw t2.$add(); | |
3886 if (typeof t1 !== "number") | |
3887 throw t1.$le(); | |
3888 if (t1 <= t2 + 1) { | |
3889 J.add$1$ax(result, H.S(penultimate)); | |
3890 break $building$0; | |
3891 } | |
3892 ultimateString = H.S(penultimate); | |
3893 penultimateString = J.removeLast$0$ax(result); | |
3894 t1 = $length; | |
3895 t2 = J.get$length$asx(ultimateString); | |
3896 t3 = OVERHEAD; | |
3897 if (typeof t2 !== "number") | |
3898 throw t2.$add(); | |
3899 if (typeof t3 !== "number") | |
3900 throw H.iae(t3); | |
3901 if (typeof t1 !== "number") | |
3902 throw t1.$add(); | |
3903 $length = t1 + (t2 + t3); | |
3904 } else { | |
3905 ultimate = it.get$current(); | |
3906 t1 = count; | |
3907 if (typeof t1 !== "number") | |
3908 throw t1.$add(); | |
3909 count = t1 + 1; | |
3910 for (; it.moveNext$0();) { | |
3911 penultimate = ultimate; | |
3912 ultimate = it.get$current(); | |
3913 t1 = count; | |
3914 if (typeof t1 !== "number") | |
3915 throw t1.$add(); | |
3916 count = t1 + 1; | |
3917 t1 = count; | |
3918 t2 = MAX_COUNT; | |
3919 if (typeof t1 !== "number") | |
3920 throw t1.$gt(); | |
3921 if (typeof t2 !== "number") | |
3922 throw H.iae(t2); | |
3923 if (t1 > t2) { | |
3924 while (true) { | |
3925 t1 = $length; | |
3926 t2 = LENGTH_LIMIT; | |
3927 t3 = ELLIPSIS_SIZE; | |
3928 if (typeof t2 !== "number") | |
3929 throw t2.$sub(); | |
3930 if (typeof t3 !== "number") | |
3931 throw H.iae(t3); | |
3932 t4 = OVERHEAD; | |
3933 if (typeof t4 !== "number") | |
3934 throw H.iae(t4); | |
3935 if (typeof t1 !== "number") | |
3936 throw t1.$gt(); | |
3937 if (t1 > t2 - t3 - t4) { | |
3938 t1 = count; | |
3939 t2 = MIN_COUNT; | |
3940 if (typeof t1 !== "number") | |
3941 throw t1.$gt(); | |
3942 if (typeof t2 !== "number") | |
3943 throw H.iae(t2); | |
3944 t2 = t1 > t2; | |
3945 t1 = t2; | |
3946 } else | |
3947 t1 = false; | |
3948 if (!t1) | |
3949 break; | |
3950 t1 = $length; | |
3951 t2 = J.get$length$asx(J.removeLast$0$ax(result)); | |
3952 t3 = OVERHEAD; | |
3953 if (typeof t2 !== "number") | |
3954 throw t2.$add(); | |
3955 if (typeof t3 !== "number") | |
3956 throw H.iae(t3); | |
3957 if (typeof t1 !== "number") | |
3958 throw t1.$sub(); | |
3959 $length = t1 - (t2 + t3); | |
3960 t3 = count; | |
3961 if (typeof t3 !== "number") | |
3962 throw t3.$sub(); | |
3963 count = t3 - 1; | |
3964 } | |
3965 J.add$1$ax(result, "..."); | |
3966 break $building$0; | |
3967 } | |
3968 } | |
3969 penultimateString = H.S(penultimate); | |
3970 ultimateString = H.S(ultimate); | |
3971 t1 = $length; | |
3972 t2 = J.get$length$asx(ultimateString); | |
3973 t3 = J.get$length$asx(penultimateString); | |
3974 if (typeof t2 !== "number") | |
3975 throw t2.$add(); | |
3976 if (typeof t3 !== "number") | |
3977 throw H.iae(t3); | |
3978 t4 = OVERHEAD; | |
3979 if (typeof t4 !== "number") | |
3980 throw H.iae(t4); | |
3981 if (typeof t1 !== "number") | |
3982 throw t1.$add(); | |
3983 $length = t1 + (t2 + t3 + 2 * t4); | |
3984 } | |
3985 } | |
3986 elision = null; | |
3987 t1 = count; | |
3988 t2 = J.get$length$asx(result); | |
3989 if (typeof t2 !== "number") | |
3990 throw t2.$add(); | |
3991 if (typeof t1 !== "number") | |
3992 throw t1.$gt(); | |
3993 if (t1 > t2 + 2) { | |
3994 elision = "..."; | |
3995 t1 = $length; | |
3996 t2 = ELLIPSIS_SIZE; | |
3997 t3 = OVERHEAD; | |
3998 if (typeof t2 !== "number") | |
3999 throw t2.$add(); | |
4000 if (typeof t3 !== "number") | |
4001 throw H.iae(t3); | |
4002 if (typeof t1 !== "number") | |
4003 throw t1.$add(); | |
4004 $length = t1 + (t2 + t3); | |
4005 } | |
4006 while (true) { | |
4007 t1 = $length; | |
4008 t2 = LENGTH_LIMIT; | |
4009 if (typeof t1 !== "number") | |
4010 throw t1.$gt(); | |
4011 if (typeof t2 !== "number") | |
4012 throw H.iae(t2); | |
4013 if (t1 > t2) { | |
4014 t1 = J.get$length$asx(result); | |
4015 t2 = MIN_COUNT; | |
4016 if (typeof t1 !== "number") | |
4017 throw t1.$gt(); | |
4018 if (typeof t2 !== "number") | |
4019 throw H.iae(t2); | |
4020 t2 = t1 > t2; | |
4021 t1 = t2; | |
4022 } else | |
4023 t1 = false; | |
4024 if (!t1) | |
4025 break; | |
4026 t1 = $length; | |
4027 t2 = J.get$length$asx(J.removeLast$0$ax(result)); | |
4028 t3 = OVERHEAD; | |
4029 if (typeof t2 !== "number") | |
4030 throw t2.$add(); | |
4031 if (typeof t3 !== "number") | |
4032 throw H.iae(t3); | |
4033 if (typeof t1 !== "number") | |
4034 throw t1.$sub(); | |
4035 $length = t1 - (t2 + t3); | |
4036 if (elision == null) { | |
4037 elision = "..."; | |
4038 t1 = $length; | |
4039 t2 = ELLIPSIS_SIZE; | |
4040 t3 = OVERHEAD; | |
4041 if (typeof t2 !== "number") | |
4042 throw t2.$add(); | |
4043 if (typeof t3 !== "number") | |
4044 throw H.iae(t3); | |
4045 if (typeof t1 !== "number") | |
4046 throw t1.$add(); | |
4047 $length = t1 + (t2 + t3); | |
4048 } | |
4049 } | |
4050 if (elision != null) | |
4051 J.add$1$ax(result, elision); | |
4052 J.add$1$ax(result, penultimateString); | |
4053 J.add$1$ax(result, ultimateString); | |
4054 } | |
4055 } finally { | 3744 } finally { |
4056 t1 = $.get$_toStringVisiting(); | 3745 t1 = $.get$_toStringVisiting(); |
4057 t1.remove$1(t1, iterable); | 3746 t1.remove$1(t1, iterable); |
4058 } | 3747 } |
4059 t1 = P.StringBuffer$("("); | 3748 t1 = P.StringBuffer$("("); |
4060 t1.writeAll$2(result, ", "); | 3749 t1.writeAll$2(parts, ", "); |
4061 t1.write$1(")"); | 3750 t1.write$1(")"); |
4062 return t1._contents; | 3751 return t1._contents; |
4063 }, | 3752 }, |
4064 | 3753 |
| 3754 _iterablePartsToStrings: function(iterable, parts) { |
| 3755 var it, $length, count, next, ultimateString, penultimateString, penultimate,
ultimate, ultimate0, elision; |
| 3756 it = iterable.get$iterator(iterable); |
| 3757 $length = 0; |
| 3758 count = 0; |
| 3759 while (true) { |
| 3760 if (!($length < 80 || count < 3)) |
| 3761 break; |
| 3762 if (!it.moveNext$0()) |
| 3763 return; |
| 3764 next = H.S(it.get$current()); |
| 3765 parts.push(next); |
| 3766 $length += next.length + 2; |
| 3767 ++count; |
| 3768 } |
| 3769 if (!it.moveNext$0()) { |
| 3770 if (count <= 5) |
| 3771 return; |
| 3772 if (0 >= parts.length) |
| 3773 throw H.ioore(parts, 0); |
| 3774 ultimateString = parts.pop(); |
| 3775 if (0 >= parts.length) |
| 3776 throw H.ioore(parts, 0); |
| 3777 penultimateString = parts.pop(); |
| 3778 } else { |
| 3779 penultimate = it.get$current(); |
| 3780 ++count; |
| 3781 if (!it.moveNext$0()) { |
| 3782 if (count <= 4) { |
| 3783 parts.push(H.S(penultimate)); |
| 3784 return; |
| 3785 } |
| 3786 ultimateString = H.S(penultimate); |
| 3787 if (0 >= parts.length) |
| 3788 throw H.ioore(parts, 0); |
| 3789 penultimateString = parts.pop(); |
| 3790 $length += ultimateString.length + 2; |
| 3791 } else { |
| 3792 ultimate = it.get$current(); |
| 3793 ++count; |
| 3794 for (; it.moveNext$0(); penultimate = ultimate, ultimate = ultimate0) { |
| 3795 ultimate0 = it.get$current(); |
| 3796 ++count; |
| 3797 if (count > 100) { |
| 3798 while (true) { |
| 3799 if (!($length > 75 && count > 3)) |
| 3800 break; |
| 3801 if (0 >= parts.length) |
| 3802 throw H.ioore(parts, 0); |
| 3803 $length -= parts.pop().length + 2; |
| 3804 --count; |
| 3805 } |
| 3806 parts.push("..."); |
| 3807 return; |
| 3808 } |
| 3809 } |
| 3810 penultimateString = H.S(penultimate); |
| 3811 ultimateString = H.S(ultimate); |
| 3812 $length += ultimateString.length + penultimateString.length + 4; |
| 3813 } |
| 3814 } |
| 3815 if (count > parts.length + 2) { |
| 3816 $length += 5; |
| 3817 elision = "..."; |
| 3818 } else |
| 3819 elision = null; |
| 3820 while (true) { |
| 3821 if (!($length > 80 && parts.length > 3)) |
| 3822 break; |
| 3823 if (0 >= parts.length) |
| 3824 throw H.ioore(parts, 0); |
| 3825 $length -= parts.pop().length + 2; |
| 3826 if (elision == null) { |
| 3827 $length += 5; |
| 3828 elision = "..."; |
| 3829 } |
| 3830 } |
| 3831 if (elision != null) |
| 3832 parts.push(elision); |
| 3833 parts.push(penultimateString); |
| 3834 parts.push(ultimateString); |
| 3835 }, |
| 3836 |
4065 LinkedHashMap_LinkedHashMap: function(equals, hashCode, isValidKey, $K, $V) { | 3837 LinkedHashMap_LinkedHashMap: function(equals, hashCode, isValidKey, $K, $V) { |
4066 var t1 = new P._LinkedHashMap(0, null, null, null, null, null, 0); | 3838 var t1 = new P._LinkedHashMap(0, null, null, null, null, null, 0); |
4067 H.setRuntimeTypeInfo(t1, [$K, $V]); | 3839 H.setRuntimeTypeInfo(t1, [$K, $V]); |
4068 return t1; | 3840 return t1; |
4069 }, | 3841 }, |
4070 | 3842 |
4071 Maps_mapToString: function(m) { | 3843 Maps_mapToString: function(m) { |
4072 var t1, result, i, t2; | 3844 var t1, result, i, t2; |
4073 t1 = {}; | 3845 t1 = {}; |
4074 for (i = 0; i < $.get$Maps__toStringList().length; ++i) { | 3846 for (i = 0; i < $.get$Maps__toStringList().length; ++i) { |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4263 delete table["<non-identifier-key>"]; | 4035 delete table["<non-identifier-key>"]; |
4264 return table; | 4036 return table; |
4265 }} | 4037 }} |
4266 | 4038 |
4267 }, | 4039 }, |
4268 | 4040 |
4269 _HashMap_values_closure: {"": "Closure;this_0", | 4041 _HashMap_values_closure: {"": "Closure;this_0", |
4270 call$1: function(each) { | 4042 call$1: function(each) { |
4271 var t1 = this.this_0; | 4043 var t1 = this.this_0; |
4272 return t1.$index(t1, each); | 4044 return t1.$index(t1, each); |
4273 } | 4045 }, |
| 4046 $is_args1: true |
4274 }, | 4047 }, |
4275 | 4048 |
4276 HashMapKeyIterable: {"": "IterableBase;_map", | 4049 HashMapKeyIterable: {"": "IterableBase;_map", |
4277 get$length: function(_) { | 4050 get$length: function(_) { |
4278 return this._map._collection$_length; | 4051 return this._map._collection$_length; |
4279 }, | 4052 }, |
4280 get$iterator: function(_) { | 4053 get$iterator: function(_) { |
4281 var t1 = this._map; | 4054 var t1 = this._map; |
4282 return new P.HashMapKeyIterator(t1, t1._computeKeys$0(), 0, null); | 4055 return new P.HashMapKeyIterator(t1, t1._computeKeys$0(), 0, null); |
4283 }, | 4056 }, |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4508 delete table["<non-identifier-key>"]; | 4281 delete table["<non-identifier-key>"]; |
4509 return table; | 4282 return table; |
4510 }} | 4283 }} |
4511 | 4284 |
4512 }, | 4285 }, |
4513 | 4286 |
4514 _LinkedHashMap_values_closure: {"": "Closure;this_0", | 4287 _LinkedHashMap_values_closure: {"": "Closure;this_0", |
4515 call$1: function(each) { | 4288 call$1: function(each) { |
4516 var t1 = this.this_0; | 4289 var t1 = this.this_0; |
4517 return t1.$index(t1, each); | 4290 return t1.$index(t1, each); |
4518 } | 4291 }, |
| 4292 $is_args1: true |
4519 }, | 4293 }, |
4520 | 4294 |
4521 LinkedHashMapCell: {"": "Object;_key<,_collection$_value@,_next<,_previous<"}, | 4295 LinkedHashMapCell: {"": "Object;_key<,_collection$_value@,_next<,_previous<"}, |
4522 | 4296 |
4523 LinkedHashMapKeyIterable: {"": "IterableBase;_map", | 4297 LinkedHashMapKeyIterable: {"": "IterableBase;_map", |
4524 get$length: function(_) { | 4298 get$length: function(_) { |
4525 return this._map._collection$_length; | 4299 return this._map._collection$_length; |
4526 }, | 4300 }, |
4527 get$iterator: function(_) { | 4301 get$iterator: function(_) { |
4528 var t1 = this._map; | 4302 var t1 = this._map; |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4788 | 4562 |
4789 ListMixin: {"": "Object;", | 4563 ListMixin: {"": "Object;", |
4790 get$iterator: function(receiver) { | 4564 get$iterator: function(receiver) { |
4791 return new H.ListIterator(receiver, this.get$length(receiver), 0, null); | 4565 return new H.ListIterator(receiver, this.get$length(receiver), 0, null); |
4792 }, | 4566 }, |
4793 elementAt$1: function(receiver, index) { | 4567 elementAt$1: function(receiver, index) { |
4794 return this.$index(receiver, index); | 4568 return this.$index(receiver, index); |
4795 }, | 4569 }, |
4796 forEach$1: function(receiver, action) { | 4570 forEach$1: function(receiver, action) { |
4797 var $length, i; | 4571 var $length, i; |
4798 if (typeof receiver !== "string" && (typeof receiver !== "object" || receive
r === null || receiver.constructor !== Array && !H.isJsIndexable(receiver, recei
ver[init.dispatchPropertyName]))) | |
4799 return this.forEach$1$bailout(1, receiver, action); | |
4800 $length = C.JS_CONST_ZYJ(receiver); | |
4801 for (i = 0; i < $length; ++i) { | |
4802 if (i >= C.JS_CONST_ZYJ(receiver)) | |
4803 throw H.ioore(receiver, i); | |
4804 action.call$1(receiver[i]); | |
4805 if ($length !== C.JS_CONST_ZYJ(receiver)) | |
4806 throw H.wrapException(P.ConcurrentModificationError$(receiver)); | |
4807 } | |
4808 }, | |
4809 forEach$1$bailout: function(state0, receiver, action) { | |
4810 var $length, i; | |
4811 $length = this.get$length(receiver); | 4572 $length = this.get$length(receiver); |
4812 for (i = 0; i < $length; ++i) { | 4573 for (i = 0; i < $length; ++i) { |
4813 action.call$1(this.$index(receiver, i)); | 4574 action.call$1(this.$index(receiver, i)); |
4814 if ($length !== this.get$length(receiver)) | 4575 if ($length !== this.get$length(receiver)) |
4815 throw H.wrapException(P.ConcurrentModificationError$(receiver)); | 4576 throw H.wrapException(P.ConcurrentModificationError$(receiver)); |
4816 } | 4577 } |
4817 }, | 4578 }, |
4818 add$1: function(receiver, element) { | |
4819 var t1 = this.get$length(receiver); | |
4820 this.set$length(receiver, t1 + 1); | |
4821 this.$indexSet(receiver, t1, element); | |
4822 }, | |
4823 removeLast$0: function(receiver) { | |
4824 var result; | |
4825 if (this.get$length(receiver) === 0) | |
4826 throw H.wrapException(P.StateError$("No elements")); | |
4827 result = this.$index(receiver, this.get$length(receiver) - 1); | |
4828 this.set$length(receiver, this.get$length(receiver) - 1); | |
4829 return result; | |
4830 }, | |
4831 toString$0: function(receiver) { | 4579 toString$0: function(receiver) { |
4832 var result, t1; | 4580 var result, t1; |
4833 t1 = $.get$_toStringVisiting(); | 4581 t1 = $.get$_toStringVisiting(); |
4834 if (t1.contains$1(t1, receiver)) | 4582 if (t1.contains$1(t1, receiver)) |
4835 return "[...]"; | 4583 return "[...]"; |
4836 result = P.StringBuffer$(""); | 4584 result = P.StringBuffer$(""); |
4837 try { | 4585 try { |
4838 t1 = $.get$_toStringVisiting(); | 4586 t1 = $.get$_toStringVisiting(); |
4839 t1.add$1(t1, receiver); | 4587 t1.add$1(t1, receiver); |
4840 result.write$1("["); | 4588 result.write$1("["); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4877 if (i < 0 || i >= t1.length) | 4625 if (i < 0 || i >= t1.length) |
4878 throw H.ioore(t1, i); | 4626 throw H.ioore(t1, i); |
4879 action.call$1(t1[i]); | 4627 action.call$1(t1[i]); |
4880 if (modificationCount !== this._modificationCount) | 4628 if (modificationCount !== this._modificationCount) |
4881 H.throwExpression(P.ConcurrentModificationError$(this)); | 4629 H.throwExpression(P.ConcurrentModificationError$(this)); |
4882 } | 4630 } |
4883 }, | 4631 }, |
4884 get$length: function(_) { | 4632 get$length: function(_) { |
4885 return (this._tail - this._head & this._table.length - 1) >>> 0; | 4633 return (this._tail - this._head & this._table.length - 1) >>> 0; |
4886 }, | 4634 }, |
4887 add$1: function(_, element) { | |
4888 this._add$1(element); | |
4889 }, | |
4890 toString$0: function(_) { | 4635 toString$0: function(_) { |
4891 return H.IterableMixinWorkaround_toStringIterable(this, "{", "}"); | 4636 return H.IterableMixinWorkaround_toStringIterable(this, "{", "}"); |
4892 }, | 4637 }, |
4893 removeFirst$0: function() { | 4638 removeFirst$0: function() { |
4894 var t1, t2, t3, result; | 4639 var t1, t2, t3, result; |
4895 if (this._head === this._tail) | 4640 if (this._head === this._tail) |
4896 throw H.wrapException(P.StateError$("No elements")); | 4641 throw H.wrapException(P.StateError$("No elements")); |
4897 this._modificationCount = this._modificationCount + 1; | 4642 this._modificationCount = this._modificationCount + 1; |
4898 t1 = this._table; | 4643 t1 = this._table; |
4899 t2 = this._head; | 4644 t2 = this._head; |
4900 t3 = t1.length; | 4645 t3 = t1.length; |
4901 if (t2 < 0 || t2 >= t3) | 4646 if (t2 < 0 || t2 >= t3) |
4902 throw H.ioore(t1, t2); | 4647 throw H.ioore(t1, t2); |
4903 result = t1[t2]; | 4648 result = t1[t2]; |
4904 this._head = (t2 + 1 & t3 - 1) >>> 0; | 4649 this._head = (t2 + 1 & t3 - 1) >>> 0; |
4905 return result; | 4650 return result; |
4906 }, | 4651 }, |
4907 removeLast$0: function(_) { | |
4908 var t1, t2; | |
4909 if (this._head === this._tail) | |
4910 throw H.wrapException(P.StateError$("No elements")); | |
4911 this._modificationCount = this._modificationCount + 1; | |
4912 this._tail = (this._tail - 1 & this._table.length - 1) >>> 0; | |
4913 t1 = this._table; | |
4914 t2 = this._tail; | |
4915 if (t2 < 0 || t2 >= t1.length) | |
4916 throw H.ioore(t1, t2); | |
4917 return t1[t2]; | |
4918 }, | |
4919 _add$1: function(element) { | 4652 _add$1: function(element) { |
4920 var t1, t2, t3; | 4653 var t1, t2, t3; |
4921 t1 = this._table; | 4654 t1 = this._table; |
4922 t2 = this._tail; | 4655 t2 = this._tail; |
4923 t3 = t1.length; | 4656 t3 = t1.length; |
4924 if (t2 < 0 || t2 >= t3) | 4657 if (t2 < 0 || t2 >= t3) |
4925 throw H.ioore(t1, t2); | 4658 throw H.ioore(t1, t2); |
4926 t1[t2] = element; | 4659 t1[t2] = element; |
4927 this._tail = (t2 + 1 & t3 - 1) >>> 0; | 4660 this._tail = (t2 + 1 & t3 - 1) >>> 0; |
4928 if (this._head === this._tail) | 4661 if (this._head === this._tail) |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5050 }, | 4783 }, |
5051 | 4784 |
5052 identityHashCode: function(object) { | 4785 identityHashCode: function(object) { |
5053 return H.objectHashCode(object); | 4786 return H.objectHashCode(object); |
5054 }, | 4787 }, |
5055 | 4788 |
5056 List_List: function($length, $E) { | 4789 List_List: function($length, $E) { |
5057 if ($length == null) | 4790 if ($length == null) |
5058 return new Array(0); | 4791 return new Array(0); |
5059 if (typeof $length !== "number" || Math.floor($length) !== $length || $length
< 0) | 4792 if (typeof $length !== "number" || Math.floor($length) !== $length || $length
< 0) |
5060 throw H.wrapException(P.ArgumentError$("Length must be a positive integer: "
+ H.S($length) + ".")); | 4793 throw H.wrapException(new P.ArgumentError("Length must be a positive integer
: " + H.S($length) + ".")); |
5061 return H.Primitives_newFixedList($length); | 4794 return H.Primitives_newFixedList($length); |
5062 }, | 4795 }, |
5063 | 4796 |
5064 List_List$filled: function($length, fill, $E) { | 4797 List_List$filled: function($length, fill, $E) { |
5065 var result, t1, i; | 4798 var result, t1, i; |
5066 if ($length < 0) | 4799 if ($length < 0) |
5067 throw H.wrapException(P.ArgumentError$("Length must be a positive integer: "
+ $length + ".")); | 4800 throw H.wrapException(new P.ArgumentError("Length must be a positive integer
: " + $length + ".")); |
5068 result = H.Primitives_newFixedList($length); | 4801 result = H.Primitives_newFixedList($length); |
5069 if ($length !== 0 && true) | 4802 if ($length !== 0 && true) |
5070 for (t1 = result.length, i = 0; i < t1; ++i) | 4803 for (t1 = result.length, i = 0; i < t1; ++i) |
5071 result[i] = fill; | 4804 result[i] = fill; |
5072 return result; | 4805 return result; |
5073 }, | 4806 }, |
5074 | 4807 |
5075 List_List$from: function(other, growable, $E) { | 4808 List_List$from: function(other, growable, $E) { |
5076 var list, t1, $length, fixedList, t2, i, t3; | 4809 var list, t1, $length, fixedList, t2, i, t3; |
5077 list = P.List_List(null, $E); | 4810 list = P.List_List(null, $E); |
(...skipping 26 matching lines...) Expand all Loading... |
5104 var t1 = this.box_0; | 4837 var t1 = this.box_0; |
5105 if (t1.i_1 > 0) | 4838 if (t1.i_1 > 0) |
5106 t1.sb_0.write$1(", "); | 4839 t1.sb_0.write$1(", "); |
5107 t1.sb_0.write$1(P._symbolToString(key)); | 4840 t1.sb_0.write$1(P._symbolToString(key)); |
5108 }, | 4841 }, |
5109 $is_args2: true | 4842 $is_args2: true |
5110 }, | 4843 }, |
5111 | 4844 |
5112 Duration: {"": "Object;_duration", | 4845 Duration: {"": "Object;_duration", |
5113 $lt: function(_, other) { | 4846 $lt: function(_, other) { |
5114 var t1 = other.get$_duration(); | 4847 return C.JSNumber_methods.$lt(this._duration, other.get$_duration()); |
5115 if (typeof t1 !== "number") | |
5116 throw H.iae(t1); | |
5117 return C.JSNumber_methods.$lt(this._duration, t1); | |
5118 }, | 4848 }, |
5119 $gt: function(_, other) { | 4849 $gt: function(_, other) { |
5120 var t1 = other.get$_duration(); | 4850 return C.JSNumber_methods.$gt(this._duration, other.get$_duration()); |
5121 if (typeof t1 !== "number") | |
5122 throw H.iae(t1); | |
5123 return C.JSNumber_methods.$gt(this._duration, t1); | |
5124 }, | 4851 }, |
5125 $ge: function(_, other) { | 4852 $ge: function(_, other) { |
5126 var t1 = other.get$_duration(); | 4853 return C.JSNumber_methods.$ge(this._duration, other.get$_duration()); |
5127 if (typeof t1 !== "number") | |
5128 throw H.iae(t1); | |
5129 return C.JSNumber_methods.$ge(this._duration, t1); | |
5130 }, | 4854 }, |
5131 $eq: function(_, other) { | 4855 $eq: function(_, other) { |
5132 var t1; | 4856 var t1; |
5133 if (other == null) | 4857 if (other == null) |
5134 return false; | 4858 return false; |
5135 t1 = J.getInterceptor(other); | 4859 t1 = J.getInterceptor(other); |
5136 if (typeof other !== "object" || other === null || !t1.$isDuration) | 4860 if (typeof other !== "object" || other === null || !t1.$isDuration) |
5137 return false; | 4861 return false; |
5138 return this._duration === other._duration; | 4862 return this._duration === other._duration; |
5139 }, | 4863 }, |
(...skipping 27 matching lines...) Expand all Loading... |
5167 return H.S(n); | 4891 return H.S(n); |
5168 if (t1.$ge(n, 10000)) | 4892 if (t1.$ge(n, 10000)) |
5169 return "0" + H.S(n); | 4893 return "0" + H.S(n); |
5170 if (t1.$ge(n, 1000)) | 4894 if (t1.$ge(n, 1000)) |
5171 return "00" + H.S(n); | 4895 return "00" + H.S(n); |
5172 if (t1.$ge(n, 100)) | 4896 if (t1.$ge(n, 100)) |
5173 return "000" + H.S(n); | 4897 return "000" + H.S(n); |
5174 if (t1.$gt(n, 10)) | 4898 if (t1.$gt(n, 10)) |
5175 return "0000" + H.S(n); | 4899 return "0000" + H.S(n); |
5176 return "00000" + H.S(n); | 4900 return "00000" + H.S(n); |
5177 } | 4901 }, |
| 4902 $is_args1: true |
5178 }, | 4903 }, |
5179 | 4904 |
5180 Duration_toString_twoDigits: {"": "Closure;", | 4905 Duration_toString_twoDigits: {"": "Closure;", |
5181 call$1: function(n) { | 4906 call$1: function(n) { |
5182 if (J.$ge$n(n, 10)) | 4907 if (J.$ge$n(n, 10)) |
5183 return H.S(n); | 4908 return H.S(n); |
5184 return "0" + H.S(n); | 4909 return "0" + H.S(n); |
5185 } | 4910 }, |
| 4911 $is_args1: true |
5186 }, | 4912 }, |
5187 | 4913 |
5188 Error: {"": "Object;", | 4914 Error: {"": "Object;", |
5189 get$stackTrace: function() { | 4915 get$stackTrace: function() { |
5190 return new H._StackTrace(this.$thrownJsError, null); | 4916 return new H._StackTrace(this.$thrownJsError, null); |
5191 }, | 4917 }, |
5192 $isError: true | 4918 $isError: true |
5193 }, | 4919 }, |
5194 | 4920 |
5195 NullThrownError: {"": "Error;", | 4921 NullThrownError: {"": "Error;", |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5247 return new P.StateError(message); | 4973 return new P.StateError(message); |
5248 }} | 4974 }} |
5249 | 4975 |
5250 }, | 4976 }, |
5251 | 4977 |
5252 ConcurrentModificationError: {"": "Error;modifiedObject", | 4978 ConcurrentModificationError: {"": "Error;modifiedObject", |
5253 toString$0: function(_) { | 4979 toString$0: function(_) { |
5254 var t1 = this.modifiedObject; | 4980 var t1 = this.modifiedObject; |
5255 if (t1 == null) | 4981 if (t1 == null) |
5256 return "Concurrent modification during iteration."; | 4982 return "Concurrent modification during iteration."; |
5257 return "Concurrent modification during iteration: " + H.S(P.Error_safeToStri
ng(t1)) + "."; | 4983 return "Concurrent modification during iteration: " + P.Error_safeToString(t
1) + "."; |
5258 }, | 4984 }, |
5259 static: { | 4985 static: { |
5260 ConcurrentModificationError$: function(modifiedObject) { | 4986 ConcurrentModificationError$: function(modifiedObject) { |
5261 return new P.ConcurrentModificationError(modifiedObject); | 4987 return new P.ConcurrentModificationError(modifiedObject); |
5262 }} | 4988 }} |
5263 | 4989 |
5264 }, | 4990 }, |
5265 | 4991 |
5266 StackOverflowError: {"": "Object;", | 4992 StackOverflowError: {"": "Object;", |
5267 toString$0: function(_) { | 4993 toString$0: function(_) { |
(...skipping 15 matching lines...) Expand all Loading... |
5283 }} | 5009 }} |
5284 | 5010 |
5285 }, | 5011 }, |
5286 | 5012 |
5287 _ExceptionImplementation: {"": "Object;message", | 5013 _ExceptionImplementation: {"": "Object;message", |
5288 toString$0: function(_) { | 5014 toString$0: function(_) { |
5289 var t1 = this.message; | 5015 var t1 = this.message; |
5290 if (t1 == null) | 5016 if (t1 == null) |
5291 return "Exception"; | 5017 return "Exception"; |
5292 return "Exception: " + H.S(t1); | 5018 return "Exception: " + H.S(t1); |
5293 }, | 5019 } |
5294 $isException: true | |
5295 }, | 5020 }, |
5296 | 5021 |
5297 Expando: {"": "Object;name", | 5022 Expando: {"": "Object;name", |
5298 toString$0: function(_) { | 5023 toString$0: function(_) { |
5299 return "Expando:" + this.name; | 5024 return "Expando:" + this.name; |
5300 }, | 5025 }, |
5301 $index: function(_, object) { | 5026 $index: function(_, object) { |
5302 var values = H.Primitives_getProperty(object, "expando$values"); | 5027 var values = H.Primitives_getProperty(object, "expando$values"); |
5303 return values == null ? null : H.Primitives_getProperty(values, this._getKey
$0()); | 5028 return values == null ? null : H.Primitives_getProperty(values, this._getKey
$0()); |
5304 }, | 5029 }, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5349 } | 5074 } |
5350 }, | 5075 }, |
5351 | 5076 |
5352 StackTrace: {"": "Object;"}, | 5077 StackTrace: {"": "Object;"}, |
5353 | 5078 |
5354 StringBuffer: {"": "Object;_contents<", | 5079 StringBuffer: {"": "Object;_contents<", |
5355 get$length: function(_) { | 5080 get$length: function(_) { |
5356 return this._contents.length; | 5081 return this._contents.length; |
5357 }, | 5082 }, |
5358 write$1: function(obj) { | 5083 write$1: function(obj) { |
5359 if (typeof obj !== "string") | |
5360 return this.write$1$bailout(1, obj); | |
5361 this._contents = this._contents + obj; | |
5362 }, | |
5363 write$1$bailout: function(state0, obj) { | |
5364 var str = typeof obj === "string" ? obj : H.S(obj); | 5084 var str = typeof obj === "string" ? obj : H.S(obj); |
5365 this._contents = this._contents + str; | 5085 this._contents = this._contents + str; |
5366 }, | 5086 }, |
5367 writeAll$2: function(objects, separator) { | 5087 writeAll$2: function(objects, separator) { |
5368 var iterator, str; | 5088 var iterator, str; |
5369 iterator = J.get$iterator$ax(objects); | 5089 iterator = J.get$iterator$ax(objects); |
5370 if (!iterator.moveNext$0()) | 5090 if (!iterator.moveNext$0()) |
5371 return; | 5091 return; |
5372 if (separator.length === 0) | 5092 if (separator.length === 0) |
5373 do { | 5093 do { |
(...skipping 21 matching lines...) Expand all Loading... |
5395 StringBuffer$: function($content) { | 5115 StringBuffer$: function($content) { |
5396 var t1 = new P.StringBuffer(""); | 5116 var t1 = new P.StringBuffer(""); |
5397 t1.StringBuffer$1($content); | 5117 t1.StringBuffer$1($content); |
5398 return t1; | 5118 return t1; |
5399 }} | 5119 }} |
5400 | 5120 |
5401 }, | 5121 }, |
5402 | 5122 |
5403 Symbol: {"": "Object;"}}], | 5123 Symbol: {"": "Object;"}}], |
5404 ["dart.dom.html", "dart:html", , W, { | 5124 ["dart.dom.html", "dart:html", , W, { |
5405 Geolocation_getCurrentPosition_closure: {"": "Closure;this_0,completer_1", | 5125 _convertNativeToDart_EventTarget: function(e) { |
5406 call$1: function(position) { | 5126 var $window, t1; |
5407 var t1, t2; | 5127 if (e == null) |
5408 t1 = C.Geolocation_methods._ensurePosition$1(this.this_0, position); | 5128 return; |
5409 t2 = this.completer_1.future; | 5129 if ("setInterval" in e) { |
5410 if (t2._state !== 0) | 5130 $window = W._DOMWindowCrossFrame__createSafe(e); |
5411 H.throwExpression(new P.StateError("Future already completed")); | 5131 t1 = J.getInterceptor($window); |
5412 t2._asyncComplete$1(t1); | 5132 if (typeof $window === "object" && $window !== null && !!t1.$isEventTarget) |
5413 } | 5133 return $window; |
| 5134 return; |
| 5135 } else |
| 5136 return e; |
5414 }, | 5137 }, |
5415 | 5138 |
5416 Geolocation_getCurrentPosition_closure0: {"": "Closure;completer_2", | 5139 _wrapZone: function(callback) { |
5417 call$1: function(error) { | 5140 var t1 = $.Zone__current; |
5418 var t1 = this.completer_2.future; | 5141 if (t1 === C.C__RootZone) |
5419 if (t1._state !== 0) | 5142 return callback; |
5420 H.throwExpression(new P.StateError("Future already completed")); | 5143 return t1.bindUnaryCallback$2$runGuarded(callback, true); |
5421 t1._asyncCompleteError$2(error, null); | |
5422 } | |
5423 }, | 5144 }, |
5424 | 5145 |
5425 Geolocation_watchPosition_closure0: {"": "Closure;box_0,this_1,options_2", | 5146 _EventStream: {"": "Stream;", |
5426 call$0: function() { | 5147 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone,
onError) { |
5427 var t1, t2; | 5148 var t1 = new W._EventStreamSubscription(0, this._target, this._eventType, W.
_wrapZone(onData), this._useCapture); |
5428 t1 = this.this_1; | 5149 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_EventStream", 0)]
); |
5429 t2 = this.box_0; | 5150 t1._tryResume$0(); |
5430 t2.watchId_0 = C.Geolocation_methods._watchPosition$3(t1, new W.Geolocation_
watchPosition__closure(t2, t1), new W.Geolocation_watchPosition__closure0(t2), t
his.options_2); | 5151 return t1; |
5431 } | 5152 }, |
| 5153 $asStream: null |
5432 }, | 5154 }, |
5433 | 5155 |
5434 Geolocation_watchPosition__closure: {"": "Closure;box_0,this_3", | 5156 _ElementEventStreamImpl: {"": "_EventStream;_target,_eventType,_useCapture", $as
_EventStream: null}, |
5435 call$1: function(position) { | 5157 |
5436 var t1, t2; | 5158 _EventStreamSubscription: {"": "StreamSubscription;_pauseCount,_target,_eventTyp
e,_onData,_useCapture", |
5437 t1 = this.box_0.controller_1; | 5159 cancel$0: function() { |
5438 t2 = C.Geolocation_methods._ensurePosition$1(this.this_3, position); | 5160 if (this._target == null) |
5439 if (t1._state >= 4) | 5161 return; |
5440 H.throwExpression(t1._badEventState$0()); | 5162 this._unlisten$0(); |
5441 t1._async$_add$1(t2); | 5163 this._target = null; |
5442 } | 5164 this._onData = null; |
| 5165 }, |
| 5166 _tryResume$0: function() { |
| 5167 var t1 = this._onData; |
| 5168 if (t1 != null && this._pauseCount <= 0) |
| 5169 J.addEventListener$3$x(this._target, this._eventType, t1, this._useCapture
); |
| 5170 }, |
| 5171 _unlisten$0: function() { |
| 5172 var t1 = this._onData; |
| 5173 if (t1 != null) |
| 5174 J.removeEventListener$3$x(this._target, this._eventType, t1, this._useCapt
ure); |
| 5175 }, |
| 5176 $asStreamSubscription: null |
5443 }, | 5177 }, |
5444 | 5178 |
5445 Geolocation_watchPosition__closure0: {"": "Closure;box_0", | 5179 EventStreamProvider: {"": "Object;_eventType"}, |
5446 call$1: function(error) { | 5180 |
5447 this.box_0.controller_1.addError$1(error); | 5181 _DOMWindowCrossFrame: {"": "Object;_window", $isEventTarget: true, static: { |
5448 } | 5182 _DOMWindowCrossFrame__createSafe: function(w) { |
| 5183 if (w === window) |
| 5184 return w; |
| 5185 else |
| 5186 return new W._DOMWindowCrossFrame(w); |
| 5187 }} |
5449 }, | 5188 }, |
5450 | 5189 |
5451 Geolocation_watchPosition_closure: {"": "Closure;box_0,this_4", | 5190 HtmlElement: {"": "Element;", "%": "HTMLAppletElement|HTMLBRElement|HTMLBaseFont
Element|HTMLBodyElement|HTMLButtonElement|HTMLCanvasElement|HTMLContentElement|H
TMLDListElement|HTMLDataListElement|HTMLDetailsElement|HTMLDialogElement|HTMLDir
ectoryElement|HTMLDivElement|HTMLEmbedElement|HTMLFieldSetElement|HTMLFontElemen
t|HTMLFrameElement|HTMLFrameSetElement|HTMLHRElement|HTMLHeadElement|HTMLHeading
Element|HTMLHtmlElement|HTMLIFrameElement|HTMLImageElement|HTMLKeygenElement|HTM
LLIElement|HTMLLabelElement|HTMLLegendElement|HTMLLinkElement|HTMLMapElement|HTM
LMarqueeElement|HTMLMenuElement|HTMLMetaElement|HTMLMeterElement|HTMLModElement|
HTMLOListElement|HTMLObjectElement|HTMLOptGroupElement|HTMLOptionElement|HTMLOut
putElement|HTMLParagraphElement|HTMLParamElement|HTMLPreElement|HTMLProgressElem
ent|HTMLQuoteElement|HTMLScriptElement|HTMLShadowElement|HTMLSourceElement|HTMLS
panElement|HTMLStyleElement|HTMLTableCaptionElement|HTMLTableCellElement|HTMLTab
leColElement|HTMLTableDataCellElement|HTMLTableElement|HTMLTableHeaderCellElemen
t|HTMLTableRowElement|HTMLTableSectionElement|HTMLTemplateElement|HTMLTextAreaEl
ement|HTMLTitleElement|HTMLTrackElement|HTMLUListElement|HTMLUnknownElement;HTML
Element"}, |
5452 call$0: function() { | |
5453 this.this_4.clearWatch(this.box_0.watchId_0); | |
5454 } | |
5455 }, | |
5456 | 5191 |
5457 _GeopositionWrapper: {"": "Object;_ptr", | 5192 AnchorElement: {"": "HtmlElement;target=", |
5458 get$coords: function(_) { | |
5459 return this._ptr.coords; | |
5460 }, | |
5461 $isGeoposition: true | |
5462 }, | |
5463 | |
5464 HtmlElement: {"": "Element;", "%": "HTMLAppletElement|HTMLBRElement|HTMLBaseElem
ent|HTMLBaseFontElement|HTMLBodyElement|HTMLButtonElement|HTMLCanvasElement|HTML
ContentElement|HTMLDListElement|HTMLDataListElement|HTMLDetailsElement|HTMLDialo
gElement|HTMLDirectoryElement|HTMLDivElement|HTMLEmbedElement|HTMLFieldSetElemen
t|HTMLFontElement|HTMLFrameElement|HTMLFrameSetElement|HTMLHRElement|HTMLHeadEle
ment|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrameElement|HTMLImageElement|HTMLI
nputElement|HTMLKeygenElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|H
TMLLinkElement|HTMLMapElement|HTMLMarqueeElement|HTMLMenuElement|HTMLMetaElement
|HTMLMeterElement|HTMLModElement|HTMLOListElement|HTMLOptGroupElement|HTMLOption
Element|HTMLOutputElement|HTMLParagraphElement|HTMLParamElement|HTMLPreElement|H
TMLProgressElement|HTMLQuoteElement|HTMLScriptElement|HTMLShadowElement|HTMLSour
ceElement|HTMLSpanElement|HTMLStyleElement|HTMLTableCaptionElement|HTMLTableCell
Element|HTMLTableColElement|HTMLTableDataCellElement|HTMLTableElement|HTMLTableH
eaderCellElement|HTMLTableRowElement|HTMLTableSectionElement|HTMLTemplateElement
|HTMLTextAreaElement|HTMLTitleElement|HTMLTrackElement|HTMLUListElement|HTMLUnkn
ownElement;HTMLElement"}, | |
5465 | |
5466 AnchorElement: {"": "HtmlElement;", | |
5467 toString$0: function(receiver) { | 5193 toString$0: function(receiver) { |
5468 return receiver.toString(); | 5194 return receiver.toString(); |
5469 }, | 5195 }, |
5470 "%": "HTMLAnchorElement" | 5196 "%": "HTMLAnchorElement" |
5471 }, | 5197 }, |
5472 | 5198 |
5473 AreaElement: {"": "HtmlElement;coords=", "%": "HTMLAreaElement"}, | 5199 AreaElement: {"": "HtmlElement;target=", "%": "HTMLAreaElement"}, |
5474 | 5200 |
5475 CloseEvent: {"": "Event;code=", "%": "CloseEvent"}, | 5201 BaseElement: {"": "HtmlElement;target=", "%": "HTMLBaseElement"}, |
5476 | 5202 |
5477 Coordinates: {"": "Interceptor;latitude=,longitude=", "%": "Coordinates"}, | 5203 CharacterData: {"": "Node;length=", "%": "CDATASection|Comment|Text;CharacterDat
a"}, |
5478 | |
5479 CssFontFaceLoadEvent: {"": "Event;error=", "%": "CSSFontFaceLoadEvent"}, | |
5480 | |
5481 DomError: {"": "Interceptor;", "%": ";DOMError"}, | |
5482 | 5204 |
5483 DomException: {"": "Interceptor;", | 5205 DomException: {"": "Interceptor;", |
5484 toString$0: function(receiver) { | 5206 toString$0: function(receiver) { |
5485 return receiver.toString(); | 5207 return receiver.toString(); |
5486 }, | 5208 }, |
5487 "%": "DOMException" | 5209 "%": "DOMException" |
5488 }, | 5210 }, |
5489 | 5211 |
5490 Element: {"": "Node;", | 5212 Element: {"": "Node;", |
5491 toString$0: function(receiver) { | 5213 toString$0: function(receiver) { |
5492 return receiver.localName; | 5214 return receiver.localName; |
5493 }, | 5215 }, |
5494 "%": "SVGAElement|SVGAltGlyphDefElement|SVGAltGlyphElement|SVGAltGlyphItemElem
ent|SVGAnimateColorElement|SVGAnimateElement|SVGAnimateMotionElement|SVGAnimateT
ransformElement|SVGAnimationElement|SVGCircleElement|SVGClipPathElement|SVGCompo
nentTransferFunctionElement|SVGCursorElement|SVGDefsElement|SVGDescElement|SVGEl
ement|SVGEllipseElement|SVGFEBlendElement|SVGFEColorMatrixElement|SVGFEComponent
TransferElement|SVGFECompositeElement|SVGFEConvolveMatrixElement|SVGFEDiffuseLig
htingElement|SVGFEDisplacementMapElement|SVGFEDistantLightElement|SVGFEDropShado
wElement|SVGFEFloodElement|SVGFEFuncAElement|SVGFEFuncBElement|SVGFEFuncGElement
|SVGFEFuncRElement|SVGFEGaussianBlurElement|SVGFEImageElement|SVGFEMergeElement|
SVGFEMergeNodeElement|SVGFEMorphologyElement|SVGFEOffsetElement|SVGFEPointLightE
lement|SVGFESpecularLightingElement|SVGFESpotLightElement|SVGFETileElement|SVGFE
TurbulenceElement|SVGFilterElement|SVGFontElement|SVGFontFaceElement|SVGFontFace
FormatElement|SVGFontFaceNameElement|SVGFontFaceSrcElement|SVGFontFaceUriElement
|SVGForeignObjectElement|SVGGElement|SVGGlyphElement|SVGGlyphRefElement|SVGGradi
entElement|SVGGraphicsElement|SVGHKernElement|SVGImageElement|SVGLineElement|SVG
LinearGradientElement|SVGMPathElement|SVGMarkerElement|SVGMaskElement|SVGMetadat
aElement|SVGMissingGlyphElement|SVGPathElement|SVGPatternElement|SVGPolygonEleme
nt|SVGPolylineElement|SVGRadialGradientElement|SVGRectElement|SVGSVGElement|SVGS
criptElement|SVGSetElement|SVGStopElement|SVGStyleElement|SVGSwitchElement|SVGSy
mbolElement|SVGTRefElement|SVGTSpanElement|SVGTextContentElement|SVGTextElement|
SVGTextPathElement|SVGTextPositioningElement|SVGTitleElement|SVGUseElement|SVGVK
ernElement|SVGViewElement;Element" | 5216 "%": ";Element" |
5495 }, | 5217 }, |
5496 | 5218 |
5497 ErrorEvent: {"": "Event;error=", "%": "ErrorEvent"}, | 5219 ErrorEvent: {"": "Event;error=", "%": "ErrorEvent"}, |
5498 | 5220 |
5499 Event: {"": "Interceptor;", "%": "AudioProcessingEvent|AutocompleteErrorEvent|Be
foreLoadEvent|CompositionEvent|CustomEvent|DeviceMotionEvent|DeviceOrientationEv
ent|DragEvent|FocusEvent|HashChangeEvent|IDBVersionChangeEvent|KeyboardEvent|MID
IConnectionEvent|MIDIMessageEvent|MSPointerEvent|MediaKeyEvent|MediaKeyMessageEv
ent|MediaKeyNeededEvent|MediaStreamEvent|MediaStreamTrackEvent|MessageEvent|Mous
eEvent|MouseScrollEvent|MouseWheelEvent|MutationEvent|OfflineAudioCompletionEven
t|OverflowEvent|PageTransitionEvent|PointerEvent|PopStateEvent|ProgressEvent|RTC
DTMFToneChangeEvent|RTCDataChannelEvent|RTCIceCandidateEvent|ResourceProgressEve
nt|SVGZoomEvent|SecurityPolicyViolationEvent|SpeechInputEvent|SpeechRecognitionE
vent|SpeechSynthesisEvent|StorageEvent|TextEvent|TouchEvent|TrackEvent|Transitio
nEvent|UIEvent|WebGLContextEvent|WebKitAnimationEvent|WebKitTransitionEvent|Whee
lEvent|XMLHttpRequestProgressEvent;Event"}, | 5221 Event: {"": "Interceptor;", |
5500 | 5222 get$target: function(receiver) { |
5501 EventTarget: {"": "Interceptor;", "%": "MediaStream;EventTarget"}, | 5223 return W._convertNativeToDart_EventTarget(receiver.target); |
5502 | |
5503 FileError: {"": "DomError;code=", "%": "FileError"}, | |
5504 | |
5505 FormElement: {"": "HtmlElement;length=", "%": "HTMLFormElement"}, | |
5506 | |
5507 Geolocation: {"": "Interceptor;", | |
5508 getCurrentPosition$3$enableHighAccuracy$maximumAge$timeout: function(receiver,
enableHighAccuracy, maximumAge, timeout) { | |
5509 var options, completer, e, stacktrace, t1, completer0, exception; | |
5510 options = H.fillLiteralMap([], P.LinkedHashMap_LinkedHashMap(null, null, nul
l, null, null)); | |
5511 t1 = W.Geoposition; | |
5512 completer0 = new P._AsyncCompleter(P._Future$(t1)); | |
5513 H.setRuntimeTypeInfo(completer0, [t1]); | |
5514 completer = completer0; | |
5515 try { | |
5516 this._getCurrentPosition$3(receiver, new W.Geolocation_getCurrentPosition_
closure(receiver, completer), new W.Geolocation_getCurrentPosition_closure0(comp
leter), options); | |
5517 } catch (exception) { | |
5518 t1 = H.unwrapException(exception); | |
5519 e = t1; | |
5520 stacktrace = new H._StackTrace(exception, null); | |
5521 t1 = completer.get$future(); | |
5522 if (t1._state !== 0) | |
5523 H.throwExpression(new P.StateError("Future already completed")); | |
5524 t1._asyncCompleteError$2(e, stacktrace); | |
5525 } | |
5526 | |
5527 return completer.get$future(); | |
5528 }, | 5224 }, |
5529 getCurrentPosition$0: function($receiver) { | 5225 "%": "AudioProcessingEvent|AutocompleteErrorEvent|BeforeLoadEvent|BeforeUnload
Event|CSSFontFaceLoadEvent|CloseEvent|CompositionEvent|CustomEvent|DeviceMotionE
vent|DeviceOrientationEvent|DragEvent|FocusEvent|HashChangeEvent|IDBVersionChang
eEvent|KeyboardEvent|MIDIConnectionEvent|MIDIMessageEvent|MSPointerEvent|MediaKe
yEvent|MediaKeyMessageEvent|MediaKeyNeededEvent|MediaStreamEvent|MediaStreamTrac
kEvent|MessageEvent|MouseEvent|MouseScrollEvent|MouseWheelEvent|MutationEvent|Of
flineAudioCompletionEvent|OverflowEvent|PageTransitionEvent|PointerEvent|PopStat
eEvent|ProgressEvent|RTCDTMFToneChangeEvent|RTCDataChannelEvent|RTCIceCandidateE
vent|ResourceProgressEvent|SVGZoomEvent|SecurityPolicyViolationEvent|SpeechInput
Event|SpeechRecognitionEvent|SpeechSynthesisEvent|StorageEvent|TextEvent|TouchEv
ent|TrackEvent|TransitionEvent|UIEvent|WebGLContextEvent|WebKitAnimationEvent|We
bKitTransitionEvent|WheelEvent|XMLHttpRequestProgressEvent;Event" |
5530 return this.getCurrentPosition$3$enableHighAccuracy$maximumAge$timeout($rece
iver, null, null, null); | |
5531 }, | |
5532 watchPosition$3$enableHighAccuracy$maximumAge$timeout: function(receiver, enab
leHighAccuracy, maximumAge, timeout) { | |
5533 var t1, options; | |
5534 t1 = {}; | |
5535 options = H.fillLiteralMap([], P.LinkedHashMap_LinkedHashMap(null, null, nul
l, null, null)); | |
5536 t1.watchId_0 = null; | |
5537 t1.controller_1 = null; | |
5538 t1.controller_1 = P.StreamController_StreamController(new W.Geolocation_watc
hPosition_closure(t1, receiver), new W.Geolocation_watchPosition_closure0(t1, re
ceiver, options), null, null, true, W.Geoposition); | |
5539 t1 = t1.controller_1; | |
5540 t1.toString; | |
5541 t1 = new P._ControllerStream(t1); | |
5542 H.setRuntimeTypeInfo(t1, [null]); | |
5543 return t1; | |
5544 }, | |
5545 watchPosition$0: function($receiver) { | |
5546 return this.watchPosition$3$enableHighAccuracy$maximumAge$timeout($receiver,
null, null, null); | |
5547 }, | |
5548 _ensurePosition$1: function(receiver, domPosition) { | |
5549 var t1, t2, exception; | |
5550 try { | |
5551 t1 = domPosition; | |
5552 t2 = J.getInterceptor(t1); | |
5553 if (typeof t1 === "object" && t1 !== null && !!t2.$isGeoposition) | |
5554 return domPosition; | |
5555 } catch (exception) { | |
5556 H.unwrapException(exception); | |
5557 } | |
5558 | |
5559 return new W._GeopositionWrapper(domPosition); | |
5560 }, | |
5561 _getCurrentPosition$3: function(receiver, successCallback, errorCallback, opti
ons) { | |
5562 return receiver.getCurrentPosition(H.convertDartClosureToJS(successCallback,
1), H.convertDartClosureToJS(errorCallback, 1), options); | |
5563 }, | |
5564 _watchPosition$3: function(receiver, successCallback, errorCallback, options)
{ | |
5565 return receiver.watchPosition(H.convertDartClosureToJS(successCallback, 1),
H.convertDartClosureToJS(errorCallback, 1), options); | |
5566 }, | |
5567 "%": "Geolocation" | |
5568 }, | 5226 }, |
5569 | 5227 |
5570 Geoposition: {"": "Interceptor;coords=", $isGeoposition: true, "%": "Geoposition
"}, | 5228 EventTarget: {"": "Interceptor;", |
| 5229 addEventListener$3: function(receiver, type, listener, useCapture) { |
| 5230 return receiver.addEventListener(type, H.convertDartClosureToJS(listener, 1)
, useCapture); |
| 5231 }, |
| 5232 removeEventListener$3: function(receiver, type, listener, useCapture) { |
| 5233 return receiver.removeEventListener(type, H.convertDartClosureToJS(listener,
1), useCapture); |
| 5234 }, |
| 5235 $isEventTarget: true, |
| 5236 "%": "MediaStream;EventTarget" |
| 5237 }, |
| 5238 |
| 5239 FormElement: {"": "HtmlElement;length=,target=", "%": "HTMLFormElement"}, |
| 5240 |
| 5241 InputElement: {"": "HtmlElement;", $isInputElement: true, $isEventTarget: true,
"%": "HTMLInputElement"}, |
5571 | 5242 |
5572 MediaElement: {"": "HtmlElement;error=", "%": "HTMLAudioElement|HTMLMediaElement
|HTMLVideoElement"}, | 5243 MediaElement: {"": "HtmlElement;error=", "%": "HTMLAudioElement|HTMLMediaElement
|HTMLVideoElement"}, |
5573 | 5244 |
5574 MediaError: {"": "Interceptor;code=", "%": "MediaError"}, | |
5575 | |
5576 MediaKeyError: {"": "Interceptor;code=", "%": "MediaKeyError"}, | |
5577 | |
5578 Node: {"": "EventTarget;", | 5245 Node: {"": "EventTarget;", |
5579 toString$0: function(receiver) { | 5246 toString$0: function(receiver) { |
5580 var t1 = receiver.nodeValue; | 5247 var t1 = receiver.nodeValue; |
5581 return t1 == null ? J.Interceptor.prototype.toString$0.call(this, receiver)
: t1; | 5248 return t1 == null ? J.Interceptor.prototype.toString$0.call(this, receiver)
: t1; |
5582 }, | 5249 }, |
5583 "%": "Document|HTMLDocument;Node" | 5250 "%": "Attr|Document|DocumentFragment|DocumentType|Entity|HTMLDocument|Notation
|SVGDocument|ShadowRoot;Node" |
5584 }, | 5251 }, |
5585 | 5252 |
5586 ObjectElement: {"": "HtmlElement;code=", "%": "HTMLObjectElement"}, | 5253 ProcessingInstruction: {"": "CharacterData;target=", "%": "ProcessingInstruction
"}, |
5587 | |
5588 PositionError: {"": "Interceptor;code=", "%": "PositionError"}, | |
5589 | 5254 |
5590 SelectElement: {"": "HtmlElement;length=", "%": "HTMLSelectElement"}, | 5255 SelectElement: {"": "HtmlElement;length=", "%": "HTMLSelectElement"}, |
5591 | 5256 |
5592 SpeechRecognitionError: {"": "Event;error=", "%": "SpeechRecognitionError"}, | 5257 SpeechRecognitionError: {"": "Event;error=", "%": "SpeechRecognitionError"}, |
5593 | 5258 |
5594 Window: {"": "EventTarget;", | 5259 Window: {"": "EventTarget;", |
5595 toString$0: function(receiver) { | 5260 toString$0: function(receiver) { |
5596 return receiver.toString(); | 5261 return receiver.toString(); |
5597 }, | 5262 }, |
| 5263 $isEventTarget: true, |
5598 "%": "DOMWindow|Window" | 5264 "%": "DOMWindow|Window" |
5599 }}], | 5265 }}], |
5600 ["dart.dom.web_sql", "dart:web_sql", , P, { | 5266 ["dart.dom.svg", "dart:svg", , P, { |
5601 SqlError: {"": "Interceptor;code=", "%": "SQLError"}}], | 5267 AElement: {"": "GraphicsElement;target=", "%": "SVGAElement"}, |
| 5268 |
| 5269 GraphicsElement: {"": "SvgElement;", "%": "SVGAltGlyphElement|SVGCircleElement|S
VGClipPathElement|SVGDefsElement|SVGEllipseElement|SVGForeignObjectElement|SVGGE
lement|SVGImageElement|SVGLineElement|SVGPathElement|SVGPolygonElement|SVGPolyli
neElement|SVGRectElement|SVGSVGElement|SVGSwitchElement|SVGTSpanElement|SVGTextC
ontentElement|SVGTextElement|SVGTextPathElement|SVGTextPositioningElement|SVGUse
Element;SVGGraphicsElement"}, |
| 5270 |
| 5271 SvgElement: {"": "Element;", "%": "SVGAltGlyphDefElement|SVGAltGlyphItemElement|
SVGAnimateColorElement|SVGAnimateElement|SVGAnimateMotionElement|SVGAnimateTrans
formElement|SVGAnimationElement|SVGComponentTransferFunctionElement|SVGCursorEle
ment|SVGDescElement|SVGFEBlendElement|SVGFEColorMatrixElement|SVGFEComponentTran
sferElement|SVGFECompositeElement|SVGFEConvolveMatrixElement|SVGFEDiffuseLightin
gElement|SVGFEDisplacementMapElement|SVGFEDistantLightElement|SVGFEDropShadowEle
ment|SVGFEFloodElement|SVGFEFuncAElement|SVGFEFuncBElement|SVGFEFuncGElement|SVG
FEFuncRElement|SVGFEGaussianBlurElement|SVGFEImageElement|SVGFEMergeElement|SVGF
EMergeNodeElement|SVGFEMorphologyElement|SVGFEOffsetElement|SVGFEPointLightEleme
nt|SVGFESpecularLightingElement|SVGFESpotLightElement|SVGFETileElement|SVGFETurb
ulenceElement|SVGFilterElement|SVGFontElement|SVGFontFaceElement|SVGFontFaceForm
atElement|SVGFontFaceNameElement|SVGFontFaceSrcElement|SVGFontFaceUriElement|SVG
GlyphElement|SVGGlyphRefElement|SVGGradientElement|SVGHKernElement|SVGLinearGrad
ientElement|SVGMPathElement|SVGMarkerElement|SVGMaskElement|SVGMetadataElement|S
VGMissingGlyphElement|SVGPatternElement|SVGRadialGradientElement|SVGScriptElemen
t|SVGSetElement|SVGStopElement|SVGStyleElement|SVGSymbolElement|SVGTitleElement|
SVGVKernElement|SVGViewElement;SVGElement"}}], |
5602 ["dart.isolate", "dart:isolate", , P, { | 5272 ["dart.isolate", "dart:isolate", , P, { |
5603 _Isolate_port: function() { | |
5604 if ($.lazyPort == null) | |
5605 $.lazyPort = H.ReceivePortImpl$(); | |
5606 return $.lazyPort; | |
5607 }, | |
5608 | |
5609 ReceivePort: {"": "Object;"}}], | 5273 ReceivePort: {"": "Object;"}}], |
5610 ["dart.typed_data", "dart:typed_data", , P, { | 5274 ["dart.typed_data", "dart:typed_data", , P, { |
5611 TypedData_ListMixin: {"": "TypedData+ListMixin;", $isList: true, $asList: null,
$isEfficientLength: true}, | 5275 TypedData_ListMixin: {"": "TypedData+ListMixin;", $isList: true, $asList: null,
$isEfficientLength: true}, |
5612 | 5276 |
5613 TypedData_ListMixin_FixedLengthListMixin: {"": "TypedData_ListMixin+FixedLengthL
istMixin;", $asList: null}, | 5277 TypedData_ListMixin_FixedLengthListMixin: {"": "TypedData_ListMixin+FixedLengthL
istMixin;", $asList: null}, |
5614 | 5278 |
5615 TypedData: {"": "Interceptor;", | 5279 TypedData: {"": "Interceptor;", |
5616 _invalidIndex$2: function(receiver, index, $length) { | 5280 _invalidIndex$2: function(receiver, index, $length) { |
5617 var t1 = J.getInterceptor$n(index); | 5281 var t1 = J.getInterceptor$n(index); |
5618 if (t1.$lt(index, 0) || t1.$ge(index, $length)) | 5282 if (t1.$lt(index, 0) || t1.$ge(index, $length)) |
5619 throw H.wrapException(P.RangeError$range(index, 0, $length)); | 5283 throw H.wrapException(P.RangeError$range(index, 0, $length)); |
5620 else | 5284 else |
5621 throw H.wrapException(P.ArgumentError$("Invalid list index " + H.S(index))
); | 5285 throw H.wrapException(new P.ArgumentError("Invalid list index " + H.S(inde
x))); |
5622 }, | 5286 }, |
5623 "%": ";ArrayBufferView;TypedData_ListMixin|TypedData_ListMixin_FixedLengthList
Mixin" | 5287 "%": ";ArrayBufferView;TypedData_ListMixin|TypedData_ListMixin_FixedLengthList
Mixin" |
5624 }, | 5288 }, |
5625 | 5289 |
5626 Uint8List: {"": "TypedData_ListMixin_FixedLengthListMixin;", | 5290 Uint8List: {"": "TypedData_ListMixin_FixedLengthListMixin;", |
5627 get$length: function(receiver) { | 5291 get$length: function(receiver) { |
5628 return C.JS_CONST_ZYJ(receiver); | 5292 return C.JS_CONST_ZYJ(receiver); |
5629 }, | 5293 }, |
5630 $index: function(receiver, index) { | 5294 $index: function(receiver, index) { |
5631 var t1; | |
5632 if (typeof index !== "number") | |
5633 return this.$$index$bailout(1, receiver, index); | |
5634 t1 = C.JS_CONST_ZYJ(receiver); | |
5635 if (index >>> 0 != index || index >= t1) | |
5636 this._invalidIndex$2(receiver, index, t1); | |
5637 return receiver[index]; | |
5638 }, | |
5639 $$index$bailout: function(state0, receiver, index) { | |
5640 var t1 = C.JS_CONST_ZYJ(receiver); | 5295 var t1 = C.JS_CONST_ZYJ(receiver); |
5641 if (index >>> 0 != index || J.$ge$n(index, t1)) | 5296 if (index >>> 0 != index || J.$ge$n(index, t1)) |
5642 this._invalidIndex$2(receiver, index, t1); | 5297 this._invalidIndex$2(receiver, index, t1); |
5643 return receiver[index]; | 5298 return receiver[index]; |
5644 }, | 5299 }, |
5645 $indexSet: function(receiver, index, value) { | 5300 $indexSet: function(receiver, index, value) { |
5646 var t1; | |
5647 if (typeof index !== "number") | |
5648 return this.$$indexSet$bailout(1, receiver, index, value); | |
5649 t1 = C.JS_CONST_ZYJ(receiver); | |
5650 if (index >>> 0 != index || index >= t1) | |
5651 this._invalidIndex$2(receiver, index, t1); | |
5652 receiver[index] = value; | |
5653 }, | |
5654 $$indexSet$bailout: function(state0, receiver, index, value) { | |
5655 var t1 = C.JS_CONST_ZYJ(receiver); | 5301 var t1 = C.JS_CONST_ZYJ(receiver); |
5656 if (index >>> 0 != index || J.$ge$n(index, t1)) | 5302 if (index >>> 0 != index || J.$ge$n(index, t1)) |
5657 this._invalidIndex$2(receiver, index, t1); | 5303 this._invalidIndex$2(receiver, index, t1); |
5658 receiver[index] = value; | 5304 receiver[index] = value; |
5659 }, | 5305 }, |
5660 $asList: function() { | 5306 $asList: function() { |
5661 return [J.JSInt]; | 5307 return [J.JSInt]; |
5662 }, | 5308 }, |
5663 $isList: true, | 5309 $isList: true, |
5664 $isEfficientLength: true, | 5310 $isEfficientLength: true, |
5665 $isJavaScriptIndexingBehavior: true, | 5311 $isJavaScriptIndexingBehavior: true, |
5666 "%": ";Uint8Array" | 5312 "%": ";Uint8Array" |
5667 }}], | 5313 }}], |
5668 ["trip_meter.dart", "trip_meter.dart", , E, { | 5314 ["", "piratebadge.dart", , A, { |
5669 calculateDistance: function(lat1, lon1, lat2, lon2) { | 5315 main: function() { |
5670 var t1, t2, t3, t4, a; | 5316 var t1, t2; |
5671 if (typeof lat2 !== "number") | 5317 t1 = document.querySelector("#inputName"); |
5672 throw lat2.$sub(); | 5318 t1.toString; |
5673 if (typeof lat1 !== "number") | 5319 t1 = new W._ElementEventStreamImpl(t1, C.EventStreamProvider_input._eventType,
false); |
5674 throw H.iae(lat1); | 5320 H.setRuntimeTypeInfo(t1, [null]); |
5675 if (typeof lon2 !== "number") | 5321 t2 = new W._EventStreamSubscription(0, t1._target, t1._eventType, W._wrapZone(
A.updateBadge$closure), t1._useCapture); |
5676 throw lon2.$sub(); | 5322 H.setRuntimeTypeInfo(t2, [H.getRuntimeTypeArgument(t1, "_EventStream", 0)]); |
5677 if (typeof lon1 !== "number") | 5323 t2._tryResume$0(); |
5678 throw H.iae(lon1); | |
5679 t1 = Math.sin((lat2 - lat1) / 2); | |
5680 t1 = Math.pow(t1, 2); | |
5681 t2 = Math.cos(lat1); | |
5682 t3 = Math.cos(lat2); | |
5683 t4 = Math.sin((lon2 - lon1) / 2); | |
5684 a = t1 + t2 * t3 * Math.pow(t4, 2); | |
5685 t1 = Math.sqrt(a); | |
5686 t2 = Math.sqrt(1 - a); | |
5687 return 6371 * (2 * Math.atan2(t1, t2)); | |
5688 }, | 5324 }, |
5689 | 5325 |
5690 main: function() { | 5326 updateBadge: function(e) { |
5691 var t1 = {}; | 5327 document.querySelector("#badgeName").textContent = H.interceptedTypeCast(J.get
$target$x(e), "$isInputElement").value; |
5692 t1.startPosition_0 = null; | |
5693 J.getCurrentPosition$0$x(window.navigator.geolocation).then$2$onError(new E.ma
in_closure(t1), new E.main_closure0()); | |
5694 J.watchPosition$0$x(window.navigator.geolocation).listen$2$onError(new E.main_
closure1(t1), new E.main_closure2()); | |
5695 }, | |
5696 | |
5697 main_closure: {"": "Closure;box_0", | |
5698 call$1: function(position) { | |
5699 var t1 = this.box_0; | |
5700 t1.startPosition_0 = position; | |
5701 document.querySelector("#start-lat").textContent = H.S(J.get$latitude$x(J.ge
t$coords$x(t1.startPosition_0))); | |
5702 document.querySelector("#start-lon").textContent = H.S(J.get$longitude$x(J.g
et$coords$x(t1.startPosition_0))); | |
5703 } | |
5704 }, | |
5705 | |
5706 main_closure0: {"": "Closure;", | |
5707 call$1: function(error) { | |
5708 window.alert("Error occurred. Error code: " + H.S(J.get$code$x(error))); | |
5709 return; | |
5710 } | |
5711 }, | |
5712 | |
5713 main_closure1: {"": "Closure;box_0", | |
5714 call$1: function(position) { | |
5715 var t1, t2, distance; | |
5716 t1 = J.getInterceptor$x(position); | |
5717 document.querySelector("#current-lat").textContent = H.S(J.get$latitude$x(t1
.get$coords(position))); | |
5718 document.querySelector("#current-lon").textContent = H.S(J.get$longitude$x(t
1.get$coords(position))); | |
5719 t2 = this.box_0; | |
5720 distance = E.calculateDistance(J.get$latitude$x(J.get$coords$x(t2.startPosit
ion_0)), J.get$longitude$x(J.get$coords$x(t2.startPosition_0)), J.get$latitude$x
(t1.get$coords(position)), J.get$longitude$x(t1.get$coords(position))); | |
5721 document.querySelector("#distance").textContent = H.S(distance); | |
5722 } | |
5723 }, | |
5724 | |
5725 main_closure2: {"": "Closure;", | |
5726 call$1: function(error) { | |
5727 window.alert("Error occurred. Error code: " + H.S(J.get$code$x(error))); | |
5728 return; | |
5729 } | |
5730 }}, | 5328 }}, |
5731 1], | 5329 1], |
5732 ]); | 5330 ]); |
5733 Isolate.$finishClasses($$, $, null); | 5331 Isolate.$finishClasses($$, $, null); |
5734 $$ = null; | 5332 $$ = null; |
5735 | 5333 |
5736 // Static function getters | 5334 // Static function getters |
5737 init.globalFunctions.IsolateNatives__processWorkerMessage$closure = H.IsolateNat
ives__processWorkerMessage$closure = new H.Closure$2(H.IsolateNatives__processWo
rkerMessage, "IsolateNatives__processWorkerMessage$closure"); | 5335 init.globalFunctions.IsolateNatives__processWorkerMessage$closure = H.IsolateNat
ives__processWorkerMessage$closure = new H.Closure$2(H.IsolateNatives__processWo
rkerMessage, "IsolateNatives__processWorkerMessage$closure"); |
5738 init.globalFunctions.toStringWrapper$closure = H.toStringWrapper$closure = new H
.Closure$0(H.toStringWrapper, "toStringWrapper$closure"); | 5336 init.globalFunctions.toStringWrapper$closure = H.toStringWrapper$closure = new H
.Closure$0(H.toStringWrapper, "toStringWrapper$closure"); |
5739 init.globalFunctions.invokeClosure$closure = H.invokeClosure$closure = new H.Clo
sure$7(H.invokeClosure, "invokeClosure$closure"); | 5337 init.globalFunctions.invokeClosure$closure = H.invokeClosure$closure = new H.Clo
sure$7(H.invokeClosure, "invokeClosure$closure"); |
5740 init.globalFunctions.typeNameInChrome$closure = H.typeNameInChrome$closure = new
H.Closure$1(H.typeNameInChrome, "typeNameInChrome$closure"); | 5338 init.globalFunctions.typeNameInChrome$closure = H.typeNameInChrome$closure = new
H.Closure$1(H.typeNameInChrome, "typeNameInChrome$closure"); |
5741 init.globalFunctions.typeNameInSafari$closure = H.typeNameInSafari$closure = new
H.Closure$1(H.typeNameInSafari, "typeNameInSafari$closure"); | 5339 init.globalFunctions.typeNameInSafari$closure = H.typeNameInSafari$closure = new
H.Closure$1(H.typeNameInSafari, "typeNameInSafari$closure"); |
5742 init.globalFunctions.typeNameInOpera$closure = H.typeNameInOpera$closure = new H
.Closure$1(H.typeNameInOpera, "typeNameInOpera$closure"); | 5340 init.globalFunctions.typeNameInOpera$closure = H.typeNameInOpera$closure = new H
.Closure$1(H.typeNameInOpera, "typeNameInOpera$closure"); |
5743 init.globalFunctions.typeNameInFirefox$closure = H.typeNameInFirefox$closure = n
ew H.Closure$1(H.typeNameInFirefox, "typeNameInFirefox$closure"); | 5341 init.globalFunctions.typeNameInFirefox$closure = H.typeNameInFirefox$closure = n
ew H.Closure$1(H.typeNameInFirefox, "typeNameInFirefox$closure"); |
5744 init.globalFunctions.typeNameInIE$closure = H.typeNameInIE$closure = new H.Closu
re$1(H.typeNameInIE, "typeNameInIE$closure"); | 5342 init.globalFunctions.typeNameInIE$closure = H.typeNameInIE$closure = new H.Closu
re$1(H.typeNameInIE, "typeNameInIE$closure"); |
5745 init.globalFunctions.constructorNameFallback$closure = H.constructorNameFallback
$closure = new H.Closure$1(H.constructorNameFallback, "constructorNameFallback$c
losure"); | 5343 init.globalFunctions.constructorNameFallback$closure = H.constructorNameFallback
$closure = new H.Closure$1(H.constructorNameFallback, "constructorNameFallback$c
losure"); |
5746 init.globalFunctions.callDartFunctionWith1Arg$closure = H.callDartFunctionWith1A
rg$closure = new H.Closure$2(H.callDartFunctionWith1Arg, "callDartFunctionWith1A
rg$closure"); | 5344 init.globalFunctions.callDartFunctionWith1Arg$closure = H.callDartFunctionWith1A
rg$closure = new H.Closure$2(H.callDartFunctionWith1Arg, "callDartFunctionWith1A
rg$closure"); |
5747 init.globalFunctions._asyncRunCallback$closure = P._asyncRunCallback$closure = n
ew H.Closure$0(P._asyncRunCallback, "_asyncRunCallback$closure"); | 5345 init.globalFunctions._asyncRunCallback$closure = P._asyncRunCallback$closure = n
ew H.Closure$0(P._asyncRunCallback, "_asyncRunCallback$closure"); |
5748 init.globalFunctions._nullDataHandler$closure = P._nullDataHandler$closure = new
H.Closure$1(P._nullDataHandler, "_nullDataHandler$closure"); | 5346 init.globalFunctions._nullDataHandler$closure = P._nullDataHandler$closure = new
H.Closure$1(P._nullDataHandler, "_nullDataHandler$closure"); |
5749 init.globalFunctions._nullErrorHandler$closure = P._nullErrorHandler$closure = n
ew P.Closure$21(P._nullErrorHandler, "_nullErrorHandler$closure"); | 5347 init.globalFunctions._nullErrorHandler$closure = P._nullErrorHandler$closure = n
ew P.Closure$21(P._nullErrorHandler, "_nullErrorHandler$closure"); |
5750 init.globalFunctions._nullDoneHandler$closure = P._nullDoneHandler$closure = new
H.Closure$0(P._nullDoneHandler, "_nullDoneHandler$closure"); | 5348 init.globalFunctions._nullDoneHandler$closure = P._nullDoneHandler$closure = new
H.Closure$0(P._nullDoneHandler, "_nullDoneHandler$closure"); |
5751 init.globalFunctions._defaultEquals$closure = P._defaultEquals$closure = new H.C
losure$2(P._defaultEquals, "_defaultEquals$closure"); | 5349 init.globalFunctions._defaultEquals$closure = P._defaultEquals$closure = new H.C
losure$2(P._defaultEquals, "_defaultEquals$closure"); |
5752 init.globalFunctions._defaultHashCode$closure = P._defaultHashCode$closure = new
H.Closure$1(P._defaultHashCode, "_defaultHashCode$closure"); | 5350 init.globalFunctions._defaultHashCode$closure = P._defaultHashCode$closure = new
H.Closure$1(P._defaultHashCode, "_defaultHashCode$closure"); |
5753 init.globalFunctions.identical$closure = P.identical$closure = new H.Closure$2(P
.identical, "identical$closure"); | 5351 init.globalFunctions.identical$closure = P.identical$closure = new H.Closure$2(P
.identical, "identical$closure"); |
5754 init.globalFunctions.identityHashCode$closure = P.identityHashCode$closure = new
H.Closure$1(P.identityHashCode, "identityHashCode$closure"); | 5352 init.globalFunctions.identityHashCode$closure = P.identityHashCode$closure = new
H.Closure$1(P.identityHashCode, "identityHashCode$closure"); |
5755 init.globalFunctions.main$closure = E.main$closure = new H.Closure$0(E.main, "ma
in$closure"); | 5353 init.globalFunctions.main$closure = A.main$closure = new H.Closure$0(A.main, "ma
in$closure"); |
| 5354 init.globalFunctions.updateBadge$closure = A.updateBadge$closure = new H.Closure
$1(A.updateBadge, "updateBadge$closure"); |
5756 // Runtime type support | 5355 // Runtime type support |
5757 J.JSInt.$isint = true; | 5356 J.JSInt.$isint = true; |
5758 J.JSInt.$isObject = true; | 5357 J.JSInt.$isObject = true; |
5759 J.JSString.$isString = true; | 5358 J.JSString.$isString = true; |
5760 J.JSString.$isObject = true; | 5359 J.JSString.$isObject = true; |
5761 J.JSNumber.$isObject = true; | 5360 J.JSNumber.$isObject = true; |
5762 P.Duration.$isObject = true; | 5361 P.Duration.$isObject = true; |
5763 W.Geoposition.$isGeoposition = true; | 5362 W.Event.$isEvent = true; |
5764 W.Geoposition.$isObject = true; | 5363 W.Event.$isObject = true; |
5765 P.ReceivePort.$isObject = true; | 5364 P.ReceivePort.$isObject = true; |
5766 H._IsolateEvent.$isObject = true; | 5365 H._IsolateEvent.$isObject = true; |
5767 H._IsolateContext.$isObject = true; | 5366 H._IsolateContext.$isObject = true; |
5768 J.JSArray.$isObject = true; | 5367 J.JSArray.$isObject = true; |
5769 P.Symbol.$isSymbol = true; | 5368 P.Symbol.$isSymbol = true; |
5770 P.Symbol.$isObject = true; | 5369 P.Symbol.$isObject = true; |
5771 P.StackTrace.$isStackTrace = true; | 5370 P.StackTrace.$isStackTrace = true; |
5772 P.StackTrace.$isObject = true; | 5371 P.StackTrace.$isObject = true; |
5773 P.Future.$isFuture = true; | |
5774 P.Future.$isObject = true; | |
5775 P.Object.$isObject = true; | 5372 P.Object.$isObject = true; |
5776 P.Function.$isFunction = true; | 5373 P.Function.$isFunction = true; |
5777 P.Function.$isObject = true; | 5374 P.Function.$isObject = true; |
5778 J.JSBool.$isbool = true; | 5375 J.JSBool.$isbool = true; |
5779 J.JSBool.$isObject = true; | 5376 J.JSBool.$isObject = true; |
| 5377 P._EventSink.$is_EventSink = true; |
| 5378 P._EventSink.$isObject = true; |
| 5379 P.Future.$isFuture = true; |
| 5380 P.Future.$isObject = true; |
5780 P.StreamSubscription.$isStreamSubscription = true; | 5381 P.StreamSubscription.$isStreamSubscription = true; |
5781 P.StreamSubscription.$isObject = true; | 5382 P.StreamSubscription.$isObject = true; |
5782 P._EventSink.$is_EventSink = true; | |
5783 P._EventSink.$isObject = true; | |
5784 // getInterceptor methods | 5383 // getInterceptor methods |
5785 J.getInterceptor = function(receiver) { | 5384 J.getInterceptor = function(receiver) { |
5786 if (typeof receiver == "number") { | 5385 if (typeof receiver == "number") { |
5787 if (Math.floor(receiver) == receiver) | 5386 if (Math.floor(receiver) == receiver) |
5788 return J.JSInt.prototype; | 5387 return J.JSInt.prototype; |
5789 return J.JSDouble.prototype; | 5388 return J.JSDouble.prototype; |
5790 } | 5389 } |
5791 if (typeof receiver == "string") | 5390 if (typeof receiver == "string") |
5792 return J.JSString.prototype; | 5391 return J.JSString.prototype; |
5793 if (receiver == null) | 5392 if (receiver == null) |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5846 }; | 5445 }; |
5847 J.getInterceptor$x = function(receiver) { | 5446 J.getInterceptor$x = function(receiver) { |
5848 if (receiver == null) | 5447 if (receiver == null) |
5849 return receiver; | 5448 return receiver; |
5850 if (typeof receiver != "object") | 5449 if (typeof receiver != "object") |
5851 return receiver; | 5450 return receiver; |
5852 if (receiver instanceof P.Object) | 5451 if (receiver instanceof P.Object) |
5853 return receiver; | 5452 return receiver; |
5854 return J.getNativeInterceptor(receiver); | 5453 return J.getNativeInterceptor(receiver); |
5855 }; | 5454 }; |
5856 C.C_CloseToken = new H.CloseToken(); | |
5857 C.C_UnknownJavaScriptObject = new J.UnknownJavaScriptObject(); | 5455 C.C_UnknownJavaScriptObject = new J.UnknownJavaScriptObject(); |
| 5456 C.C__DelayedDone = new P._DelayedDone(); |
5858 C.C__RootZone = new P._RootZone(); | 5457 C.C__RootZone = new P._RootZone(); |
5859 C.Duration_0 = new P.Duration(0); | 5458 C.Duration_0 = new P.Duration(0); |
5860 C.Geolocation_methods = W.Geolocation.prototype; | 5459 C.EventStreamProvider_input = new W.EventStreamProvider("input"); |
5861 C.JSArray_methods = J.JSArray.prototype; | 5460 C.JSArray_methods = J.JSArray.prototype; |
5862 C.JSInt_methods = J.JSInt.prototype; | 5461 C.JSInt_methods = J.JSInt.prototype; |
5863 C.JSNumber_methods = J.JSNumber.prototype; | 5462 C.JSNumber_methods = J.JSNumber.prototype; |
5864 C.JSString_methods = J.JSString.prototype; | 5463 C.JSString_methods = J.JSString.prototype; |
5865 C.JS_CONST_ZYJ = ((typeof version == "function" && typeof os == "object" &&
"system" in os) | 5464 C.JS_CONST_ZYJ = ((typeof version == "function" && typeof os == "object" &&
"system" in os) |
5866 || (typeof navigator == "object" | 5465 || (typeof navigator == "object" |
5867 && navigator.userAgent.indexOf('Chrome') != -1)) | 5466 && navigator.userAgent.indexOf('Chrome') != -1)) |
5868 ? function(x) { return x.$dartCachedLength || x.length; } | 5467 ? function(x) { return x.$dartCachedLength || x.length; } |
5869 : function(x) { return x.length; }; | 5468 : function(x) { return x.length; }; |
5870 ; | 5469 ; |
5871 Isolate.makeConstantList = function(list) { | 5470 Isolate.makeConstantList = function(list) { |
5872 list.immutable$list = true; | 5471 list.immutable$list = true; |
5873 list.fixed$length = true; | 5472 list.fixed$length = true; |
5874 return list; | 5473 return list; |
5875 }; | 5474 }; |
5876 C.List_empty = Isolate.makeConstantList([]); | 5475 C.List_empty = Isolate.makeConstantList([]); |
5877 $.lazyPort = null; | 5476 $.lazyPort = null; |
5878 $.ReceivePortImpl__nextFreeId = 1; | 5477 $.ReceivePortImpl__nextFreeId = 1; |
5879 $.Primitives_mirrorFunctionCacheName = "$cachedFunction"; | 5478 $.Primitives_mirrorFunctionCacheName = "$cachedFunction"; |
5880 $.Primitives_mirrorInvokeCacheName = "$cachedInvocation"; | 5479 $.Primitives_mirrorInvokeCacheName = "$cachedInvocation"; |
| 5480 $.initNativeDispatchFlag = null; |
5881 $.printToZone = null; | 5481 $.printToZone = null; |
5882 $._callbacksAreEnqueued = false; | 5482 $._callbacksAreEnqueued = false; |
5883 $.Zone__current = C.C__RootZone; | 5483 $.Zone__current = C.C__RootZone; |
5884 $.Expando__keyCount = 0; | 5484 $.Expando__keyCount = 0; |
5885 $.Device__isOpera = null; | 5485 $.Device__isOpera = null; |
5886 $.Device__isWebKit = null; | 5486 $.Device__isWebKit = null; |
5887 J.$eq = function(receiver, a0) { | 5487 J.$eq = function(receiver, a0) { |
5888 if (receiver == null) | 5488 if (receiver == null) |
5889 return a0 == null; | 5489 return a0 == null; |
5890 if (typeof receiver != "object") | 5490 if (typeof receiver != "object") |
5891 return a0 != null && receiver === a0; | 5491 return a0 != null && receiver === a0; |
5892 return J.getInterceptor(receiver).$eq(receiver, a0); | 5492 return J.getInterceptor(receiver).$eq(receiver, a0); |
5893 }; | 5493 }; |
5894 J.$ge$n = function(receiver, a0) { | 5494 J.$ge$n = function(receiver, a0) { |
5895 if (typeof receiver == "number" && typeof a0 == "number") | 5495 if (typeof receiver == "number" && typeof a0 == "number") |
5896 return receiver >= a0; | 5496 return receiver >= a0; |
5897 return J.getInterceptor$n(receiver).$ge(receiver, a0); | 5497 return J.getInterceptor$n(receiver).$ge(receiver, a0); |
5898 }; | 5498 }; |
5899 J.$index$asx = function(receiver, a0) { | 5499 J.$index$asx = function(receiver, a0) { |
5900 if (receiver.constructor == Array || typeof receiver == "string" || H.isJsInde
xable(receiver, receiver[init.dispatchPropertyName])) | 5500 if (receiver.constructor == Array || typeof receiver == "string" || H.isJsInde
xable(receiver, receiver[init.dispatchPropertyName])) |
5901 if (a0 >>> 0 === a0 && a0 < receiver.length) | 5501 if (a0 >>> 0 === a0 && a0 < receiver.length) |
5902 return receiver[a0]; | 5502 return receiver[a0]; |
5903 return J.getInterceptor$asx(receiver).$index(receiver, a0); | 5503 return J.getInterceptor$asx(receiver).$index(receiver, a0); |
5904 }; | 5504 }; |
5905 J.$indexSet$ax = function(receiver, a0, a1) { | 5505 J.$indexSet$ax = function(receiver, a0, a1) { |
5906 if ((receiver.constructor == Array || H.isJsIndexable(receiver, receiver[init.
dispatchPropertyName])) && !receiver.immutable$list && a0 >>> 0 === a0 && a0 < r
eceiver.length) | 5506 if ((receiver.constructor == Array || H.isJsIndexable(receiver, receiver[init.
dispatchPropertyName])) && !receiver.immutable$list && a0 >>> 0 === a0 && a0 < r
eceiver.length) |
5907 return receiver[a0] = a1; | 5507 return receiver[a0] = a1; |
5908 return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1); | 5508 return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1); |
5909 }; | 5509 }; |
5910 J.add$1$ax = function(receiver, a0) { | 5510 J.addEventListener$3$x = function(receiver, a0, a1, a2) { |
5911 return J.getInterceptor$ax(receiver).add$1(receiver, a0); | 5511 return J.getInterceptor$x(receiver).addEventListener$3(receiver, a0, a1, a2); |
5912 }; | 5512 }; |
5913 J.forEach$1$ax = function(receiver, a0) { | 5513 J.forEach$1$ax = function(receiver, a0) { |
5914 return J.getInterceptor$ax(receiver).forEach$1(receiver, a0); | 5514 return J.getInterceptor$ax(receiver).forEach$1(receiver, a0); |
5915 }; | 5515 }; |
5916 J.get$code$x = function(receiver) { | |
5917 return J.getInterceptor$x(receiver).get$code(receiver); | |
5918 }; | |
5919 J.get$coords$x = function(receiver) { | |
5920 return J.getInterceptor$x(receiver).get$coords(receiver); | |
5921 }; | |
5922 J.get$error$x = function(receiver) { | 5516 J.get$error$x = function(receiver) { |
5923 return J.getInterceptor$x(receiver).get$error(receiver); | 5517 return J.getInterceptor$x(receiver).get$error(receiver); |
5924 }; | 5518 }; |
5925 J.get$hashCode$ = function(receiver) { | 5519 J.get$hashCode$ = function(receiver) { |
5926 return J.getInterceptor(receiver).get$hashCode(receiver); | 5520 return J.getInterceptor(receiver).get$hashCode(receiver); |
5927 }; | 5521 }; |
5928 J.get$iterator$ax = function(receiver) { | 5522 J.get$iterator$ax = function(receiver) { |
5929 return J.getInterceptor$ax(receiver).get$iterator(receiver); | 5523 return J.getInterceptor$ax(receiver).get$iterator(receiver); |
5930 }; | 5524 }; |
5931 J.get$latitude$x = function(receiver) { | |
5932 return J.getInterceptor$x(receiver).get$latitude(receiver); | |
5933 }; | |
5934 J.get$length$asx = function(receiver) { | 5525 J.get$length$asx = function(receiver) { |
5935 return J.getInterceptor$asx(receiver).get$length(receiver); | 5526 return J.getInterceptor$asx(receiver).get$length(receiver); |
5936 }; | 5527 }; |
5937 J.get$longitude$x = function(receiver) { | 5528 J.get$target$x = function(receiver) { |
5938 return J.getInterceptor$x(receiver).get$longitude(receiver); | 5529 return J.getInterceptor$x(receiver).get$target(receiver); |
5939 }; | 5530 }; |
5940 J.getCurrentPosition$0$x = function(receiver) { | 5531 J.removeEventListener$3$x = function(receiver, a0, a1, a2) { |
5941 return J.getInterceptor$x(receiver).getCurrentPosition$0(receiver); | 5532 return J.getInterceptor$x(receiver).removeEventListener$3(receiver, a0, a1, a2
); |
5942 }; | |
5943 J.removeLast$0$ax = function(receiver) { | |
5944 return J.getInterceptor$ax(receiver).removeLast$0(receiver); | |
5945 }; | 5533 }; |
5946 J.toString$0 = function(receiver) { | 5534 J.toString$0 = function(receiver) { |
5947 return J.getInterceptor(receiver).toString$0(receiver); | 5535 return J.getInterceptor(receiver).toString$0(receiver); |
5948 }; | 5536 }; |
5949 J.watchPosition$0$x = function(receiver) { | |
5950 return J.getInterceptor$x(receiver).watchPosition$0(receiver); | |
5951 }; | |
5952 Isolate.$lazy($, "globalThis", "globalThis", "get$globalThis", function() { | 5537 Isolate.$lazy($, "globalThis", "globalThis", "get$globalThis", function() { |
5953 return function() { return this; }(); | 5538 return function() { return this; }(); |
5954 }); | 5539 }); |
5955 Isolate.$lazy($, "globalWindow", "globalWindow", "get$globalWindow", function()
{ | 5540 Isolate.$lazy($, "globalWindow", "globalWindow", "get$globalWindow", function()
{ |
5956 return $.get$globalThis().window; | 5541 return $.get$globalThis().window; |
5957 }); | 5542 }); |
5958 Isolate.$lazy($, "globalWorker", "globalWorker", "get$globalWorker", function()
{ | 5543 Isolate.$lazy($, "globalWorker", "globalWorker", "get$globalWorker", function()
{ |
5959 return $.get$globalThis().Worker; | 5544 return $.get$globalThis().Worker; |
5960 }); | 5545 }); |
5961 Isolate.$lazy($, "globalPostMessageDefined", "globalPostMessageDefined", "get$gl
obalPostMessageDefined", function() { | 5546 Isolate.$lazy($, "globalPostMessageDefined", "globalPostMessageDefined", "get$gl
obalPostMessageDefined", function() { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6009 Isolate.$lazy($, "_asyncCallbacks", "_asyncCallbacks", "get$_asyncCallbacks", fu
nction() { | 5594 Isolate.$lazy($, "_asyncCallbacks", "_asyncCallbacks", "get$_asyncCallbacks", fu
nction() { |
6010 return P.ListQueue$(null, {func: "void_", void: true}); | 5595 return P.ListQueue$(null, {func: "void_", void: true}); |
6011 }); | 5596 }); |
6012 Isolate.$lazy($, "_toStringVisiting", "_toStringVisiting", "get$_toStringVisitin
g", function() { | 5597 Isolate.$lazy($, "_toStringVisiting", "_toStringVisiting", "get$_toStringVisitin
g", function() { |
6013 return P.HashSet_HashSet$identity(null); | 5598 return P.HashSet_HashSet$identity(null); |
6014 }); | 5599 }); |
6015 Isolate.$lazy($, "_toStringList", "Maps__toStringList", "get$Maps__toStringList"
, function() { | 5600 Isolate.$lazy($, "_toStringList", "Maps__toStringList", "get$Maps__toStringList"
, function() { |
6016 return P.List_List(null, null); | 5601 return P.List_List(null, null); |
6017 }); | 5602 }); |
6018 // Native classes | 5603 // Native classes |
6019 J.Interceptor["%"] = "Navigator|NavigatorUserMediaError|SVGAnimatedNumberList"; | 5604 J.Interceptor["%"] = "DOMError|FileError|MediaError|MediaKeyError|Navigator|Navi
gatorUserMediaError|PositionError|SQLError|SVGAnimatedNumberList|SVGAnimatedStri
ng"; |
6020 | 5605 |
6021 | 5606 |
6022 init.functionAliases = {}; | 5607 init.functionAliases = {}; |
6023 ; | 5608 ; |
6024 init.metadata = []; | 5609 init.metadata = []; |
6025 $ = null; | 5610 $ = null; |
6026 Isolate = Isolate.$finishIsolateConstructor(Isolate); | 5611 Isolate = Isolate.$finishIsolateConstructor(Isolate); |
6027 $ = new Isolate(); | 5612 $ = new Isolate(); |
6028 function convertToFastObject(properties) { | 5613 function convertToFastObject(properties) { |
6029 function MyClass() {}; | 5614 function MyClass() {}; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6084 } | 5669 } |
6085 callback(event.target); | 5670 callback(event.target); |
6086 } | 5671 } |
6087 for (var i = 0; i < scripts.length; ++i) { | 5672 for (var i = 0; i < scripts.length; ++i) { |
6088 scripts[i].addEventListener("load", onLoad, false); | 5673 scripts[i].addEventListener("load", onLoad, false); |
6089 } | 5674 } |
6090 })(function(currentScript) { | 5675 })(function(currentScript) { |
6091 init.currentScript = currentScript; | 5676 init.currentScript = currentScript; |
6092 | 5677 |
6093 if (typeof dartMainRunner === "function") { | 5678 if (typeof dartMainRunner === "function") { |
6094 dartMainRunner(function() { H.startRootIsolate(E.main$closure); }); | 5679 dartMainRunner(function() { H.startRootIsolate(A.main$closure); }); |
6095 } else { | 5680 } else { |
6096 H.startRootIsolate(E.main$closure); | 5681 H.startRootIsolate(A.main$closure); |
6097 } | 5682 } |
6098 }); | 5683 }); |
6099 // END invoke [main]. | 5684 // END invoke [main]. |
6100 function init() { | 5685 function init() { |
6101 Isolate.$isolateProperties = {}; | 5686 Isolate.$isolateProperties = {}; |
6102 function generateAccessor(field, accessors, cls) { | 5687 function generateAccessor(field, accessors, cls) { |
6103 var len = field.length; | 5688 var len = field.length; |
6104 var code = field.charCodeAt(len - 1); | 5689 var code = field.charCodeAt(len - 1); |
6105 var reflectable = false; | 5690 var reflectable = false; |
6106 if (code == 45) { | 5691 if (code == 45) { |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6339 Isolate.prototype = oldIsolate.prototype; | 5924 Isolate.prototype = oldIsolate.prototype; |
6340 Isolate.prototype.constructor = Isolate; | 5925 Isolate.prototype.constructor = Isolate; |
6341 Isolate.$isolateProperties = isolateProperties; | 5926 Isolate.$isolateProperties = isolateProperties; |
6342 Isolate.$finishClasses = oldIsolate.$finishClasses; | 5927 Isolate.$finishClasses = oldIsolate.$finishClasses; |
6343 Isolate.makeConstantList = oldIsolate.makeConstantList; | 5928 Isolate.makeConstantList = oldIsolate.makeConstantList; |
6344 return Isolate; | 5929 return Isolate; |
6345 }; | 5930 }; |
6346 } | 5931 } |
6347 })() | 5932 })() |
6348 | 5933 |
6349 //# sourceMappingURL=trip_meter.dart.js.map | 5934 //# sourceMappingURL=piratebadge.dart.js.map |
6350 //@ sourceMappingURL=trip_meter.dart.js.map | 5935 //@ sourceMappingURL=piratebadge.dart.js.map |
OLD | NEW |