| 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/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 8276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8287 | 8287 |
| 8288 class AllocationMemento: public Struct { | 8288 class AllocationMemento: public Struct { |
| 8289 public: | 8289 public: |
| 8290 static const int kAllocationSiteOffset = HeapObject::kHeaderSize; | 8290 static const int kAllocationSiteOffset = HeapObject::kHeaderSize; |
| 8291 static const int kSize = kAllocationSiteOffset + kPointerSize; | 8291 static const int kSize = kAllocationSiteOffset + kPointerSize; |
| 8292 | 8292 |
| 8293 DECL_ACCESSORS(allocation_site, Object) | 8293 DECL_ACCESSORS(allocation_site, Object) |
| 8294 | 8294 |
| 8295 inline bool IsValid(); | 8295 inline bool IsValid(); |
| 8296 inline AllocationSite* GetAllocationSite(); | 8296 inline AllocationSite* GetAllocationSite(); |
| 8297 inline Address GetAllocationSiteUnchecked(); | |
| 8298 | 8297 |
| 8299 DECLARE_PRINTER(AllocationMemento) | 8298 DECLARE_PRINTER(AllocationMemento) |
| 8300 DECLARE_VERIFIER(AllocationMemento) | 8299 DECLARE_VERIFIER(AllocationMemento) |
| 8301 | 8300 |
| 8302 DECLARE_CAST(AllocationMemento) | 8301 DECLARE_CAST(AllocationMemento) |
| 8303 | 8302 |
| 8304 private: | 8303 private: |
| 8305 DISALLOW_IMPLICIT_CONSTRUCTORS(AllocationMemento); | 8304 DISALLOW_IMPLICIT_CONSTRUCTORS(AllocationMemento); |
| 8306 }; | 8305 }; |
| 8307 | 8306 |
| (...skipping 2476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10784 } | 10783 } |
| 10785 return value; | 10784 return value; |
| 10786 } | 10785 } |
| 10787 }; | 10786 }; |
| 10788 | 10787 |
| 10789 | 10788 |
| 10790 } // NOLINT, false-positive due to second-order macros. | 10789 } // NOLINT, false-positive due to second-order macros. |
| 10791 } // NOLINT, false-positive due to second-order macros. | 10790 } // NOLINT, false-positive due to second-order macros. |
| 10792 | 10791 |
| 10793 #endif // V8_OBJECTS_H_ | 10792 #endif // V8_OBJECTS_H_ |
| OLD | NEW |