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/code_observers.h" | 9 #include "vm/code_observers.h" |
9 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
10 #include "vm/dart_api_state.h" | 11 #include "vm/dart_api_state.h" |
11 #include "vm/dart_entry.h" | 12 #include "vm/dart_entry.h" |
12 #include "vm/debugger.h" | 13 #include "vm/debugger.h" |
13 #include "vm/flags.h" | 14 #include "vm/flags.h" |
14 #include "vm/freelist.h" | 15 #include "vm/freelist.h" |
15 #include "vm/handles.h" | 16 #include "vm/handles.h" |
16 #include "vm/heap.h" | 17 #include "vm/heap.h" |
17 #include "vm/isolate.h" | 18 #include "vm/isolate.h" |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 #if defined(_WIN64) | 667 #if defined(_WIN64) |
667 buffer.AddString(" x64-win"); | 668 buffer.AddString(" x64-win"); |
668 #else | 669 #else |
669 buffer.AddString(" x64-sysv"); | 670 buffer.AddString(" x64-sysv"); |
670 #endif | 671 #endif |
671 #elif defined(TARGET_ARCH_DBC) | 672 #elif defined(TARGET_ARCH_DBC) |
672 buffer.AddString(" dbc"); | 673 buffer.AddString(" dbc"); |
673 #elif defined(TARGET_ARCH_DBC64) | 674 #elif defined(TARGET_ARCH_DBC64) |
674 buffer.AddString(" dbc64"); | 675 buffer.AddString(" dbc64"); |
675 #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 |
676 } | 683 } |
677 | 684 |
678 return buffer.Steal(); | 685 return buffer.Steal(); |
679 } | 686 } |
680 | 687 |
681 | 688 |
682 void Dart::RunShutdownCallback() { | 689 void Dart::RunShutdownCallback() { |
683 Isolate* isolate = Isolate::Current(); | 690 Isolate* isolate = Isolate::Current(); |
684 void* callback_data = isolate->init_callback_data(); | 691 void* callback_data = isolate->init_callback_data(); |
685 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback(); | 692 Dart_IsolateShutdownCallback callback = Isolate::ShutdownCallback(); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 return predefined_handles_->handles_.IsValidScopedHandle(address); | 740 return predefined_handles_->handles_.IsValidScopedHandle(address); |
734 } | 741 } |
735 | 742 |
736 | 743 |
737 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { | 744 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { |
738 ASSERT(predefined_handles_ != NULL); | 745 ASSERT(predefined_handles_ != NULL); |
739 return predefined_handles_->api_handles_.IsValidHandle(handle); | 746 return predefined_handles_->api_handles_.IsValidHandle(handle); |
740 } | 747 } |
741 | 748 |
742 } // namespace dart | 749 } // namespace dart |
OLD | NEW |