OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 "include/dart_api.h" | 5 #include "include/dart_api.h" |
6 #include "include/dart_mirrors_api.h" | 6 #include "include/dart_mirrors_api.h" |
7 #include "include/dart_native_api.h" | 7 #include "include/dart_native_api.h" |
8 | 8 |
9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
10 #include "lib/stacktrace.h" | 10 #include "lib/stacktrace.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "vm/unicode.h" | 44 #include "vm/unicode.h" |
45 #include "vm/verifier.h" | 45 #include "vm/verifier.h" |
46 #include "vm/version.h" | 46 #include "vm/version.h" |
47 | 47 |
48 namespace dart { | 48 namespace dart { |
49 | 49 |
50 // Facilitate quick access to the current zone once we have the curren thread. | 50 // Facilitate quick access to the current zone once we have the curren thread. |
51 #define Z (T->zone()) | 51 #define Z (T->zone()) |
52 | 52 |
53 | 53 |
54 DECLARE_FLAG(bool, enable_mirrors); | |
55 DECLARE_FLAG(bool, load_deferred_eagerly); | 54 DECLARE_FLAG(bool, load_deferred_eagerly); |
56 DECLARE_FLAG(bool, precompilation); | 55 DECLARE_FLAG(bool, precompilation); |
57 DECLARE_FLAG(bool, print_class_table); | 56 DECLARE_FLAG(bool, print_class_table); |
58 DECLARE_FLAG(bool, verify_handles); | 57 DECLARE_FLAG(bool, verify_handles); |
59 #if defined(DART_NO_SNAPSHOT) | 58 #if defined(DART_NO_SNAPSHOT) |
60 DEFINE_FLAG(bool, check_function_fingerprints, true, | 59 DEFINE_FLAG(bool, check_function_fingerprints, true, |
61 "Check function fingerprints"); | 60 "Check function fingerprints"); |
62 #endif // defined(DART_NO_SNAPSHOT). | 61 #endif // defined(DART_NO_SNAPSHOT). |
63 DEFINE_FLAG(bool, verify_acquired_data, false, | 62 DEFINE_FLAG(bool, verify_acquired_data, false, |
64 "Verify correct API acquire/release of typed data."); | 63 "Verify correct API acquire/release of typed data."); |
(...skipping 6104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6169 return Api::Success(); | 6168 return Api::Success(); |
6170 } | 6169 } |
6171 #endif // DART_PRECOMPILER | 6170 #endif // DART_PRECOMPILER |
6172 | 6171 |
6173 | 6172 |
6174 DART_EXPORT bool Dart_IsRunningPrecompiledCode() { | 6173 DART_EXPORT bool Dart_IsRunningPrecompiledCode() { |
6175 return Dart::IsRunningPrecompiledCode(); | 6174 return Dart::IsRunningPrecompiledCode(); |
6176 } | 6175 } |
6177 | 6176 |
6178 } // namespace dart | 6177 } // namespace dart |
OLD | NEW |