| 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 17 matching lines...) Expand all Loading... |
| 28 #include "vm/symbols.h" | 28 #include "vm/symbols.h" |
| 29 #include "vm/thread_interrupter.h" | 29 #include "vm/thread_interrupter.h" |
| 30 #include "vm/thread_pool.h" | 30 #include "vm/thread_pool.h" |
| 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 DEFINE_FLAG(bool, keep_code, false, | 39 DEFINE_FLAG(bool, keep_code, false, |
| 39 "Keep deoptimized code for profiling."); | 40 "Keep deoptimized code for profiling."); |
| 40 | 41 |
| 41 Isolate* Dart::vm_isolate_ = NULL; | 42 Isolate* Dart::vm_isolate_ = NULL; |
| 42 ThreadPool* Dart::thread_pool_ = NULL; | 43 ThreadPool* Dart::thread_pool_ = NULL; |
| 43 DebugInfo* Dart::pprof_symbol_generator_ = NULL; | 44 DebugInfo* Dart::pprof_symbol_generator_ = NULL; |
| 44 ReadOnlyHandles* Dart::predefined_handles_ = NULL; | 45 ReadOnlyHandles* Dart::predefined_handles_ = NULL; |
| 45 | 46 |
| 46 // Structure for managing read-only global handles allocation used for | 47 // Structure for managing read-only global handles allocation used for |
| 47 // creating global read-only handles that are pre created and initialized | 48 // creating global read-only handles that are pre created and initialized |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 return predefined_handles_->handles_.IsValidScopedHandle(address); | 381 return predefined_handles_->handles_.IsValidScopedHandle(address); |
| 381 } | 382 } |
| 382 | 383 |
| 383 | 384 |
| 384 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { | 385 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { |
| 385 ASSERT(predefined_handles_ != NULL); | 386 ASSERT(predefined_handles_ != NULL); |
| 386 return predefined_handles_->api_handles_.IsValidHandle(handle); | 387 return predefined_handles_->api_handles_.IsValidHandle(handle); |
| 387 } | 388 } |
| 388 | 389 |
| 389 } // namespace dart | 390 } // namespace dart |
| OLD | NEW |