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 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1138 Dart_IsolateCreateCallback create, | 1138 Dart_IsolateCreateCallback create, |
1139 Dart_IsolateInterruptCallback interrupt, | 1139 Dart_IsolateInterruptCallback interrupt, |
1140 Dart_IsolateUnhandledExceptionCallback unhandled, | 1140 Dart_IsolateUnhandledExceptionCallback unhandled, |
1141 Dart_IsolateShutdownCallback shutdown, | 1141 Dart_IsolateShutdownCallback shutdown, |
1142 Dart_FileOpenCallback file_open, | 1142 Dart_FileOpenCallback file_open, |
1143 Dart_FileReadCallback file_read, | 1143 Dart_FileReadCallback file_read, |
1144 Dart_FileWriteCallback file_write, | 1144 Dart_FileWriteCallback file_write, |
1145 Dart_FileCloseCallback file_close, | 1145 Dart_FileCloseCallback file_close, |
1146 Dart_EntropySource entropy_source, | 1146 Dart_EntropySource entropy_source, |
1147 Dart_GetVMServiceAssetsArchive get_service_assets) { | 1147 Dart_GetVMServiceAssetsArchive get_service_assets) { |
1148 if ((instructions_snapshot != NULL) && !FLAG_precompiled_mode) { | 1148 if ((instructions_snapshot != NULL) && !FLAG_precompiled_runtime) { |
1149 return strdup("Flag --precompilation was not specified."); | 1149 return strdup("Flag --precompilation was not specified."); |
1150 } | 1150 } |
1151 if (interrupt != NULL) { | 1151 if (interrupt != NULL) { |
1152 return strdup("Dart_Initialize: " | 1152 return strdup("Dart_Initialize: " |
1153 "Setting of interrupt callback is not supported."); | 1153 "Setting of interrupt callback is not supported."); |
1154 } | 1154 } |
1155 if (unhandled != NULL) { | 1155 if (unhandled != NULL) { |
1156 return strdup("Dart_Initialize: " | 1156 return strdup("Dart_Initialize: " |
1157 "Setting of unhandled exception callback is not supported."); | 1157 "Setting of unhandled exception callback is not supported."); |
1158 } | 1158 } |
(...skipping 5035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6194 return Api::Success(); | 6194 return Api::Success(); |
6195 } | 6195 } |
6196 #endif // DART_PRECOMPILER | 6196 #endif // DART_PRECOMPILER |
6197 | 6197 |
6198 | 6198 |
6199 DART_EXPORT bool Dart_IsRunningPrecompiledCode() { | 6199 DART_EXPORT bool Dart_IsRunningPrecompiledCode() { |
6200 return Dart::IsRunningPrecompiledCode(); | 6200 return Dart::IsRunningPrecompiledCode(); |
6201 } | 6201 } |
6202 | 6202 |
6203 } // namespace dart | 6203 } // namespace dart |
OLD | NEW |