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

Side by Side Diff: runtime/vm/dart.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 "vm/dart.h" 5 #include "vm/dart.h"
6 6
7 #include "vm/become.h" 7 #include "vm/become.h"
8 #include "vm/clustered_snapshot.h" 8 #include "vm/clustered_snapshot.h"
9 #include "vm/code_observers.h" 9 #include "vm/code_observers.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 #else 702 #else
703 buffer.AddString(" x64-sysv"); 703 buffer.AddString(" x64-sysv");
704 #endif 704 #endif
705 #elif defined(TARGET_ARCH_DBC) 705 #elif defined(TARGET_ARCH_DBC)
706 buffer.AddString(" dbc"); 706 buffer.AddString(" dbc");
707 #elif defined(TARGET_ARCH_DBC64) 707 #elif defined(TARGET_ARCH_DBC64)
708 buffer.AddString(" dbc64"); 708 buffer.AddString(" dbc64");
709 #endif 709 #endif
710 } 710 }
711 711
712 if (FLAG_dwarf_stack_traces) {
713 buffer.AddString(" dwarf-stack-traces");
714 }
715
712 return buffer.Steal(); 716 return buffer.Steal();
713 } 717 }
714 718
715 719
716 void Dart::RunShutdownCallback() { 720 void Dart::RunShutdownCallback() {
717 Isolate* isolate = Isolate::Current(); 721 Isolate* isolate = Isolate::Current();
718 void* callback_data = isolate->init_callback_data(); 722 void* callback_data = isolate->init_callback_data();
719 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback(); 723 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback();
720 if (callback != NULL) { 724 if (callback != NULL) {
721 (callback)(callback_data); 725 (callback)(callback_data);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 return predefined_handles_->handles_.IsValidScopedHandle(address); 770 return predefined_handles_->handles_.IsValidScopedHandle(address);
767 } 771 }
768 772
769 773
770 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { 774 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) {
771 ASSERT(predefined_handles_ != NULL); 775 ASSERT(predefined_handles_ != NULL);
772 return predefined_handles_->api_handles_.IsValidHandle(handle); 776 return predefined_handles_->api_handles_.IsValidHandle(handle);
773 } 777 }
774 778
775 } // namespace dart 779 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698