| 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 6685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6696 intptr_t* isolate_snapshot_data_size, | 6696 intptr_t* isolate_snapshot_data_size, |
| 6697 uint8_t** isolate_snapshot_instructions_buffer, | 6697 uint8_t** isolate_snapshot_instructions_buffer, |
| 6698 intptr_t* isolate_snapshot_instructions_size) { | 6698 intptr_t* isolate_snapshot_instructions_size) { |
| 6699 #if defined(TARGET_ARCH_IA32) | 6699 #if defined(TARGET_ARCH_IA32) |
| 6700 return Api::NewError("AOT compilation is not supported on IA32."); | 6700 return Api::NewError("AOT compilation is not supported on IA32."); |
| 6701 #elif defined(TARGET_ARCH_DBC) | 6701 #elif defined(TARGET_ARCH_DBC) |
| 6702 return Api::NewError("AOT compilation is not supported on DBC."); | 6702 return Api::NewError("AOT compilation is not supported on DBC."); |
| 6703 #elif !defined(DART_PRECOMPILER) | 6703 #elif !defined(DART_PRECOMPILER) |
| 6704 return Api::NewError( | 6704 return Api::NewError( |
| 6705 "This VM was built without support for AOT compilation."); | 6705 "This VM was built without support for AOT compilation."); |
| 6706 #elif defined(TARGET_OS_FUCHSIA) |
| 6707 return Api::NewError( |
| 6708 "AOT as blobs is not supported on Fuchsia; use dylibs instead."); |
| 6706 #else | 6709 #else |
| 6707 API_TIMELINE_DURATION; | 6710 API_TIMELINE_DURATION; |
| 6708 DARTSCOPE(Thread::Current()); | 6711 DARTSCOPE(Thread::Current()); |
| 6709 Isolate* I = T->isolate(); | 6712 Isolate* I = T->isolate(); |
| 6710 if (I->compilation_allowed()) { | 6713 if (I->compilation_allowed()) { |
| 6711 return Api::NewError( | 6714 return Api::NewError( |
| 6712 "Isolate is not precompiled. " | 6715 "Isolate is not precompiled. " |
| 6713 "Did you forget to call Dart_Precompile?"); | 6716 "Did you forget to call Dart_Precompile?"); |
| 6714 } | 6717 } |
| 6715 ASSERT(FLAG_load_deferred_eagerly); | 6718 ASSERT(FLAG_load_deferred_eagerly); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6829 } | 6832 } |
| 6830 | 6833 |
| 6831 | 6834 |
| 6832 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { | 6835 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { |
| 6833 #ifndef PRODUCT | 6836 #ifndef PRODUCT |
| 6834 Profiler::DumpStackTrace(context); | 6837 Profiler::DumpStackTrace(context); |
| 6835 #endif | 6838 #endif |
| 6836 } | 6839 } |
| 6837 | 6840 |
| 6838 } // namespace dart | 6841 } // namespace dart |
| OLD | NEW |