| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** The one true [World]. */ | 5 /** The one true [World]. */ |
| 6 World world; | 6 World world; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * Experimental phase to enable await, only set when using the | 9 * Experimental phase to enable await, only set when using the |
| 10 * await/awaitc.dart entrypoint. | 10 * await/awaitc.dart entrypoint. |
| 11 */ | 11 */ |
| 12 Function experimentalAwaitPhase; | 12 Function experimentalAwaitPhase; |
| 13 | 13 |
| 14 /** | 14 /** |
| 15 * Set when the leg compiler is available. Should always be set | 15 * Set when the leg compiler is available. Should always be set |
| 16 * to leg/frog_leg.dart/compile. | 16 * to frog_leg/compile. |
| 17 */ | 17 */ |
| 18 typedef bool LegCompile(World world); | 18 typedef bool LegCompile(World world); |
| 19 LegCompile legCompile; | 19 LegCompile legCompile; |
| 20 | 20 |
| 21 typedef void MessageHandler(String prefix, String message, SourceSpan span); | 21 typedef void MessageHandler(String prefix, String message, SourceSpan span); |
| 22 | 22 |
| 23 | 23 |
| 24 /** | 24 /** |
| 25 * Should be called exactly once to setup singleton world. | 25 * Should be called exactly once to setup singleton world. |
| 26 * Can use world.reset() to reinitialize. | 26 * Can use world.reset() to reinitialize. |
| (...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 | 717 |
| 718 withTiming(String name, f()) { | 718 withTiming(String name, f()) { |
| 719 final sw = new Stopwatch(); | 719 final sw = new Stopwatch(); |
| 720 sw.start(); | 720 sw.start(); |
| 721 var result = f(); | 721 var result = f(); |
| 722 sw.stop(); | 722 sw.stop(); |
| 723 info('$name in ${sw.elapsedInMs()}msec'); | 723 info('$name in ${sw.elapsedInMs()}msec'); |
| 724 return result; | 724 return result; |
| 725 } | 725 } |
| 726 } | 726 } |
| OLD | NEW |