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/code_observers.h" | 7 #include "vm/code_observers.h" |
8 #include "vm/cpu.h" | 8 #include "vm/cpu.h" |
9 #include "vm/dart_api_state.h" | 9 #include "vm/dart_api_state.h" |
10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "vm/symbols.h" | 29 #include "vm/symbols.h" |
30 #include "vm/thread_interrupter.h" | 30 #include "vm/thread_interrupter.h" |
31 #include "vm/thread_pool.h" | 31 #include "vm/thread_pool.h" |
32 #include "vm/timeline.h" | 32 #include "vm/timeline.h" |
33 #include "vm/virtual_memory.h" | 33 #include "vm/virtual_memory.h" |
34 #include "vm/zone.h" | 34 #include "vm/zone.h" |
35 | 35 |
36 namespace dart { | 36 namespace dart { |
37 | 37 |
38 DECLARE_FLAG(bool, print_class_table); | 38 DECLARE_FLAG(bool, print_class_table); |
39 DECLARE_FLAG(bool, trace_isolates); | |
40 DECLARE_FLAG(bool, trace_time_all); | 39 DECLARE_FLAG(bool, trace_time_all); |
41 DECLARE_FLAG(bool, pause_isolates_on_start); | |
42 DECLARE_FLAG(bool, pause_isolates_on_exit); | |
43 DEFINE_FLAG(bool, keep_code, false, | 40 DEFINE_FLAG(bool, keep_code, false, |
44 "Keep deoptimized code for profiling."); | 41 "Keep deoptimized code for profiling."); |
45 DEFINE_FLAG(bool, shutdown, true, "Do a clean shutdown of the VM"); | 42 DEFINE_FLAG(bool, shutdown, true, "Do a clean shutdown of the VM"); |
46 DEFINE_FLAG(bool, trace_shutdown, false, "Trace VM shutdown on stderr"); | 43 DEFINE_FLAG(bool, trace_shutdown, false, "Trace VM shutdown on stderr"); |
47 | 44 |
48 Isolate* Dart::vm_isolate_ = NULL; | 45 Isolate* Dart::vm_isolate_ = NULL; |
49 int64_t Dart::start_time_ = 0; | 46 int64_t Dart::start_time_ = 0; |
50 ThreadPool* Dart::thread_pool_ = NULL; | 47 ThreadPool* Dart::thread_pool_ = NULL; |
51 DebugInfo* Dart::pprof_symbol_generator_ = NULL; | 48 DebugInfo* Dart::pprof_symbol_generator_ = NULL; |
52 ReadOnlyHandles* Dart::predefined_handles_ = NULL; | 49 ReadOnlyHandles* Dart::predefined_handles_ = NULL; |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 return predefined_handles_->handles_.IsValidScopedHandle(address); | 567 return predefined_handles_->handles_.IsValidScopedHandle(address); |
571 } | 568 } |
572 | 569 |
573 | 570 |
574 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { | 571 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { |
575 ASSERT(predefined_handles_ != NULL); | 572 ASSERT(predefined_handles_ != NULL); |
576 return predefined_handles_->api_handles_.IsValidHandle(handle); | 573 return predefined_handles_->api_handles_.IsValidHandle(handle); |
577 } | 574 } |
578 | 575 |
579 } // namespace dart | 576 } // namespace dart |
OLD | NEW |