| 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 | |
| 714 return buffer.Steal(); | 710 return buffer.Steal(); |
| 715 } | 711 } |
| 716 | 712 |
| 717 | 713 |
| 718 void Dart::RunShutdownCallback() { | 714 void Dart::RunShutdownCallback() { |
| 719 Isolate* isolate = Isolate::Current(); | 715 Isolate* isolate = Isolate::Current(); |
| 720 void* callback_data = isolate->init_callback_data(); | 716 void* callback_data = isolate->init_callback_data(); |
| 721 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback(); | 717 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback(); |
| 722 if (callback != NULL) { | 718 if (callback != NULL) { |
| 723 (callback)(callback_data); | 719 (callback)(callback_data); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 return predefined_handles_->handles_.IsValidScopedHandle(address); | 764 return predefined_handles_->handles_.IsValidScopedHandle(address); |
| 769 } | 765 } |
| 770 | 766 |
| 771 | 767 |
| 772 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { | 768 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { |
| 773 ASSERT(predefined_handles_ != NULL); | 769 ASSERT(predefined_handles_ != NULL); |
| 774 return predefined_handles_->api_handles_.IsValidHandle(handle); | 770 return predefined_handles_->api_handles_.IsValidHandle(handle); |
| 775 } | 771 } |
| 776 | 772 |
| 777 } // namespace dart | 773 } // namespace dart |
| OLD | NEW |