| Index: src/spaces.cc
|
| ===================================================================
|
| --- src/spaces.cc (revision 8834)
|
| +++ src/spaces.cc (working copy)
|
| @@ -148,12 +148,12 @@
|
| // 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) {
|
| }
|
|
|
|
|
| @@ -279,8 +279,9 @@
|
| const int kEstimatedNumberOfChunks = 270;
|
|
|
|
|
| -MemoryAllocator::MemoryAllocator()
|
| - : capacity_(0),
|
| +MemoryAllocator::MemoryAllocator(Isolate* isolate)
|
| + : isolate_(isolate),
|
| + capacity_(0),
|
| capacity_executable_(0),
|
| size_(0),
|
| size_executable_(0),
|
| @@ -288,8 +289,7 @@
|
| chunks_(kEstimatedNumberOfChunks),
|
| free_chunk_ids_(kEstimatedNumberOfChunks),
|
| max_nof_chunks_(0),
|
| - top_(0),
|
| - isolate_(NULL) {
|
| + top_(0) {
|
| }
|
|
|
|
|
|
|