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