| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/heap/heap.h" | 5 #include "src/heap/heap.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/api.h" | 8 #include "src/api.h" |
| 9 #include "src/ast/context-slot-cache.h" | 9 #include "src/ast/context-slot-cache.h" |
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 configured_(false), | 150 configured_(false), |
| 151 current_gc_flags_(Heap::kNoGCFlags), | 151 current_gc_flags_(Heap::kNoGCFlags), |
| 152 current_gc_callback_flags_(GCCallbackFlags::kNoGCCallbackFlags), | 152 current_gc_callback_flags_(GCCallbackFlags::kNoGCCallbackFlags), |
| 153 external_string_table_(this), | 153 external_string_table_(this), |
| 154 gc_callbacks_depth_(0), | 154 gc_callbacks_depth_(0), |
| 155 deserialization_complete_(false), | 155 deserialization_complete_(false), |
| 156 strong_roots_list_(NULL), | 156 strong_roots_list_(NULL), |
| 157 heap_iterator_depth_(0), | 157 heap_iterator_depth_(0), |
| 158 embedder_heap_tracer_(nullptr), | 158 embedder_heap_tracer_(nullptr), |
| 159 embedder_reference_reporter_(new TracePossibleWrapperReporter(this)), | 159 embedder_reference_reporter_(new TracePossibleWrapperReporter(this)), |
| 160 force_oom_(false) { | 160 force_oom_(false), |
| 161 delay_sweeper_tasks_for_testing_(false) { |
| 161 // Allow build-time customization of the max semispace size. Building | 162 // Allow build-time customization of the max semispace size. Building |
| 162 // V8 with snapshots and a non-default max semispace size is much | 163 // V8 with snapshots and a non-default max semispace size is much |
| 163 // easier if you can define it as part of the build environment. | 164 // easier if you can define it as part of the build environment. |
| 164 #if defined(V8_MAX_SEMISPACE_SIZE) | 165 #if defined(V8_MAX_SEMISPACE_SIZE) |
| 165 max_semi_space_size_ = reserved_semispace_size_ = V8_MAX_SEMISPACE_SIZE; | 166 max_semi_space_size_ = reserved_semispace_size_ = V8_MAX_SEMISPACE_SIZE; |
| 166 #endif | 167 #endif |
| 167 | 168 |
| 168 // Ensure old_generation_size_ is a multiple of kPageSize. | 169 // Ensure old_generation_size_ is a multiple of kPageSize. |
| 169 DCHECK((max_old_generation_size_ & (Page::kPageSize - 1)) == 0); | 170 DCHECK((max_old_generation_size_ & (Page::kPageSize - 1)) == 0); |
| 170 | 171 |
| (...skipping 6325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6496 } | 6497 } |
| 6497 | 6498 |
| 6498 | 6499 |
| 6499 // static | 6500 // static |
| 6500 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6501 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6501 return StaticVisitorBase::GetVisitorId(map); | 6502 return StaticVisitorBase::GetVisitorId(map); |
| 6502 } | 6503 } |
| 6503 | 6504 |
| 6504 } // namespace internal | 6505 } // namespace internal |
| 6505 } // namespace v8 | 6506 } // namespace v8 |
| OLD | NEW |