Line data Source code
1 : // Copyright 2019 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_TEMPLATE_OBJECTS_INL_H_
6 : #define V8_OBJECTS_TEMPLATE_OBJECTS_INL_H_
7 :
8 : #include "src/objects/template-objects.h"
9 :
10 : #include "src/objects/js-array-inl.h"
11 :
12 : // Has to be the last include (doesn't have include guards):
13 : #include "src/objects/object-macros.h"
14 :
15 : namespace v8 {
16 : namespace internal {
17 :
18 : OBJECT_CONSTRUCTORS_IMPL(TemplateObjectDescription, Tuple2)
19 : OBJECT_CONSTRUCTORS_IMPL(CachedTemplateObject, Tuple3)
20 :
21 : CAST_ACCESSOR(TemplateObjectDescription)
22 : CAST_ACCESSOR(CachedTemplateObject)
23 :
24 11421 : ACCESSORS(TemplateObjectDescription, raw_strings, FixedArray, kRawStringsOffset)
25 11421 : ACCESSORS(TemplateObjectDescription, cooked_strings, FixedArray,
26 : kCookedStringsOffset)
27 :
28 63247 : SMI_ACCESSORS(CachedTemplateObject, slot_id, kSlotIdOffset)
29 13838 : ACCESSORS(CachedTemplateObject, template_object, JSArray, kTemplateObjectOffset)
30 74303 : ACCESSORS(CachedTemplateObject, next, HeapObject, kNextOffset)
31 :
32 : } // namespace internal
33 : } // namespace v8
34 :
35 : #include "src/objects/object-macros-undef.h"
36 :
37 : #endif // V8_OBJECTS_TEMPLATE_OBJECTS_INL_H_
|