OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 #ifndef V8_HEAP_SPACES_H_ | 5 #ifndef V8_HEAP_SPACES_H_ |
6 #define V8_HEAP_SPACES_H_ | 6 #define V8_HEAP_SPACES_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/atomic-utils.h" | 9 #include "src/atomic-utils.h" |
10 #include "src/base/atomicops.h" | 10 #include "src/base/atomicops.h" |
(...skipping 1438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1449 do { | 1449 do { |
1450 ptr = lowest_ever_allocated_.Value(); | 1450 ptr = lowest_ever_allocated_.Value(); |
1451 } while ((low < ptr) && !lowest_ever_allocated_.TrySetValue(ptr, low)); | 1451 } while ((low < ptr) && !lowest_ever_allocated_.TrySetValue(ptr, low)); |
1452 do { | 1452 do { |
1453 ptr = highest_ever_allocated_.Value(); | 1453 ptr = highest_ever_allocated_.Value(); |
1454 } while ((high > ptr) && !highest_ever_allocated_.TrySetValue(ptr, high)); | 1454 } while ((high > ptr) && !highest_ever_allocated_.TrySetValue(ptr, high)); |
1455 } | 1455 } |
1456 | 1456 |
1457 List<MemoryChunk*> chunk_pool_; | 1457 List<MemoryChunk*> chunk_pool_; |
1458 | 1458 |
| 1459 base::VirtualMemory last_chunk_; |
| 1460 |
1459 friend class TestCodeRangeScope; | 1461 friend class TestCodeRangeScope; |
1460 | 1462 |
1461 DISALLOW_IMPLICIT_CONSTRUCTORS(MemoryAllocator); | 1463 DISALLOW_IMPLICIT_CONSTRUCTORS(MemoryAllocator); |
1462 }; | 1464 }; |
1463 | 1465 |
1464 | 1466 |
1465 // ----------------------------------------------------------------------------- | 1467 // ----------------------------------------------------------------------------- |
1466 // Interface for heap object iterator to be implemented by all object space | 1468 // Interface for heap object iterator to be implemented by all object space |
1467 // object iterators. | 1469 // object iterators. |
1468 // | 1470 // |
(...skipping 1620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3089 count = 0; | 3091 count = 0; |
3090 } | 3092 } |
3091 // Must be small, since an iteration is used for lookup. | 3093 // Must be small, since an iteration is used for lookup. |
3092 static const int kMaxComments = 64; | 3094 static const int kMaxComments = 64; |
3093 }; | 3095 }; |
3094 #endif | 3096 #endif |
3095 } // namespace internal | 3097 } // namespace internal |
3096 } // namespace v8 | 3098 } // namespace v8 |
3097 | 3099 |
3098 #endif // V8_HEAP_SPACES_H_ | 3100 #endif // V8_HEAP_SPACES_H_ |
OLD | NEW |