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/code_observers.h" | 8 #include "vm/code_observers.h" |
9 #include "vm/cpu.h" | 9 #include "vm/cpu.h" |
10 #include "vm/dart_api_state.h" | 10 #include "vm/dart_api_state.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "vm/simulator.h" | 26 #include "vm/simulator.h" |
27 #include "vm/snapshot.h" | 27 #include "vm/snapshot.h" |
28 #include "vm/store_buffer.h" | 28 #include "vm/store_buffer.h" |
29 #include "vm/stub_code.h" | 29 #include "vm/stub_code.h" |
30 #include "vm/symbols.h" | 30 #include "vm/symbols.h" |
31 #include "vm/thread_interrupter.h" | 31 #include "vm/thread_interrupter.h" |
32 #include "vm/thread_pool.h" | 32 #include "vm/thread_pool.h" |
33 #include "vm/timeline.h" | 33 #include "vm/timeline.h" |
34 #include "vm/virtual_memory.h" | 34 #include "vm/virtual_memory.h" |
35 #include "vm/zone.h" | 35 #include "vm/zone.h" |
| 36 #include "vm/clustered_snapshot.h" |
36 | 37 |
37 namespace dart { | 38 namespace dart { |
38 | 39 |
39 DECLARE_FLAG(bool, print_class_table); | 40 DECLARE_FLAG(bool, print_class_table); |
40 DECLARE_FLAG(bool, trace_time_all); | 41 DECLARE_FLAG(bool, trace_time_all); |
41 DEFINE_FLAG(bool, keep_code, false, | 42 DEFINE_FLAG(bool, keep_code, false, |
42 "Keep deoptimized code for profiling."); | 43 "Keep deoptimized code for profiling."); |
43 DEFINE_FLAG(bool, shutdown, true, "Do a clean shutdown of the VM"); | 44 DEFINE_FLAG(bool, shutdown, true, "Do a clean shutdown of the VM"); |
44 DEFINE_FLAG(bool, trace_shutdown, false, "Trace VM shutdown on stderr"); | 45 DEFINE_FLAG(bool, trace_shutdown, false, "Trace VM shutdown on stderr"); |
45 | 46 |
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 return predefined_handles_->handles_.IsValidScopedHandle(address); | 734 return predefined_handles_->handles_.IsValidScopedHandle(address); |
734 } | 735 } |
735 | 736 |
736 | 737 |
737 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { | 738 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { |
738 ASSERT(predefined_handles_ != NULL); | 739 ASSERT(predefined_handles_ != NULL); |
739 return predefined_handles_->api_handles_.IsValidHandle(handle); | 740 return predefined_handles_->api_handles_.IsValidHandle(handle); |
740 } | 741 } |
741 | 742 |
742 } // namespace dart | 743 } // namespace dart |
OLD | NEW |