| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 9445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9456 // This should not be called by anyone except GC. | 9456 // This should not be called by anyone except GC. |
| 9457 inline void clear(); | 9457 inline void clear(); |
| 9458 | 9458 |
| 9459 // This should not be called by anyone except allocator. | 9459 // This should not be called by anyone except allocator. |
| 9460 inline void initialize(HeapObject* value); | 9460 inline void initialize(HeapObject* value); |
| 9461 | 9461 |
| 9462 inline bool cleared() const; | 9462 inline bool cleared() const; |
| 9463 | 9463 |
| 9464 DECL_ACCESSORS(next, Object) | 9464 DECL_ACCESSORS(next, Object) |
| 9465 | 9465 |
| 9466 inline void clear_next(Heap* heap); | 9466 inline void clear_next(Object* the_hole_value); |
| 9467 | 9467 |
| 9468 inline bool next_cleared(); | 9468 inline bool next_cleared(); |
| 9469 | 9469 |
| 9470 DECLARE_CAST(WeakCell) | 9470 DECLARE_CAST(WeakCell) |
| 9471 | 9471 |
| 9472 DECLARE_PRINTER(WeakCell) | 9472 DECLARE_PRINTER(WeakCell) |
| 9473 DECLARE_VERIFIER(WeakCell) | 9473 DECLARE_VERIFIER(WeakCell) |
| 9474 | 9474 |
| 9475 // Layout description. | 9475 // Layout description. |
| 9476 static const int kValueOffset = HeapObject::kHeaderSize; | 9476 static const int kValueOffset = HeapObject::kHeaderSize; |
| (...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10682 } | 10682 } |
| 10683 return value; | 10683 return value; |
| 10684 } | 10684 } |
| 10685 }; | 10685 }; |
| 10686 | 10686 |
| 10687 | 10687 |
| 10688 } // NOLINT, false-positive due to second-order macros. | 10688 } // NOLINT, false-positive due to second-order macros. |
| 10689 } // NOLINT, false-positive due to second-order macros. | 10689 } // NOLINT, false-positive due to second-order macros. |
| 10690 | 10690 |
| 10691 #endif // V8_OBJECTS_H_ | 10691 #endif // V8_OBJECTS_H_ |
| OLD | NEW |