Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: runtime/vm/dart_api_impl.cc

Issue 2723213002: DWARF and unwind support for AOT assembly output. (Closed)
Patch Set: . Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 6688 matching lines...) Expand 10 before | Expand all | Expand 10 after
6699 uint8_t** isolate_snapshot_instructions_buffer, 6699 uint8_t** isolate_snapshot_instructions_buffer,
6700 intptr_t* isolate_snapshot_instructions_size) { 6700 intptr_t* isolate_snapshot_instructions_size) {
6701 #if defined(TARGET_ARCH_IA32) 6701 #if defined(TARGET_ARCH_IA32)
6702 return Api::NewError("AOT compilation is not supported on IA32."); 6702 return Api::NewError("AOT compilation is not supported on IA32.");
6703 #elif defined(TARGET_ARCH_DBC) 6703 #elif defined(TARGET_ARCH_DBC)
6704 return Api::NewError("AOT compilation is not supported on DBC."); 6704 return Api::NewError("AOT compilation is not supported on DBC.");
6705 #elif !defined(DART_PRECOMPILER) 6705 #elif !defined(DART_PRECOMPILER)
6706 return Api::NewError( 6706 return Api::NewError(
6707 "This VM was built without support for AOT compilation."); 6707 "This VM was built without support for AOT compilation.");
6708 #else 6708 #else
6709 if (FLAG_dwarf_stack_traces) {
6710 return Api::NewError(
6711 "--dwarf_stack_traces requires creating an AOT snapshot as assembly.");
6712 }
6713
6709 API_TIMELINE_DURATION; 6714 API_TIMELINE_DURATION;
6710 DARTSCOPE(Thread::Current()); 6715 DARTSCOPE(Thread::Current());
6711 Isolate* I = T->isolate(); 6716 Isolate* I = T->isolate();
6712 if (I->compilation_allowed()) { 6717 if (I->compilation_allowed()) {
6713 return Api::NewError( 6718 return Api::NewError(
6714 "Isolate is not precompiled. " 6719 "Isolate is not precompiled. "
6715 "Did you forget to call Dart_Precompile?"); 6720 "Did you forget to call Dart_Precompile?");
6716 } 6721 }
6717 ASSERT(FLAG_load_deferred_eagerly); 6722 ASSERT(FLAG_load_deferred_eagerly);
6718 if (vm_snapshot_data_buffer == NULL) { 6723 if (vm_snapshot_data_buffer == NULL) {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
6831 } 6836 }
6832 6837
6833 6838
6834 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { 6839 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) {
6835 #ifndef PRODUCT 6840 #ifndef PRODUCT
6836 Profiler::DumpStackTrace(context); 6841 Profiler::DumpStackTrace(context);
6837 #endif 6842 #endif
6838 } 6843 }
6839 6844
6840 } // namespace dart 6845 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/datastream.h » ('j') | runtime/vm/dwarf.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698