| 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 8271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8282 | 8282 |
| 8283 class AllocationMemento: public Struct { | 8283 class AllocationMemento: public Struct { |
| 8284 public: | 8284 public: |
| 8285 static const int kAllocationSiteOffset = HeapObject::kHeaderSize; | 8285 static const int kAllocationSiteOffset = HeapObject::kHeaderSize; |
| 8286 static const int kSize = kAllocationSiteOffset + kPointerSize; | 8286 static const int kSize = kAllocationSiteOffset + kPointerSize; |
| 8287 | 8287 |
| 8288 DECL_ACCESSORS(allocation_site, Object) | 8288 DECL_ACCESSORS(allocation_site, Object) |
| 8289 | 8289 |
| 8290 inline bool IsValid(); | 8290 inline bool IsValid(); |
| 8291 inline AllocationSite* GetAllocationSite(); | 8291 inline AllocationSite* GetAllocationSite(); |
| 8292 inline Address GetAllocationSiteUnchecked(); |
| 8292 | 8293 |
| 8293 DECLARE_PRINTER(AllocationMemento) | 8294 DECLARE_PRINTER(AllocationMemento) |
| 8294 DECLARE_VERIFIER(AllocationMemento) | 8295 DECLARE_VERIFIER(AllocationMemento) |
| 8295 | 8296 |
| 8296 DECLARE_CAST(AllocationMemento) | 8297 DECLARE_CAST(AllocationMemento) |
| 8297 | 8298 |
| 8298 private: | 8299 private: |
| 8299 DISALLOW_IMPLICIT_CONSTRUCTORS(AllocationMemento); | 8300 DISALLOW_IMPLICIT_CONSTRUCTORS(AllocationMemento); |
| 8300 }; | 8301 }; |
| 8301 | 8302 |
| (...skipping 2476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10778 } | 10779 } |
| 10779 return value; | 10780 return value; |
| 10780 } | 10781 } |
| 10781 }; | 10782 }; |
| 10782 | 10783 |
| 10783 | 10784 |
| 10784 } // NOLINT, false-positive due to second-order macros. | 10785 } // NOLINT, false-positive due to second-order macros. |
| 10785 } // NOLINT, false-positive due to second-order macros. | 10786 } // NOLINT, false-positive due to second-order macros. |
| 10786 | 10787 |
| 10787 #endif // V8_OBJECTS_H_ | 10788 #endif // V8_OBJECTS_H_ |
| OLD | NEW |