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

Side by Side Diff: test/dart_codegen/expect/async/zone.dart

Issue 961493003: don't run dart gen on JS patch code (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 part of dart.async; 1 part of dart.async;
2 2
3 typedef dynamic ZoneCallback(); 3 typedef dynamic ZoneCallback();
4 typedef dynamic ZoneUnaryCallback(arg); 4 typedef dynamic ZoneUnaryCallback(arg);
5 typedef dynamic ZoneBinaryCallback(arg1, arg2); 5 typedef dynamic ZoneBinaryCallback(arg1, arg2);
6 typedef dynamic HandleUncaughtErrorHandler( 6 typedef dynamic HandleUncaughtErrorHandler(
7 Zone self, ZoneDelegate parent, Zone zone, error, StackTrace stackTrace); 7 Zone self, ZoneDelegate parent, Zone zone, error, StackTrace stackTrace);
8 typedef dynamic RunHandler(Zone self, ZoneDelegate parent, Zone zone, f()); 8 typedef dynamic RunHandler(Zone self, ZoneDelegate parent, Zone zone, f());
9 typedef dynamic RunUnaryHandler( 9 typedef dynamic RunUnaryHandler(
10 Zone self, ZoneDelegate parent, Zone zone, f(arg), arg); 10 Zone self, ZoneDelegate parent, Zone zone, f(arg), arg);
(...skipping 14 matching lines...) Expand all
25 typedef Timer CreatePeriodicTimerHandler(Zone self, ZoneDelegate parent, 25 typedef Timer CreatePeriodicTimerHandler(Zone self, ZoneDelegate parent,
26 Zone zone, Duration period, void f(Timer timer)); 26 Zone zone, Duration period, void f(Timer timer));
27 typedef void PrintHandler( 27 typedef void PrintHandler(
28 Zone self, ZoneDelegate parent, Zone zone, String line); 28 Zone self, ZoneDelegate parent, Zone zone, String line);
29 typedef Zone ForkHandler(Zone self, ZoneDelegate parent, Zone zone, 29 typedef Zone ForkHandler(Zone self, ZoneDelegate parent, Zone zone,
30 ZoneSpecification specification, Map zoneValues); 30 ZoneSpecification specification, Map zoneValues);
31 class AsyncError implements Error { 31 class AsyncError implements Error {
32 final error; 32 final error;
33 final StackTrace stackTrace; 33 final StackTrace stackTrace;
34 AsyncError(this.error, this.stackTrace); 34 AsyncError(this.error, this.stackTrace);
35 String toString() => ((__x133) => DDC$RT.cast(__x133, dynamic, String, 35 String toString() => ((__x131) => DDC$RT.cast(__x131, dynamic, String,
36 "CastGeneral", """line 46, column 24 of dart:async/zone.dart: """, 36 "CastGeneral", """line 46, column 24 of dart:async/zone.dart: """,
37 __x133 is String, true))(error.toString()); 37 __x131 is String, true))(error.toString());
38 } 38 }
39 class _ZoneFunction { 39 class _ZoneFunction {
40 final _Zone zone; 40 final _Zone zone;
41 final Function function; 41 final Function function;
42 const _ZoneFunction(this.zone, this.function); 42 const _ZoneFunction(this.zone, this.function);
43 } 43 }
44 abstract class ZoneSpecification { 44 abstract class ZoneSpecification {
45 const factory ZoneSpecification({dynamic handleUncaughtError(Zone self, 45 const factory ZoneSpecification({dynamic handleUncaughtError(Zone self,
46 ZoneDelegate parent, Zone zone, error, StackTrace stackTrace), 46 ZoneDelegate parent, Zone zone, error, StackTrace stackTrace),
47 dynamic run(Zone self, ZoneDelegate parent, Zone zone, f()), 47 dynamic run(Zone self, ZoneDelegate parent, Zone zone, f()),
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 } 235 }
236 dynamic runBinary(Zone zone, f(arg1, arg2), arg1, arg2) { 236 dynamic runBinary(Zone zone, f(arg1, arg2), arg1, arg2) {
237 _ZoneFunction implementation = _delegationTarget._runBinary; 237 _ZoneFunction implementation = _delegationTarget._runBinary;
238 _Zone implZone = implementation.zone; 238 _Zone implZone = implementation.zone;
239 return (implementation.function)( 239 return (implementation.function)(
240 implZone, _parentDelegate(implZone), zone, f, arg1, arg2); 240 implZone, _parentDelegate(implZone), zone, f, arg1, arg2);
241 } 241 }
242 ZoneCallback registerCallback(Zone zone, f()) { 242 ZoneCallback registerCallback(Zone zone, f()) {
243 _ZoneFunction implementation = _delegationTarget._registerCallback; 243 _ZoneFunction implementation = _delegationTarget._registerCallback;
244 _Zone implZone = implementation.zone; 244 _Zone implZone = implementation.zone;
245 return ((__x135) => DDC$RT.cast(__x135, dynamic, __t134, "CastGeneral", 245 return ((__x133) => DDC$RT.cast(__x133, dynamic, __t132, "CastGeneral",
246 """line 522, column 12 of dart:async/zone.dart: """, 246 """line 522, column 12 of dart:async/zone.dart: """,
247 __x135 is __t134, false))((implementation.function)( 247 __x133 is __t132, false))((implementation.function)(
248 implZone, _parentDelegate(implZone), zone, f)); 248 implZone, _parentDelegate(implZone), zone, f));
249 } 249 }
250 ZoneUnaryCallback registerUnaryCallback(Zone zone, f(arg)) { 250 ZoneUnaryCallback registerUnaryCallback(Zone zone, f(arg)) {
251 _ZoneFunction implementation = _delegationTarget._registerUnaryCallback; 251 _ZoneFunction implementation = _delegationTarget._registerUnaryCallback;
252 _Zone implZone = implementation.zone; 252 _Zone implZone = implementation.zone;
253 return ((__x138) => DDC$RT.cast(__x138, dynamic, __t136, "CastGeneral", 253 return ((__x136) => DDC$RT.cast(__x136, dynamic, __t134, "CastGeneral",
254 """line 529, column 12 of dart:async/zone.dart: """, 254 """line 529, column 12 of dart:async/zone.dart: """,
255 __x138 is __t136, false))((implementation.function)( 255 __x136 is __t134, false))((implementation.function)(
256 implZone, _parentDelegate(implZone), zone, f)); 256 implZone, _parentDelegate(implZone), zone, f));
257 } 257 }
258 ZoneBinaryCallback registerBinaryCallback(Zone zone, f(arg1, arg2)) { 258 ZoneBinaryCallback registerBinaryCallback(Zone zone, f(arg1, arg2)) {
259 _ZoneFunction implementation = _delegationTarget._registerBinaryCallback; 259 _ZoneFunction implementation = _delegationTarget._registerBinaryCallback;
260 _Zone implZone = implementation.zone; 260 _Zone implZone = implementation.zone;
261 return ((__x142) => DDC$RT.cast(__x142, dynamic, __t139, "CastGeneral", 261 return ((__x140) => DDC$RT.cast(__x140, dynamic, __t137, "CastGeneral",
262 """line 536, column 12 of dart:async/zone.dart: """, 262 """line 536, column 12 of dart:async/zone.dart: """,
263 __x142 is __t139, false))((implementation.function)( 263 __x140 is __t137, false))((implementation.function)(
264 implZone, _parentDelegate(implZone), zone, f)); 264 implZone, _parentDelegate(implZone), zone, f));
265 } 265 }
266 AsyncError errorCallback(Zone zone, Object error, StackTrace stackTrace) { 266 AsyncError errorCallback(Zone zone, Object error, StackTrace stackTrace) {
267 _ZoneFunction implementation = _delegationTarget._errorCallback; 267 _ZoneFunction implementation = _delegationTarget._errorCallback;
268 _Zone implZone = implementation.zone; 268 _Zone implZone = implementation.zone;
269 if (identical(implZone, _ROOT_ZONE)) return null; 269 if (identical(implZone, _ROOT_ZONE)) return null;
270 return ((__x143) => DDC$RT.cast(__x143, dynamic, AsyncError, "CastGeneral", 270 return ((__x141) => DDC$RT.cast(__x141, dynamic, AsyncError, "CastGeneral",
271 """line 544, column 12 of dart:async/zone.dart: """, 271 """line 544, column 12 of dart:async/zone.dart: """,
272 __x143 is AsyncError, true))((implementation.function)( 272 __x141 is AsyncError, true))((implementation.function)(
273 implZone, _parentDelegate(implZone), zone, error, stackTrace)); 273 implZone, _parentDelegate(implZone), zone, error, stackTrace));
274 } 274 }
275 void scheduleMicrotask(Zone zone, f()) { 275 void scheduleMicrotask(Zone zone, f()) {
276 _ZoneFunction implementation = _delegationTarget._scheduleMicrotask; 276 _ZoneFunction implementation = _delegationTarget._scheduleMicrotask;
277 _Zone implZone = implementation.zone; 277 _Zone implZone = implementation.zone;
278 (implementation.function)(implZone, _parentDelegate(implZone), zone, f); 278 (implementation.function)(implZone, _parentDelegate(implZone), zone, f);
279 } 279 }
280 Timer createTimer(Zone zone, Duration duration, void f()) { 280 Timer createTimer(Zone zone, Duration duration, void f()) {
281 _ZoneFunction implementation = _delegationTarget._createTimer; 281 _ZoneFunction implementation = _delegationTarget._createTimer;
282 _Zone implZone = implementation.zone; 282 _Zone implZone = implementation.zone;
283 return ((__x144) => DDC$RT.cast(__x144, dynamic, Timer, "CastGeneral", 283 return ((__x142) => DDC$RT.cast(__x142, dynamic, Timer, "CastGeneral",
284 """line 558, column 12 of dart:async/zone.dart: """, 284 """line 558, column 12 of dart:async/zone.dart: """,
285 __x144 is Timer, true))((implementation.function)( 285 __x142 is Timer, true))((implementation.function)(
286 implZone, _parentDelegate(implZone), zone, duration, f)); 286 implZone, _parentDelegate(implZone), zone, duration, f));
287 } 287 }
288 Timer createPeriodicTimer(Zone zone, Duration period, void f(Timer timer)) { 288 Timer createPeriodicTimer(Zone zone, Duration period, void f(Timer timer)) {
289 _ZoneFunction implementation = _delegationTarget._createPeriodicTimer; 289 _ZoneFunction implementation = _delegationTarget._createPeriodicTimer;
290 _Zone implZone = implementation.zone; 290 _Zone implZone = implementation.zone;
291 return ((__x145) => DDC$RT.cast(__x145, dynamic, Timer, "CastGeneral", 291 return ((__x143) => DDC$RT.cast(__x143, dynamic, Timer, "CastGeneral",
292 """line 565, column 12 of dart:async/zone.dart: """, 292 """line 565, column 12 of dart:async/zone.dart: """,
293 __x145 is Timer, true))((implementation.function)( 293 __x143 is Timer, true))((implementation.function)(
294 implZone, _parentDelegate(implZone), zone, period, f)); 294 implZone, _parentDelegate(implZone), zone, period, f));
295 } 295 }
296 void print(Zone zone, String line) { 296 void print(Zone zone, String line) {
297 _ZoneFunction implementation = _delegationTarget._print; 297 _ZoneFunction implementation = _delegationTarget._print;
298 _Zone implZone = implementation.zone; 298 _Zone implZone = implementation.zone;
299 (implementation.function)(implZone, _parentDelegate(implZone), zone, line); 299 (implementation.function)(implZone, _parentDelegate(implZone), zone, line);
300 } 300 }
301 Zone fork(Zone zone, ZoneSpecification specification, Map zoneValues) { 301 Zone fork(Zone zone, ZoneSpecification specification, Map zoneValues) {
302 _ZoneFunction implementation = _delegationTarget._fork; 302 _ZoneFunction implementation = _delegationTarget._fork;
303 _Zone implZone = implementation.zone; 303 _Zone implZone = implementation.zone;
304 return ((__x146) => DDC$RT.cast(__x146, dynamic, Zone, "CastGeneral", 304 return ((__x144) => DDC$RT.cast(__x144, dynamic, Zone, "CastGeneral",
305 """line 580, column 12 of dart:async/zone.dart: """, __x146 is Zone, 305 """line 580, column 12 of dart:async/zone.dart: """, __x144 is Zone,
306 true))((implementation.function)( 306 true))((implementation.function)(
307 implZone, _parentDelegate(implZone), zone, specification, zoneValues)); 307 implZone, _parentDelegate(implZone), zone, specification, zoneValues));
308 } 308 }
309 } 309 }
310 abstract class _Zone implements Zone { 310 abstract class _Zone implements Zone {
311 const _Zone(); 311 const _Zone();
312 _ZoneFunction get _runUnary; 312 _ZoneFunction get _runUnary;
313 _ZoneFunction get _run; 313 _ZoneFunction get _run;
314 _ZoneFunction get _runBinary; 314 _ZoneFunction get _runBinary;
315 _ZoneFunction get _registerCallback; 315 _ZoneFunction get _registerCallback;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 _ZoneFunction implementation = this._handleUncaughtError; 457 _ZoneFunction implementation = this._handleUncaughtError;
458 assert(implementation != null); 458 assert(implementation != null);
459 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone); 459 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone);
460 return (implementation.function)( 460 return (implementation.function)(
461 implementation.zone, parentDelegate, this, error, stackTrace); 461 implementation.zone, parentDelegate, this, error, stackTrace);
462 } 462 }
463 Zone fork({ZoneSpecification specification, Map zoneValues}) { 463 Zone fork({ZoneSpecification specification, Map zoneValues}) {
464 _ZoneFunction implementation = this._fork; 464 _ZoneFunction implementation = this._fork;
465 assert(implementation != null); 465 assert(implementation != null);
466 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone); 466 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone);
467 return ((__x147) => DDC$RT.cast(__x147, dynamic, Zone, "CastGeneral", 467 return ((__x145) => DDC$RT.cast(__x145, dynamic, Zone, "CastGeneral",
468 """line 787, column 12 of dart:async/zone.dart: """, __x147 is Zone, 468 """line 787, column 12 of dart:async/zone.dart: """, __x145 is Zone,
469 true))((implementation.function)( 469 true))((implementation.function)(
470 implementation.zone, parentDelegate, this, specification, zoneValues)); 470 implementation.zone, parentDelegate, this, specification, zoneValues));
471 } 471 }
472 dynamic run(f()) { 472 dynamic run(f()) {
473 _ZoneFunction implementation = this._run; 473 _ZoneFunction implementation = this._run;
474 assert(implementation != null); 474 assert(implementation != null);
475 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone); 475 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone);
476 return (implementation.function)( 476 return (implementation.function)(
477 implementation.zone, parentDelegate, this, f); 477 implementation.zone, parentDelegate, this, f);
478 } 478 }
479 dynamic runUnary(f(arg), arg) { 479 dynamic runUnary(f(arg), arg) {
480 _ZoneFunction implementation = this._runUnary; 480 _ZoneFunction implementation = this._runUnary;
481 assert(implementation != null); 481 assert(implementation != null);
482 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone); 482 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone);
483 return (implementation.function)( 483 return (implementation.function)(
484 implementation.zone, parentDelegate, this, f, arg); 484 implementation.zone, parentDelegate, this, f, arg);
485 } 485 }
486 dynamic runBinary(f(arg1, arg2), arg1, arg2) { 486 dynamic runBinary(f(arg1, arg2), arg1, arg2) {
487 _ZoneFunction implementation = this._runBinary; 487 _ZoneFunction implementation = this._runBinary;
488 assert(implementation != null); 488 assert(implementation != null);
489 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone); 489 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone);
490 return (implementation.function)( 490 return (implementation.function)(
491 implementation.zone, parentDelegate, this, f, arg1, arg2); 491 implementation.zone, parentDelegate, this, f, arg1, arg2);
492 } 492 }
493 ZoneCallback registerCallback(f()) { 493 ZoneCallback registerCallback(f()) {
494 _ZoneFunction implementation = this._registerCallback; 494 _ZoneFunction implementation = this._registerCallback;
495 assert(implementation != null); 495 assert(implementation != null);
496 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone); 496 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone);
497 return ((__x148) => DDC$RT.cast(__x148, dynamic, __t134, "CastGeneral", 497 return ((__x146) => DDC$RT.cast(__x146, dynamic, __t132, "CastGeneral",
498 """line 820, column 12 of dart:async/zone.dart: """, 498 """line 820, column 12 of dart:async/zone.dart: """,
499 __x148 is __t134, false))((implementation.function)( 499 __x146 is __t132, false))((implementation.function)(
500 implementation.zone, parentDelegate, this, f)); 500 implementation.zone, parentDelegate, this, f));
501 } 501 }
502 ZoneUnaryCallback registerUnaryCallback(f(arg)) { 502 ZoneUnaryCallback registerUnaryCallback(f(arg)) {
503 _ZoneFunction implementation = this._registerUnaryCallback; 503 _ZoneFunction implementation = this._registerUnaryCallback;
504 assert(implementation != null); 504 assert(implementation != null);
505 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone); 505 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone);
506 return ((__x149) => DDC$RT.cast(__x149, dynamic, __t136, "CastGeneral", 506 return ((__x147) => DDC$RT.cast(__x147, dynamic, __t134, "CastGeneral",
507 """line 828, column 12 of dart:async/zone.dart: """, 507 """line 828, column 12 of dart:async/zone.dart: """,
508 __x149 is __t136, false))((implementation.function)( 508 __x147 is __t134, false))((implementation.function)(
509 implementation.zone, parentDelegate, this, f)); 509 implementation.zone, parentDelegate, this, f));
510 } 510 }
511 ZoneBinaryCallback registerBinaryCallback(f(arg1, arg2)) { 511 ZoneBinaryCallback registerBinaryCallback(f(arg1, arg2)) {
512 _ZoneFunction implementation = this._registerBinaryCallback; 512 _ZoneFunction implementation = this._registerBinaryCallback;
513 assert(implementation != null); 513 assert(implementation != null);
514 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone); 514 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone);
515 return ((__x150) => DDC$RT.cast(__x150, dynamic, __t139, "CastGeneral", 515 return ((__x148) => DDC$RT.cast(__x148, dynamic, __t137, "CastGeneral",
516 """line 836, column 12 of dart:async/zone.dart: """, 516 """line 836, column 12 of dart:async/zone.dart: """,
517 __x150 is __t139, false))((implementation.function)( 517 __x148 is __t137, false))((implementation.function)(
518 implementation.zone, parentDelegate, this, f)); 518 implementation.zone, parentDelegate, this, f));
519 } 519 }
520 AsyncError errorCallback(Object error, StackTrace stackTrace) { 520 AsyncError errorCallback(Object error, StackTrace stackTrace) {
521 final _ZoneFunction implementation = this._errorCallback; 521 final _ZoneFunction implementation = this._errorCallback;
522 assert(implementation != null); 522 assert(implementation != null);
523 final Zone implementationZone = implementation.zone; 523 final Zone implementationZone = implementation.zone;
524 if (identical(implementationZone, _ROOT_ZONE)) return null; 524 if (identical(implementationZone, _ROOT_ZONE)) return null;
525 final ZoneDelegate parentDelegate = _parentDelegate(DDC$RT.cast( 525 final ZoneDelegate parentDelegate = _parentDelegate(DDC$RT.cast(
526 implementationZone, Zone, _Zone, "CastGeneral", 526 implementationZone, Zone, _Zone, "CastGeneral",
527 """line 845, column 57 of dart:async/zone.dart: """, 527 """line 845, column 57 of dart:async/zone.dart: """,
528 implementationZone is _Zone, true)); 528 implementationZone is _Zone, true));
529 return ((__x151) => DDC$RT.cast(__x151, dynamic, AsyncError, "CastGeneral", 529 return ((__x149) => DDC$RT.cast(__x149, dynamic, AsyncError, "CastGeneral",
530 """line 846, column 12 of dart:async/zone.dart: """, 530 """line 846, column 12 of dart:async/zone.dart: """,
531 __x151 is AsyncError, true))((implementation.function)( 531 __x149 is AsyncError, true))((implementation.function)(
532 implementationZone, parentDelegate, this, error, stackTrace)); 532 implementationZone, parentDelegate, this, error, stackTrace));
533 } 533 }
534 void scheduleMicrotask(void f()) { 534 void scheduleMicrotask(void f()) {
535 _ZoneFunction implementation = this._scheduleMicrotask; 535 _ZoneFunction implementation = this._scheduleMicrotask;
536 assert(implementation != null); 536 assert(implementation != null);
537 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone); 537 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone);
538 return (implementation.function)( 538 return (implementation.function)(
539 implementation.zone, parentDelegate, this, f); 539 implementation.zone, parentDelegate, this, f);
540 } 540 }
541 Timer createTimer(Duration duration, void f()) { 541 Timer createTimer(Duration duration, void f()) {
542 _ZoneFunction implementation = this._createTimer; 542 _ZoneFunction implementation = this._createTimer;
543 assert(implementation != null); 543 assert(implementation != null);
544 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone); 544 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone);
545 return ((__x152) => DDC$RT.cast(__x152, dynamic, Timer, "CastGeneral", 545 return ((__x150) => DDC$RT.cast(__x150, dynamic, Timer, "CastGeneral",
546 """line 862, column 12 of dart:async/zone.dart: """, 546 """line 862, column 12 of dart:async/zone.dart: """,
547 __x152 is Timer, true))((implementation.function)( 547 __x150 is Timer, true))((implementation.function)(
548 implementation.zone, parentDelegate, this, duration, f)); 548 implementation.zone, parentDelegate, this, duration, f));
549 } 549 }
550 Timer createPeriodicTimer(Duration duration, void f(Timer timer)) { 550 Timer createPeriodicTimer(Duration duration, void f(Timer timer)) {
551 _ZoneFunction implementation = this._createPeriodicTimer; 551 _ZoneFunction implementation = this._createPeriodicTimer;
552 assert(implementation != null); 552 assert(implementation != null);
553 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone); 553 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone);
554 return ((__x153) => DDC$RT.cast(__x153, dynamic, Timer, "CastGeneral", 554 return ((__x151) => DDC$RT.cast(__x151, dynamic, Timer, "CastGeneral",
555 """line 870, column 12 of dart:async/zone.dart: """, 555 """line 870, column 12 of dart:async/zone.dart: """,
556 __x153 is Timer, true))((implementation.function)( 556 __x151 is Timer, true))((implementation.function)(
557 implementation.zone, parentDelegate, this, duration, f)); 557 implementation.zone, parentDelegate, this, duration, f));
558 } 558 }
559 void print(String line) { 559 void print(String line) {
560 _ZoneFunction implementation = this._print; 560 _ZoneFunction implementation = this._print;
561 assert(implementation != null); 561 assert(implementation != null);
562 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone); 562 ZoneDelegate parentDelegate = _parentDelegate(implementation.zone);
563 return (implementation.function)( 563 return (implementation.function)(
564 implementation.zone, parentDelegate, this, line); 564 implementation.zone, parentDelegate, this, line);
565 } 565 }
566 } 566 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 Timer _rootCreateTimer(Zone self, ZoneDelegate parent, Zone zone, 622 Timer _rootCreateTimer(Zone self, ZoneDelegate parent, Zone zone,
623 Duration duration, void callback()) { 623 Duration duration, void callback()) {
624 if (!identical(_ROOT_ZONE, zone)) { 624 if (!identical(_ROOT_ZONE, zone)) {
625 callback = zone.bindCallback(callback); 625 callback = zone.bindCallback(callback);
626 } 626 }
627 return Timer._createTimer(duration, callback); 627 return Timer._createTimer(duration, callback);
628 } 628 }
629 Timer _rootCreatePeriodicTimer(Zone self, ZoneDelegate parent, Zone zone, 629 Timer _rootCreatePeriodicTimer(Zone self, ZoneDelegate parent, Zone zone,
630 Duration duration, void callback(Timer timer)) { 630 Duration duration, void callback(Timer timer)) {
631 if (!identical(_ROOT_ZONE, zone)) { 631 if (!identical(_ROOT_ZONE, zone)) {
632 callback = zone.bindUnaryCallback(DDC$RT.wrap((void f(Timer __u154)) { 632 callback = zone.bindUnaryCallback(DDC$RT.wrap((void f(Timer __u152)) {
633 void c(Timer x0) => f(DDC$RT.cast(x0, dynamic, Timer, "CastParam", 633 void c(Timer x0) => f(DDC$RT.cast(x0, dynamic, Timer, "CastParam",
634 """line 962, column 39 of dart:async/zone.dart: """, x0 is Timer, 634 """line 962, column 39 of dart:async/zone.dart: """, x0 is Timer,
635 true)); 635 true));
636 return f == null ? null : c; 636 return f == null ? null : c;
637 }, callback, __t155, __t136, "Wrap", 637 }, callback, __t153, __t134, "Wrap",
638 """line 962, column 39 of dart:async/zone.dart: """, 638 """line 962, column 39 of dart:async/zone.dart: """,
639 callback is __t136)); 639 callback is __t134));
640 } 640 }
641 return Timer._createPeriodicTimer(duration, callback); 641 return Timer._createPeriodicTimer(duration, callback);
642 } 642 }
643 void _rootPrint(Zone self, ZoneDelegate parent, Zone zone, String line) { 643 void _rootPrint(Zone self, ZoneDelegate parent, Zone zone, String line) {
644 printToConsole(line); 644 printToConsole(line);
645 } 645 }
646 void _printToZone(String line) { 646 void _printToZone(String line) {
647 Zone.current.print(line); 647 Zone.current.print(line);
648 } 648 }
649 Zone _rootFork(Zone self, ZoneDelegate parent, Zone zone, 649 Zone _rootFork(Zone self, ZoneDelegate parent, Zone zone,
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 dynamic runZoned(body(), 811 dynamic runZoned(body(),
812 {Map zoneValues, ZoneSpecification zoneSpecification, Function onError}) { 812 {Map zoneValues, ZoneSpecification zoneSpecification, Function onError}) {
813 HandleUncaughtErrorHandler errorHandler; 813 HandleUncaughtErrorHandler errorHandler;
814 if (onError != null) { 814 if (onError != null) {
815 errorHandler = (Zone self, ZoneDelegate parent, Zone zone, error, 815 errorHandler = (Zone self, ZoneDelegate parent, Zone zone, error,
816 StackTrace stackTrace) { 816 StackTrace stackTrace) {
817 try { 817 try {
818 if (onError is ZoneBinaryCallback) { 818 if (onError is ZoneBinaryCallback) {
819 return self.parent.runBinary(onError, error, stackTrace); 819 return self.parent.runBinary(onError, error, stackTrace);
820 } 820 }
821 return self.parent.runUnary(DDC$RT.cast(onError, Function, __t136, 821 return self.parent.runUnary(DDC$RT.cast(onError, Function, __t134,
822 "CastGeneral", """line 1228, column 37 of dart:async/zone.dart: """, 822 "CastGeneral", """line 1228, column 37 of dart:async/zone.dart: """,
823 onError is __t136, false), error); 823 onError is __t134, false), error);
824 } catch (e, s) { 824 } catch (e, s) {
825 if (identical(e, error)) { 825 if (identical(e, error)) {
826 return parent.handleUncaughtError(zone, error, stackTrace); 826 return parent.handleUncaughtError(zone, error, stackTrace);
827 } else { 827 } else {
828 return parent.handleUncaughtError(zone, e, s); 828 return parent.handleUncaughtError(zone, e, s);
829 } 829 }
830 } 830 }
831 }; 831 };
832 } 832 }
833 if (zoneSpecification == null) { 833 if (zoneSpecification == null) {
834 zoneSpecification = 834 zoneSpecification =
835 new ZoneSpecification(handleUncaughtError: errorHandler); 835 new ZoneSpecification(handleUncaughtError: errorHandler);
836 } else if (errorHandler != null) { 836 } else if (errorHandler != null) {
837 zoneSpecification = new ZoneSpecification.from(zoneSpecification, 837 zoneSpecification = new ZoneSpecification.from(zoneSpecification,
838 handleUncaughtError: errorHandler); 838 handleUncaughtError: errorHandler);
839 } 839 }
840 Zone zone = Zone.current.fork( 840 Zone zone = Zone.current.fork(
841 specification: zoneSpecification, zoneValues: zoneValues); 841 specification: zoneSpecification, zoneValues: zoneValues);
842 if (onError != null) { 842 if (onError != null) {
843 return zone.runGuarded(body); 843 return zone.runGuarded(body);
844 } else { 844 } else {
845 return zone.run(body); 845 return zone.run(body);
846 } 846 }
847 } 847 }
848 typedef dynamic __t134(); 848 typedef dynamic __t132();
849 typedef dynamic __t136(dynamic __u137); 849 typedef dynamic __t134(dynamic __u135);
850 typedef dynamic __t139(dynamic __u140, dynamic __u141); 850 typedef dynamic __t137(dynamic __u138, dynamic __u139);
851 typedef void __t155(Timer __u156); 851 typedef void __t153(Timer __u154);
OLDNEW
« no previous file with comments | « test/dart_codegen/expect/async/timer.dart ('k') | test/dart_codegen/expect/collection/collection » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698