| 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 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1482 | 1482 |
| 1483 INLINE(Address top()) const { | 1483 INLINE(Address top()) const { |
| 1484 SLOW_DCHECK(top_ == NULL || | 1484 SLOW_DCHECK(top_ == NULL || |
| 1485 (reinterpret_cast<intptr_t>(top_) & kHeapObjectTagMask) == 0); | 1485 (reinterpret_cast<intptr_t>(top_) & kHeapObjectTagMask) == 0); |
| 1486 return top_; | 1486 return top_; |
| 1487 } | 1487 } |
| 1488 | 1488 |
| 1489 Address* top_address() { return &top_; } | 1489 Address* top_address() { return &top_; } |
| 1490 | 1490 |
| 1491 INLINE(void set_limit(Address limit)) { | 1491 INLINE(void set_limit(Address limit)) { |
| 1492 SLOW_DCHECK(limit == NULL || | |
| 1493 (reinterpret_cast<intptr_t>(limit) & kHeapObjectTagMask) == 0); | |
| 1494 limit_ = limit; | 1492 limit_ = limit; |
| 1495 } | 1493 } |
| 1496 | 1494 |
| 1497 INLINE(Address limit()) const { | 1495 INLINE(Address limit()) const { |
| 1498 SLOW_DCHECK(limit_ == NULL || | 1496 SLOW_DCHECK(limit_ == NULL || |
| 1499 (reinterpret_cast<intptr_t>(limit_) & kHeapObjectTagMask) == | 1497 (reinterpret_cast<intptr_t>(limit_) & kHeapObjectTagMask) == |
| 1500 0); | 1498 0); |
| 1501 return limit_; | 1499 return limit_; |
| 1502 } | 1500 } |
| 1503 | 1501 |
| (...skipping 1622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3126 count = 0; | 3124 count = 0; |
| 3127 } | 3125 } |
| 3128 // Must be small, since an iteration is used for lookup. | 3126 // Must be small, since an iteration is used for lookup. |
| 3129 static const int kMaxComments = 64; | 3127 static const int kMaxComments = 64; |
| 3130 }; | 3128 }; |
| 3131 #endif | 3129 #endif |
| 3132 } // namespace internal | 3130 } // namespace internal |
| 3133 } // namespace v8 | 3131 } // namespace v8 |
| 3134 | 3132 |
| 3135 #endif // V8_HEAP_SPACES_H_ | 3133 #endif // V8_HEAP_SPACES_H_ |
| OLD | NEW |