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 20 matching lines...) Expand all Loading... |
31 #include "vm/virtual_memory.h" | 31 #include "vm/virtual_memory.h" |
32 #include "vm/zone.h" | 32 #include "vm/zone.h" |
33 | 33 |
34 namespace dart { | 34 namespace dart { |
35 | 35 |
36 DECLARE_FLAG(bool, print_class_table); | 36 DECLARE_FLAG(bool, print_class_table); |
37 DECLARE_FLAG(bool, trace_isolates); | 37 DECLARE_FLAG(bool, trace_isolates); |
38 DECLARE_FLAG(bool, trace_time_all); | 38 DECLARE_FLAG(bool, trace_time_all); |
39 DEFINE_FLAG(bool, keep_code, false, | 39 DEFINE_FLAG(bool, keep_code, false, |
40 "Keep deoptimized code for profiling."); | 40 "Keep deoptimized code for profiling."); |
41 DEFINE_FLAG(bool, shutdown, false, "Do a clean shutdown of the VM"); | 41 DEFINE_FLAG(bool, shutdown, true, "Do a clean shutdown of the VM"); |
42 | 42 |
43 Isolate* Dart::vm_isolate_ = NULL; | 43 Isolate* Dart::vm_isolate_ = NULL; |
44 ThreadPool* Dart::thread_pool_ = NULL; | 44 ThreadPool* Dart::thread_pool_ = NULL; |
45 DebugInfo* Dart::pprof_symbol_generator_ = NULL; | 45 DebugInfo* Dart::pprof_symbol_generator_ = NULL; |
46 ReadOnlyHandles* Dart::predefined_handles_ = NULL; | 46 ReadOnlyHandles* Dart::predefined_handles_ = NULL; |
47 const uint8_t* Dart::instructions_snapshot_buffer_ = NULL; | 47 const uint8_t* Dart::instructions_snapshot_buffer_ = NULL; |
48 | 48 |
49 // Structure for managing read-only global handles allocation used for | 49 // Structure for managing read-only global handles allocation used for |
50 // creating global read-only handles that are pre created and initialized | 50 // creating global read-only handles that are pre created and initialized |
51 // for use across all isolates. Having these global pre created handles | 51 // for use across all isolates. Having these global pre created handles |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 return predefined_handles_->handles_.IsValidScopedHandle(address); | 434 return predefined_handles_->handles_.IsValidScopedHandle(address); |
435 } | 435 } |
436 | 436 |
437 | 437 |
438 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { | 438 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { |
439 ASSERT(predefined_handles_ != NULL); | 439 ASSERT(predefined_handles_ != NULL); |
440 return predefined_handles_->api_handles_.IsValidHandle(handle); | 440 return predefined_handles_->api_handles_.IsValidHandle(handle); |
441 } | 441 } |
442 | 442 |
443 } // namespace dart | 443 } // namespace dart |
OLD | NEW |