summaryrefslogtreecommitdiff
path: root/deps/v8/src/objects/template-objects.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/objects/template-objects.h')
-rw-r--r--deps/v8/src/objects/template-objects.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/deps/v8/src/objects/template-objects.h b/deps/v8/src/objects/template-objects.h
index e99c8530e6..220f9dab1e 100644
--- a/deps/v8/src/objects/template-objects.h
+++ b/deps/v8/src/objects/template-objects.h
@@ -39,22 +39,25 @@ class CachedTemplateObject final : public Tuple3 {
// TemplateObjectDescription is a tuple of raw strings and cooked strings for
// tagged template literals. Used to communicate with the runtime for template
// object creation within the {Runtime_GetTemplateObject} method.
-class TemplateObjectDescription final : public Tuple2 {
+class TemplateObjectDescription final : public Struct {
public:
DECL_ACCESSORS(raw_strings, FixedArray)
DECL_ACCESSORS(cooked_strings, FixedArray)
+ DECL_CAST(TemplateObjectDescription)
+
static Handle<JSArray> GetTemplateObject(
Isolate* isolate, Handle<Context> native_context,
Handle<TemplateObjectDescription> description,
Handle<SharedFunctionInfo> shared_info, int slot_id);
- DECL_CAST(TemplateObjectDescription)
+ DECL_PRINTER(TemplateObjectDescription)
+ DECL_VERIFIER(TemplateObjectDescription)
- static constexpr int kRawStringsOffset = kValue1Offset;
- static constexpr int kCookedStringsOffset = kValue2Offset;
+ DEFINE_FIELD_OFFSET_CONSTANTS(
+ Struct::kHeaderSize, TORQUE_GENERATED_TEMPLATE_OBJECT_DESCRIPTION_FIELDS)
- OBJECT_CONSTRUCTORS(TemplateObjectDescription, Tuple2);
+ OBJECT_CONSTRUCTORS(TemplateObjectDescription, Struct);
};
} // namespace internal