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 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 #if defined(_WIN64) | 667 #if defined(_WIN64) |
668 buffer.AddString(" x64-win"); | 668 buffer.AddString(" x64-win"); |
669 #else | 669 #else |
670 buffer.AddString(" x64-sysv"); | 670 buffer.AddString(" x64-sysv"); |
671 #endif | 671 #endif |
672 #elif defined(TARGET_ARCH_DBC) | 672 #elif defined(TARGET_ARCH_DBC) |
673 buffer.AddString(" dbc"); | 673 buffer.AddString(" dbc"); |
674 #elif defined(TARGET_ARCH_DBC64) | 674 #elif defined(TARGET_ARCH_DBC64) |
675 buffer.AddString(" dbc64"); | 675 buffer.AddString(" dbc64"); |
676 #endif | 676 #endif |
677 } else if (Snapshot::IsFull(kind)) { | |
678 #if defined(ARCH_IS_32BIT) | |
679 buffer.AddString(" 32"); | |
680 #else | |
681 buffer.AddString(" 64"); | |
682 #endif | |
683 } | 677 } |
684 | 678 |
685 return buffer.Steal(); | 679 return buffer.Steal(); |
686 } | 680 } |
687 | 681 |
688 | 682 |
689 void Dart::RunShutdownCallback() { | 683 void Dart::RunShutdownCallback() { |
690 Isolate* isolate = Isolate::Current(); | 684 Isolate* isolate = Isolate::Current(); |
691 void* callback_data = isolate->init_callback_data(); | 685 void* callback_data = isolate->init_callback_data(); |
692 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback(); | 686 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback(); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 return predefined_handles_->handles_.IsValidScopedHandle(address); | 734 return predefined_handles_->handles_.IsValidScopedHandle(address); |
741 } | 735 } |
742 | 736 |
743 | 737 |
744 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { | 738 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { |
745 ASSERT(predefined_handles_ != NULL); | 739 ASSERT(predefined_handles_ != NULL); |
746 return predefined_handles_->api_handles_.IsValidHandle(handle); | 740 return predefined_handles_->api_handles_.IsValidHandle(handle); |
747 } | 741 } |
748 | 742 |
749 } // namespace dart | 743 } // namespace dart |
OLD | NEW |