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