| 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 8224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8235 | 8235 |
| 8236 class AllocationMemento: public Struct { | 8236 class AllocationMemento: public Struct { |
| 8237 public: | 8237 public: |
| 8238 static const int kAllocationSiteOffset = HeapObject::kHeaderSize; | 8238 static const int kAllocationSiteOffset = HeapObject::kHeaderSize; |
| 8239 static const int kSize = kAllocationSiteOffset + kPointerSize; | 8239 static const int kSize = kAllocationSiteOffset + kPointerSize; |
| 8240 | 8240 |
| 8241 DECL_ACCESSORS(allocation_site, Object) | 8241 DECL_ACCESSORS(allocation_site, Object) |
| 8242 | 8242 |
| 8243 inline bool IsValid(); | 8243 inline bool IsValid(); |
| 8244 inline AllocationSite* GetAllocationSite(); | 8244 inline AllocationSite* GetAllocationSite(); |
| 8245 inline Address GetAllocationSiteUnchecked(); |
| 8245 | 8246 |
| 8246 DECLARE_PRINTER(AllocationMemento) | 8247 DECLARE_PRINTER(AllocationMemento) |
| 8247 DECLARE_VERIFIER(AllocationMemento) | 8248 DECLARE_VERIFIER(AllocationMemento) |
| 8248 | 8249 |
| 8249 DECLARE_CAST(AllocationMemento) | 8250 DECLARE_CAST(AllocationMemento) |
| 8250 | 8251 |
| 8251 private: | 8252 private: |
| 8252 DISALLOW_IMPLICIT_CONSTRUCTORS(AllocationMemento); | 8253 DISALLOW_IMPLICIT_CONSTRUCTORS(AllocationMemento); |
| 8253 }; | 8254 }; |
| 8254 | 8255 |
| (...skipping 2475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10730 } | 10731 } |
| 10731 return value; | 10732 return value; |
| 10732 } | 10733 } |
| 10733 }; | 10734 }; |
| 10734 | 10735 |
| 10735 | 10736 |
| 10736 } // NOLINT, false-positive due to second-order macros. | 10737 } // NOLINT, false-positive due to second-order macros. |
| 10737 } // NOLINT, false-positive due to second-order macros. | 10738 } // NOLINT, false-positive due to second-order macros. |
| 10738 | 10739 |
| 10739 #endif // V8_OBJECTS_H_ | 10740 #endif // V8_OBJECTS_H_ |
| OLD | NEW |