| 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 23 matching lines...) Expand all Loading... |
| 34 #include "vm/scopes.h" | 34 #include "vm/scopes.h" |
| 35 #include "vm/stack_frame.h" | 35 #include "vm/stack_frame.h" |
| 36 #include "vm/symbols.h" | 36 #include "vm/symbols.h" |
| 37 #include "vm/tags.h" | 37 #include "vm/tags.h" |
| 38 #include "vm/timer.h" | 38 #include "vm/timer.h" |
| 39 #include "vm/zone.h" | 39 #include "vm/zone.h" |
| 40 | 40 |
| 41 namespace dart { | 41 namespace dart { |
| 42 | 42 |
| 43 DEFINE_FLAG(bool, enable_debug_break, false, "Allow use of break \"message\"."); | 43 DEFINE_FLAG(bool, enable_debug_break, false, "Allow use of break \"message\"."); |
| 44 DEFINE_FLAG(bool, load_deferred_eagerly, false, | |
| 45 "Load deferred libraries eagerly."); | |
| 46 DEFINE_FLAG(bool, trace_parser, false, "Trace parser operations."); | 44 DEFINE_FLAG(bool, trace_parser, false, "Trace parser operations."); |
| 47 DEFINE_FLAG(bool, warn_mixin_typedef, true, "Warning on legacy mixin typedef."); | 45 DEFINE_FLAG(bool, warn_mixin_typedef, true, "Warning on legacy mixin typedef."); |
| 48 DEFINE_FLAG(bool, link_natives_lazily, false, "Link native calls lazily"); | |
| 49 DEFINE_FLAG(bool, conditional_directives, false, | 46 DEFINE_FLAG(bool, conditional_directives, false, |
| 50 "Enable conditional directives"); | 47 "Enable conditional directives"); |
| 51 DEFINE_FLAG(bool, warn_super, false, | 48 DEFINE_FLAG(bool, warn_super, false, |
| 52 "Warning if super initializer not last in initializer list."); | 49 "Warning if super initializer not last in initializer list."); |
| 53 DEFINE_FLAG(bool, await_is_keyword, false, | 50 DEFINE_FLAG(bool, await_is_keyword, false, |
| 54 "await and yield are treated as proper keywords in synchronous code."); | 51 "await and yield are treated as proper keywords in synchronous code."); |
| 55 | 52 |
| 56 DECLARE_FLAG(bool, load_deferred_eagerly); | |
| 57 DECLARE_FLAG(bool, profile_vm); | 53 DECLARE_FLAG(bool, profile_vm); |
| 58 | 54 |
| 59 // Quick access to the current thread, isolate and zone. | 55 // Quick access to the current thread, isolate and zone. |
| 60 #define T (thread()) | 56 #define T (thread()) |
| 61 #define I (isolate()) | 57 #define I (isolate()) |
| 62 #define Z (zone()) | 58 #define Z (zone()) |
| 63 | 59 |
| 64 // Quick synthetic token position. | 60 // Quick synthetic token position. |
| 65 #define ST(token_pos) ((token_pos).ToSynthetic()) | 61 #define ST(token_pos) ((token_pos).ToSynthetic()) |
| 66 | 62 |
| (...skipping 14271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14338 } | 14334 } |
| 14339 | 14335 |
| 14340 } // namespace dart | 14336 } // namespace dart |
| 14341 | 14337 |
| 14342 | 14338 |
| 14343 #else // DART_PRECOMPILED_RUNTIME | 14339 #else // DART_PRECOMPILED_RUNTIME |
| 14344 | 14340 |
| 14345 | 14341 |
| 14346 namespace dart { | 14342 namespace dart { |
| 14347 | 14343 |
| 14348 DEFINE_FLAG(bool, load_deferred_eagerly, false, | |
| 14349 "Load deferred libraries eagerly."); | |
| 14350 DEFINE_FLAG(bool, link_natives_lazily, false, "Link native calls lazily"); | |
| 14351 | |
| 14352 | |
| 14353 void ParsedFunction::AddToGuardedFields(const Field* field) const { | 14344 void ParsedFunction::AddToGuardedFields(const Field* field) const { |
| 14354 UNREACHABLE(); | 14345 UNREACHABLE(); |
| 14355 } | 14346 } |
| 14356 | 14347 |
| 14357 | 14348 |
| 14358 LocalVariable* ParsedFunction::EnsureExpressionTemp() { | 14349 LocalVariable* ParsedFunction::EnsureExpressionTemp() { |
| 14359 UNREACHABLE(); | 14350 UNREACHABLE(); |
| 14360 return NULL; | 14351 return NULL; |
| 14361 } | 14352 } |
| 14362 | 14353 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14422 const ArgumentListNode& function_args, | 14413 const ArgumentListNode& function_args, |
| 14423 const LocalVariable* temp_for_last_arg, | 14414 const LocalVariable* temp_for_last_arg, |
| 14424 bool is_super_invocation) { | 14415 bool is_super_invocation) { |
| 14425 UNREACHABLE(); | 14416 UNREACHABLE(); |
| 14426 return NULL; | 14417 return NULL; |
| 14427 } | 14418 } |
| 14428 | 14419 |
| 14429 } // namespace dart | 14420 } // namespace dart |
| 14430 | 14421 |
| 14431 #endif // DART_PRECOMPILED_RUNTIME | 14422 #endif // DART_PRECOMPILED_RUNTIME |
| OLD | NEW |