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