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 8227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8238 | 8238 |
8239 class AllocationMemento: public Struct { | 8239 class AllocationMemento: public Struct { |
8240 public: | 8240 public: |
8241 static const int kAllocationSiteOffset = HeapObject::kHeaderSize; | 8241 static const int kAllocationSiteOffset = HeapObject::kHeaderSize; |
8242 static const int kSize = kAllocationSiteOffset + kPointerSize; | 8242 static const int kSize = kAllocationSiteOffset + kPointerSize; |
8243 | 8243 |
8244 DECL_ACCESSORS(allocation_site, Object) | 8244 DECL_ACCESSORS(allocation_site, Object) |
8245 | 8245 |
8246 inline bool IsValid(); | 8246 inline bool IsValid(); |
8247 inline AllocationSite* GetAllocationSite(); | 8247 inline AllocationSite* GetAllocationSite(); |
| 8248 inline Address GetAllocationSiteUnchecked(); |
8248 | 8249 |
8249 DECLARE_PRINTER(AllocationMemento) | 8250 DECLARE_PRINTER(AllocationMemento) |
8250 DECLARE_VERIFIER(AllocationMemento) | 8251 DECLARE_VERIFIER(AllocationMemento) |
8251 | 8252 |
8252 DECLARE_CAST(AllocationMemento) | 8253 DECLARE_CAST(AllocationMemento) |
8253 | 8254 |
8254 private: | 8255 private: |
8255 DISALLOW_IMPLICIT_CONSTRUCTORS(AllocationMemento); | 8256 DISALLOW_IMPLICIT_CONSTRUCTORS(AllocationMemento); |
8256 }; | 8257 }; |
8257 | 8258 |
(...skipping 2484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10742 } | 10743 } |
10743 return value; | 10744 return value; |
10744 } | 10745 } |
10745 }; | 10746 }; |
10746 | 10747 |
10747 | 10748 |
10748 } // NOLINT, false-positive due to second-order macros. | 10749 } // NOLINT, false-positive due to second-order macros. |
10749 } // NOLINT, false-positive due to second-order macros. | 10750 } // NOLINT, false-positive due to second-order macros. |
10750 | 10751 |
10751 #endif // V8_OBJECTS_H_ | 10752 #endif // V8_OBJECTS_H_ |
OLD | NEW |