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 #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 24 matching lines...) Expand all Loading... |
35 #include "vm/scopes.h" | 35 #include "vm/scopes.h" |
36 #include "vm/stack_frame.h" | 36 #include "vm/stack_frame.h" |
37 #include "vm/symbols.h" | 37 #include "vm/symbols.h" |
38 #include "vm/tags.h" | 38 #include "vm/tags.h" |
39 #include "vm/timer.h" | 39 #include "vm/timer.h" |
40 #include "vm/zone.h" | 40 #include "vm/zone.h" |
41 | 41 |
42 namespace dart { | 42 namespace dart { |
43 | 43 |
44 DEFINE_FLAG(bool, enable_debug_break, false, "Allow use of break \"message\"."); | 44 DEFINE_FLAG(bool, enable_debug_break, false, "Allow use of break \"message\"."); |
45 DEFINE_FLAG(bool, enable_mirrors, true, | |
46 "Disable to make importing dart:mirrors an error."); | |
47 DEFINE_FLAG(bool, load_deferred_eagerly, false, | 45 DEFINE_FLAG(bool, load_deferred_eagerly, false, |
48 "Load deferred libraries eagerly."); | 46 "Load deferred libraries eagerly."); |
49 DEFINE_FLAG(bool, trace_parser, false, "Trace parser operations."); | 47 DEFINE_FLAG(bool, trace_parser, false, "Trace parser operations."); |
50 DEFINE_FLAG(bool, warn_mixin_typedef, true, "Warning on legacy mixin typedef."); | 48 DEFINE_FLAG(bool, warn_mixin_typedef, true, "Warning on legacy mixin typedef."); |
51 DEFINE_FLAG(bool, link_natives_lazily, false, "Link native calls lazily"); | 49 DEFINE_FLAG(bool, link_natives_lazily, false, "Link native calls lazily"); |
52 DEFINE_FLAG(bool, conditional_directives, false, | 50 DEFINE_FLAG(bool, conditional_directives, false, |
53 "Enable conditional directives"); | 51 "Enable conditional directives"); |
54 DEFINE_FLAG(bool, warn_super, false, | 52 DEFINE_FLAG(bool, warn_super, false, |
55 "Warning if super initializer not last in initializer list."); | 53 "Warning if super initializer not last in initializer list."); |
56 DEFINE_FLAG(bool, await_is_keyword, false, | 54 DEFINE_FLAG(bool, await_is_keyword, false, |
(...skipping 14271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14328 } | 14326 } |
14329 | 14327 |
14330 } // namespace dart | 14328 } // namespace dart |
14331 | 14329 |
14332 | 14330 |
14333 #else // DART_PRECOMPILED_RUNTIME | 14331 #else // DART_PRECOMPILED_RUNTIME |
14334 | 14332 |
14335 | 14333 |
14336 namespace dart { | 14334 namespace dart { |
14337 | 14335 |
14338 DEFINE_FLAG(bool, enable_mirrors, true, | |
14339 "Disable to make importing dart:mirrors an error."); | |
14340 DEFINE_FLAG(bool, load_deferred_eagerly, false, | 14336 DEFINE_FLAG(bool, load_deferred_eagerly, false, |
14341 "Load deferred libraries eagerly."); | 14337 "Load deferred libraries eagerly."); |
14342 DEFINE_FLAG(bool, link_natives_lazily, false, "Link native calls lazily"); | 14338 DEFINE_FLAG(bool, link_natives_lazily, false, "Link native calls lazily"); |
14343 | 14339 |
14344 LocalVariable* ParsedFunction::EnsureExpressionTemp() { | 14340 LocalVariable* ParsedFunction::EnsureExpressionTemp() { |
14345 UNREACHABLE(); | 14341 UNREACHABLE(); |
14346 return NULL; | 14342 return NULL; |
14347 } | 14343 } |
14348 | 14344 |
14349 | 14345 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14408 const ArgumentListNode& function_args, | 14404 const ArgumentListNode& function_args, |
14409 const LocalVariable* temp_for_last_arg, | 14405 const LocalVariable* temp_for_last_arg, |
14410 bool is_super_invocation) { | 14406 bool is_super_invocation) { |
14411 UNREACHABLE(); | 14407 UNREACHABLE(); |
14412 return NULL; | 14408 return NULL; |
14413 } | 14409 } |
14414 | 14410 |
14415 } // namespace dart | 14411 } // namespace dart |
14416 | 14412 |
14417 #endif // DART_PRECOMPILED_RUNTIME | 14413 #endif // DART_PRECOMPILED_RUNTIME |
OLD | NEW |