| Index: src/spaces.cc
|
| diff --git a/src/spaces.cc b/src/spaces.cc
|
| index 4ba1d35241d0b229a49c872529d20923e3fa036e..9294b34890c7adb6ee078d23dd6499b87b4792cd 100644
|
| --- a/src/spaces.cc
|
| +++ b/src/spaces.cc
|
| @@ -133,12 +133,12 @@ void HeapObjectIterator::Verify() {
|
| // CodeRange
|
|
|
|
|
| -CodeRange::CodeRange()
|
| - : code_range_(NULL),
|
| +CodeRange::CodeRange(Isolate* isolate)
|
| + : isolate_(isolate),
|
| + code_range_(NULL),
|
| free_list_(0),
|
| allocation_list_(0),
|
| - current_allocation_block_index_(0),
|
| - isolate_(NULL) {
|
| + current_allocation_block_index_(0) {
|
| }
|
|
|
|
|
| @@ -269,6 +269,15 @@ void CodeRange::TearDown() {
|
| // MemoryAllocator
|
| //
|
|
|
| +MemoryAllocator::MemoryAllocator(Isolate* isolate)
|
| + : isolate_(isolate),
|
| + capacity_(0),
|
| + capacity_executable_(0),
|
| + size_(0),
|
| + size_executable_(0) {
|
| +}
|
| +
|
| +
|
| bool MemoryAllocator::Setup(intptr_t capacity, intptr_t capacity_executable) {
|
| capacity_ = RoundUp(capacity, Page::kPageSize);
|
| capacity_executable_ = RoundUp(capacity_executable, Page::kPageSize);
|
|
|