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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 | 53 |
54 DECLARE_FLAG(bool, print_class_table); | 54 DECLARE_FLAG(bool, print_class_table); |
55 DECLARE_FLAG(bool, verify_handles); | 55 DECLARE_FLAG(bool, verify_handles); |
56 #if defined(DART_NO_SNAPSHOT) | 56 #if defined(DART_NO_SNAPSHOT) |
57 DEFINE_FLAG(bool, check_function_fingerprints, true, | 57 DEFINE_FLAG(bool, check_function_fingerprints, true, |
58 "Check function fingerprints"); | 58 "Check function fingerprints"); |
59 #endif // defined(DART_NO_SNAPSHOT). | 59 #endif // defined(DART_NO_SNAPSHOT). |
60 DEFINE_FLAG(bool, verify_acquired_data, false, | 60 DEFINE_FLAG(bool, verify_acquired_data, false, |
61 "Verify correct API acquire/release of typed data."); | 61 "Verify correct API acquire/release of typed data."); |
62 DEFINE_FLAG(bool, support_externalizable_strings, true, | 62 DEFINE_FLAG(bool, support_externalizable_strings, false, |
63 "Support Dart_MakeExternalString."); | 63 "Support Dart_MakeExternalString."); |
64 | 64 |
65 | 65 |
66 ThreadLocalKey Api::api_native_key_ = kUnsetThreadLocalKey; | 66 ThreadLocalKey Api::api_native_key_ = kUnsetThreadLocalKey; |
67 Dart_Handle Api::true_handle_ = NULL; | 67 Dart_Handle Api::true_handle_ = NULL; |
68 Dart_Handle Api::false_handle_ = NULL; | 68 Dart_Handle Api::false_handle_ = NULL; |
69 Dart_Handle Api::null_handle_ = NULL; | 69 Dart_Handle Api::null_handle_ = NULL; |
70 Dart_Handle Api::empty_string_handle_ = NULL; | 70 Dart_Handle Api::empty_string_handle_ = NULL; |
71 | 71 |
72 | 72 |
(...skipping 6047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6120 return Api::Success(); | 6120 return Api::Success(); |
6121 } | 6121 } |
6122 #endif // DART_PRECOMPILER | 6122 #endif // DART_PRECOMPILER |
6123 | 6123 |
6124 | 6124 |
6125 DART_EXPORT bool Dart_IsRunningPrecompiledCode() { | 6125 DART_EXPORT bool Dart_IsRunningPrecompiledCode() { |
6126 return Dart::IsRunningPrecompiledCode(); | 6126 return Dart::IsRunningPrecompiledCode(); |
6127 } | 6127 } |
6128 | 6128 |
6129 } // namespace dart | 6129 } // namespace dart |
OLD | NEW |