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

Side by Side Diff: runtime/vm/parser.cc

Issue 1714743002: VM: Separate precompilation-specific code, make flags const. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix build after merge Created 4 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
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/precompiler.h » ('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 #include "vm/parser.h" 5 #include "vm/parser.h"
6 #include "vm/flags.h" 6 #include "vm/flags.h"
7 7
8 #ifndef DART_PRECOMPILED_RUNTIME 8 #ifndef DART_PRECOMPILED_RUNTIME
9 9
10 #include "lib/invocation_mirror.h" 10 #include "lib/invocation_mirror.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 DEFINE_FLAG(bool, trace_parser, false, "Trace parser operations."); 46 DEFINE_FLAG(bool, trace_parser, false, "Trace parser operations.");
47 DEFINE_FLAG(bool, warn_mixin_typedef, true, "Warning on legacy mixin typedef."); 47 DEFINE_FLAG(bool, warn_mixin_typedef, true, "Warning on legacy mixin typedef.");
48 DEFINE_FLAG(bool, link_natives_lazily, false, "Link native calls lazily"); 48 DEFINE_FLAG(bool, link_natives_lazily, false, "Link native calls lazily");
49 DEFINE_FLAG(bool, conditional_directives, false, 49 DEFINE_FLAG(bool, conditional_directives, false,
50 "Enable conditional directives"); 50 "Enable conditional directives");
51 DEFINE_FLAG(bool, warn_super, false, 51 DEFINE_FLAG(bool, warn_super, false,
52 "Warning if super initializer not last in initializer list."); 52 "Warning if super initializer not last in initializer list.");
53 DEFINE_FLAG(bool, await_is_keyword, false, 53 DEFINE_FLAG(bool, await_is_keyword, false,
54 "await and yield are treated as proper keywords in synchronous code."); 54 "await and yield are treated as proper keywords in synchronous code.");
55 55
56 DECLARE_FLAG(bool, lazy_dispatchers);
57 DECLARE_FLAG(bool, load_deferred_eagerly); 56 DECLARE_FLAG(bool, load_deferred_eagerly);
58 DECLARE_FLAG(bool, profile_vm); 57 DECLARE_FLAG(bool, profile_vm);
59 58
60 // Quick access to the current thread, isolate and zone. 59 // Quick access to the current thread, isolate and zone.
61 #define T (thread()) 60 #define T (thread())
62 #define I (isolate()) 61 #define I (isolate())
63 #define Z (zone()) 62 #define Z (zone())
64 63
65 // Quick synthetic token position. 64 // Quick synthetic token position.
66 #define ST(token_pos) ((token_pos).ToSynthetic()) 65 #define ST(token_pos) ((token_pos).ToSynthetic())
(...skipping 14356 matching lines...) Expand 10 before | Expand all | Expand 10 after
14423 const ArgumentListNode& function_args, 14422 const ArgumentListNode& function_args,
14424 const LocalVariable* temp_for_last_arg, 14423 const LocalVariable* temp_for_last_arg,
14425 bool is_super_invocation) { 14424 bool is_super_invocation) {
14426 UNREACHABLE(); 14425 UNREACHABLE();
14427 return NULL; 14426 return NULL;
14428 } 14427 }
14429 14428
14430 } // namespace dart 14429 } // namespace dart
14431 14430
14432 #endif // DART_PRECOMPILED_RUNTIME 14431 #endif // DART_PRECOMPILED_RUNTIME
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/precompiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698