Line data Source code
1 : // Copyright 2018 the V8 project authors. All rights reserved.
2 : // Use of this source code is governed by a BSD-style license that can be
3 : // found in the LICENSE file.
4 :
5 : #ifndef V8_OBJECTS_PROPERTY_CELL_INL_H_
6 : #define V8_OBJECTS_PROPERTY_CELL_INL_H_
7 :
8 : #include "src/objects/property-cell.h"
9 :
10 : #include "src/heap/heap-write-barrier-inl.h"
11 : #include "src/objects/code-inl.h"
12 :
13 : // Has to be the last include (doesn't have include guards):
14 : #include "src/objects/object-macros.h"
15 :
16 : namespace v8 {
17 : namespace internal {
18 :
19 743711900 : OBJECT_CONSTRUCTORS_IMPL(PropertyCell, HeapObject)
20 :
21 371856465 : CAST_ACCESSOR(PropertyCell)
22 30457067 : ACCESSORS(PropertyCell, dependent_code, DependentCode, kDependentCodeOffset)
23 340006653 : ACCESSORS(PropertyCell, name, Name, kNameOffset)
24 193175519 : ACCESSORS(PropertyCell, value, Object, kValueOffset)
25 355880938 : ACCESSORS(PropertyCell, property_details_raw, Object, kDetailsOffset)
26 :
27 210293112 : PropertyDetails PropertyCell::property_details() const {
28 210293106 : return PropertyDetails(Smi::cast(property_details_raw()));
29 : }
30 :
31 : void PropertyCell::set_property_details(PropertyDetails details) {
32 29117566 : set_property_details_raw(details.AsSmi());
33 : }
34 :
35 : } // namespace internal
36 : } // namespace v8
37 :
38 : #include "src/objects/object-macros-undef.h"
39 :
40 : #endif // V8_OBJECTS_PROPERTY_CELL_INL_H_
|