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

Side by Side Diff: frog/world.dart

Issue 10081004: Remove frog dependencies from lib/compiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add TODO. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « frog/tests/leg/src/parser_helper.dart ('k') | lib/compiler/compiler.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « frog/tests/leg/src/parser_helper.dart ('k') | lib/compiler/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698