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 "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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 #else | 700 #else |
701 buffer.AddString(" x64-sysv"); | 701 buffer.AddString(" x64-sysv"); |
702 #endif | 702 #endif |
703 #elif defined(TARGET_ARCH_DBC) | 703 #elif defined(TARGET_ARCH_DBC) |
704 buffer.AddString(" dbc"); | 704 buffer.AddString(" dbc"); |
705 #elif defined(TARGET_ARCH_DBC64) | 705 #elif defined(TARGET_ARCH_DBC64) |
706 buffer.AddString(" dbc64"); | 706 buffer.AddString(" dbc64"); |
707 #endif | 707 #endif |
708 } | 708 } |
709 | 709 |
| 710 if (FLAG_dwarf_stack_traces) { |
| 711 buffer.AddString(" dwarf-stack-traces"); |
| 712 } |
| 713 |
710 return buffer.Steal(); | 714 return buffer.Steal(); |
711 } | 715 } |
712 | 716 |
713 | 717 |
714 void Dart::RunShutdownCallback() { | 718 void Dart::RunShutdownCallback() { |
715 Isolate* isolate = Isolate::Current(); | 719 Isolate* isolate = Isolate::Current(); |
716 void* callback_data = isolate->init_callback_data(); | 720 void* callback_data = isolate->init_callback_data(); |
717 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback(); | 721 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback(); |
718 if (callback != NULL) { | 722 if (callback != NULL) { |
719 (callback)(callback_data); | 723 (callback)(callback_data); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 return predefined_handles_->handles_.IsValidScopedHandle(address); | 768 return predefined_handles_->handles_.IsValidScopedHandle(address); |
765 } | 769 } |
766 | 770 |
767 | 771 |
768 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { | 772 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { |
769 ASSERT(predefined_handles_ != NULL); | 773 ASSERT(predefined_handles_ != NULL); |
770 return predefined_handles_->api_handles_.IsValidHandle(handle); | 774 return predefined_handles_->api_handles_.IsValidHandle(handle); |
771 } | 775 } |
772 | 776 |
773 } // namespace dart | 777 } // namespace dart |
OLD | NEW |