v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
template-objects.h
Go to the documentation of this file.
1
// Copyright 2017 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_H_
6
#define V8_OBJECTS_TEMPLATE_OBJECTS_H_
7
8
#include "
src/objects/fixed-array.h
"
9
#include "
src/objects/struct.h
"
10
#include "
src/objects/torque-defined-classes.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
class
Oddball;
19
class
StructBodyDescriptor;
20
21
#include "torque-generated/src/objects/template-objects-tq.inc"
22
23
// TemplateObjectDescription is a tuple of raw strings and cooked strings for
24
// tagged template literals. Used to communicate with the runtime for template
25
// object creation within the {Runtime_GetTemplateObject} method.
26
class
TemplateObjectDescription
final
27
:
public
TorqueGeneratedTemplateObjectDescription<TemplateObjectDescription,
28
Struct> {
29
public
:
30
static
DirectHandle<JSArray>
GetTemplateObject
(
31
Isolate
* isolate,
DirectHandle<NativeContext>
native_context
,
32
DirectHandle<TemplateObjectDescription>
description,
33
DirectHandle<SharedFunctionInfo>
shared_info,
int
slot_id);
34
35
using
BodyDescriptor
=
StructBodyDescriptor
;
36
37
TQ_OBJECT_CONSTRUCTORS
(
TemplateObjectDescription
)
38
};
39
40
}
// namespace internal
41
}
// namespace v8
42
43
#include "
src/objects/object-macros-undef.h
"
44
45
#endif
// V8_OBJECTS_TEMPLATE_OBJECTS_H_
v8::internal::DirectHandle
Definition
handles.h:659
v8::internal::Isolate
Definition
isolate.h:586
v8::internal::StructBodyDescriptor
Definition
objects-body-descriptors.h:191
v8::internal::TemplateObjectDescription
Definition
template-objects.h:28
v8::internal::TemplateObjectDescription::GetTemplateObject
static DirectHandle< JSArray > GetTemplateObject(Isolate *isolate, DirectHandle< NativeContext > native_context, DirectHandle< TemplateObjectDescription > description, DirectHandle< SharedFunctionInfo > shared_info, int slot_id)
Definition
template-objects.cc:48
fixed-array.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8::internal::native_context
!IsContextMap !IsContextMap native_context
Definition
map-inl.h:877
v8
Definition
api-arguments-inl.h:19
object-macros-undef.h
object-macros.h
TQ_OBJECT_CONSTRUCTORS
#define TQ_OBJECT_CONSTRUCTORS(Type)
Definition
object-macros.h:984
struct.h
torque-defined-classes.h
src
objects
template-objects.h
Generated on Sun Apr 6 2025 21:08:56 for v8 by
1.12.0