| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/assert-scope.h" | 10 #include "src/assert-scope.h" |
| (...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1484 // View this map word as a map pointer. | 1484 // View this map word as a map pointer. |
| 1485 inline Map* ToMap(); | 1485 inline Map* ToMap(); |
| 1486 | 1486 |
| 1487 | 1487 |
| 1488 // Scavenge collection: the map word of live objects in the from space | 1488 // Scavenge collection: the map word of live objects in the from space |
| 1489 // contains a forwarding address (a heap object pointer in the to space). | 1489 // contains a forwarding address (a heap object pointer in the to space). |
| 1490 | 1490 |
| 1491 // True if this map word is a forwarding address for a scavenge | 1491 // True if this map word is a forwarding address for a scavenge |
| 1492 // collection. Only valid during a scavenge collection (specifically, | 1492 // collection. Only valid during a scavenge collection (specifically, |
| 1493 // when all map words are heap object pointers, i.e. not during a full GC). | 1493 // when all map words are heap object pointers, i.e. not during a full GC). |
| 1494 inline bool IsForwardingAddress() const; | 1494 inline bool IsForwardingAddress(); |
| 1495 | 1495 |
| 1496 // Create a map word from a forwarding address. | 1496 // Create a map word from a forwarding address. |
| 1497 static inline MapWord FromForwardingAddress(HeapObject* object); | 1497 static inline MapWord FromForwardingAddress(HeapObject* object); |
| 1498 | 1498 |
| 1499 // View this map word as a forwarding address. | 1499 // View this map word as a forwarding address. |
| 1500 inline HeapObject* ToForwardingAddress(); | 1500 inline HeapObject* ToForwardingAddress(); |
| 1501 | 1501 |
| 1502 static inline MapWord FromRawValue(uintptr_t value) { | 1502 static inline MapWord FromRawValue(uintptr_t value) { |
| 1503 return MapWord(value); | 1503 return MapWord(value); |
| 1504 } | 1504 } |
| (...skipping 9410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10915 } | 10915 } |
| 10916 return value; | 10916 return value; |
| 10917 } | 10917 } |
| 10918 }; | 10918 }; |
| 10919 | 10919 |
| 10920 | 10920 |
| 10921 } // NOLINT, false-positive due to second-order macros. | 10921 } // NOLINT, false-positive due to second-order macros. |
| 10922 } // NOLINT, false-positive due to second-order macros. | 10922 } // NOLINT, false-positive due to second-order macros. |
| 10923 | 10923 |
| 10924 #endif // V8_OBJECTS_H_ | 10924 #endif // V8_OBJECTS_H_ |
| OLD | NEW |