| 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 12 matching lines...) Expand all Loading... |
| 23 #include "vm/snapshot.h" | 23 #include "vm/snapshot.h" |
| 24 #include "vm/stub_code.h" | 24 #include "vm/stub_code.h" |
| 25 #include "vm/symbols.h" | 25 #include "vm/symbols.h" |
| 26 #include "vm/thread_interrupter.h" | 26 #include "vm/thread_interrupter.h" |
| 27 #include "vm/thread_pool.h" | 27 #include "vm/thread_pool.h" |
| 28 #include "vm/virtual_memory.h" | 28 #include "vm/virtual_memory.h" |
| 29 #include "vm/zone.h" | 29 #include "vm/zone.h" |
| 30 | 30 |
| 31 namespace dart { | 31 namespace dart { |
| 32 | 32 |
| 33 DEFINE_FLAG(int, new_gen_heap_size, 32, "new gen heap size in MB," | 33 DEFINE_FLAG(int, new_gen_heap_size, 8 << kWordSizeLog2, |
| 34 "new gen heap size in MB," |
| 34 "e.g: --new_gen_heap_size=64 allocates a 64MB new gen heap"); | 35 "e.g: --new_gen_heap_size=64 allocates a 64MB new gen heap"); |
| 35 DEFINE_FLAG(int, old_gen_heap_size, Heap::kHeapSizeInMB, | 36 DEFINE_FLAG(int, old_gen_heap_size, Heap::kHeapSizeInMB, |
| 36 "old gen heap size in MB," | 37 "old gen heap size in MB," |
| 37 "e.g: --old_gen_heap_size=1024 allocates a 1024MB old gen heap"); | 38 "e.g: --old_gen_heap_size=1024 allocates a 1024MB old gen heap"); |
| 38 | 39 |
| 39 DECLARE_FLAG(bool, print_class_table); | 40 DECLARE_FLAG(bool, print_class_table); |
| 40 DECLARE_FLAG(bool, trace_isolates); | 41 DECLARE_FLAG(bool, trace_isolates); |
| 41 | 42 |
| 42 Isolate* Dart::vm_isolate_ = NULL; | 43 Isolate* Dart::vm_isolate_ = NULL; |
| 43 ThreadPool* Dart::thread_pool_ = NULL; | 44 ThreadPool* Dart::thread_pool_ = NULL; |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 return predefined_handles_->handles_.AllocateScopedHandle(); | 301 return predefined_handles_->handles_.AllocateScopedHandle(); |
| 301 } | 302 } |
| 302 | 303 |
| 303 | 304 |
| 304 bool Dart::IsReadOnlyHandle(uword address) { | 305 bool Dart::IsReadOnlyHandle(uword address) { |
| 305 ASSERT(predefined_handles_ != NULL); | 306 ASSERT(predefined_handles_ != NULL); |
| 306 return predefined_handles_->handles_.IsValidScopedHandle(address); | 307 return predefined_handles_->handles_.IsValidScopedHandle(address); |
| 307 } | 308 } |
| 308 | 309 |
| 309 } // namespace dart | 310 } // namespace dart |
| OLD | NEW |