Loading...
Searching...
No Matches
v8-template.h
Go to the documentation of this file.
1// Copyright 2021 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 INCLUDE_V8_TEMPLATE_H_
6#define INCLUDE_V8_TEMPLATE_H_
7
8#include <cstddef>
9#include <string_view>
10
11#include "v8-data.h" // NOLINT(build/include_directory)
12#include "v8-exception.h" // NOLINT(build/include_directory)
13#include "v8-function-callback.h" // NOLINT(build/include_directory)
14#include "v8-local-handle.h" // NOLINT(build/include_directory)
15#include "v8-memory-span.h" // NOLINT(build/include_directory)
16#include "v8-object.h" // NOLINT(build/include_directory)
17#include "v8config.h" // NOLINT(build/include_directory)
18
19namespace v8 {
20
21class CFunction;
22class FunctionTemplate;
23class ObjectTemplate;
24class Signature;
25
26// --- Templates ---
27
28#define V8_INTRINSICS_LIST(F) \
29 F(ArrayProto_entries, array_entries_iterator) \
30 F(ArrayProto_forEach, array_for_each_iterator) \
31 F(ArrayProto_keys, array_keys_iterator) \
32 F(ArrayProto_values, array_values_iterator) \
33 F(ArrayPrototype, initial_array_prototype) \
34 F(AsyncIteratorPrototype, initial_async_iterator_prototype) \
35 F(ErrorPrototype, initial_error_prototype) \
36 F(IteratorPrototype, initial_iterator_prototype) \
37 F(MapIteratorPrototype, initial_map_iterator_prototype) \
38 F(ObjProto_valueOf, object_value_of_function) \
39 F(SetIteratorPrototype, initial_set_iterator_prototype)
40
42#define V8_DECL_INTRINSIC(name, iname) k##name,
44#undef V8_DECL_INTRINSIC
45};
46
50class V8_EXPORT Template : public Data {
51 public:
57 void Set(Local<Name> name, Local<Data> value,
58 PropertyAttribute attributes = None);
59 void SetPrivate(Local<Private> name, Local<Data> value,
60 PropertyAttribute attributes = None);
61 V8_INLINE void Set(Isolate* isolate, const char* name, Local<Data> value,
62 PropertyAttribute attributes = None);
63
78 void SetAccessorProperty(
79 Local<Name> name,
82 PropertyAttribute attribute = None);
83
104 void SetNativeDataProperty(
107 PropertyAttribute attribute = None,
108 SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
109 SideEffectType setter_side_effect_type = SideEffectType::kHasSideEffect);
110 void SetNativeDataProperty(
113 PropertyAttribute attribute = None,
114 SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
115 SideEffectType setter_side_effect_type = SideEffectType::kHasSideEffect);
116 // TODO(https://crbug.com/348660658): remove once AccessorNameSetterCallback
117 // is removed.
118 void SetNativeDataProperty(
120 std::nullptr_t setter = nullptr, Local<Value> data = Local<Value>(),
121 PropertyAttribute attribute = None,
122 SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
123 SideEffectType setter_side_effect_type = SideEffectType::kHasSideEffect) {
124 SetNativeDataProperty(
125 name, getter, static_cast<AccessorNameSetterCallbackV2>(setter), data,
126 attribute, getter_side_effect_type, setter_side_effect_type);
127 }
128
133 void SetLazyDataProperty(
135 Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
136 SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
137 SideEffectType setter_side_effect_type = SideEffectType::kHasSideEffect);
138
143 void SetIntrinsicDataProperty(Local<Name> name, Intrinsic intrinsic,
144 PropertyAttribute attribute = None);
145
146 private:
147 Template();
149 friend class ObjectTemplate;
150 friend class FunctionTemplate;
151};
152
160enum class Intercepted : uint32_t { kNo = 1, kYes = 0 };
161
206 Local<Name> property, const PropertyCallbackInfo<Value>& info);
207
235 Intercepted (*)(Local<Name> property, Local<Value> value,
236 const PropertyCallbackInfo<Boolean>& info);
237// TODO(https://crbug.com/348660658): deprecate and remove.
239 Intercepted (*)(Local<Name> property, Local<Value> value,
240 const PropertyCallbackInfo<void>& info);
241
269 Local<Name> property, const PropertyCallbackInfo<Integer>& info);
270
296 Local<Name> property, const PropertyCallbackInfo<Boolean>& info);
297
305 void (*)(const PropertyCallbackInfo<Array>& info);
306
334 Intercepted (*)(Local<Name> property, const PropertyDescriptor& desc,
336// TODO(https://crbug.com/348660658): deprecate and remove.
338 Intercepted (*)(Local<Name> property, const PropertyDescriptor& desc,
339 const PropertyCallbackInfo<void>& info);
340
363 Local<Name> property, const PropertyCallbackInfo<Value>& info);
364
369 Intercepted (*)(uint32_t index, const PropertyCallbackInfo<Value>& info);
370// TODO(https://crbug.com/348660658): deprecate and remove.
372
377 Intercepted (*)(uint32_t index, Local<Value> value,
379// TODO(https://crbug.com/348660658): deprecate and remove.
381 uint32_t index, Local<Value> value, const PropertyCallbackInfo<void>& info);
382
387 Intercepted (*)(uint32_t index, const PropertyCallbackInfo<Integer>& info);
388// TODO(https://crbug.com/348660658): deprecate and remove.
390
395 Intercepted (*)(uint32_t index, const PropertyCallbackInfo<Boolean>& info);
396// TODO(https://crbug.com/348660658): deprecate and remove.
398
406 void (*)(const PropertyCallbackInfo<Array>& info);
407
412 Intercepted (*)(uint32_t index, const PropertyDescriptor& desc,
414// TODO(https://crbug.com/348660658): deprecate and remove.
416 Intercepted (*)(uint32_t index, const PropertyDescriptor& desc,
417 const PropertyCallbackInfo<void>& info);
418
423 Intercepted (*)(uint32_t index, const PropertyCallbackInfo<Value>& info);
424// TODO(https://crbug.com/348660658): deprecate and remove.
426
431 uint32_t (*)(Local<Value> value, uint32_t start_index, uint32_t end_index,
432 uint32_t* out_length, const PropertyCallbackInfo<void>& info);
433
438using AccessCheckCallback = bool (*)(Local<Context> accessing_context,
439 Local<Object> accessed_object,
440 Local<Value> data);
442enum class ConstructorBehavior { kThrow, kAllow };
443
551class V8_EXPORT FunctionTemplate : public Template {
552 public:
554 static Local<FunctionTemplate> New(
555 Isolate* isolate, FunctionCallback callback = nullptr,
556 Local<Value> data = Local<Value>(),
557 Local<Signature> signature = Local<Signature>(), int length = 0,
558 ConstructorBehavior behavior = ConstructorBehavior::kAllow,
559 SideEffectType side_effect_type = SideEffectType::kHasSideEffect,
560 const CFunction* c_function = nullptr, uint16_t instance_type = 0,
561 uint16_t allowed_receiver_instance_type_range_start = 0,
562 uint16_t allowed_receiver_instance_type_range_end = 0);
563
565 static Local<FunctionTemplate> NewWithCFunctionOverloads(
566 Isolate* isolate, FunctionCallback callback = nullptr,
567 Local<Value> data = Local<Value>(),
568 Local<Signature> signature = Local<Signature>(), int length = 0,
569 ConstructorBehavior behavior = ConstructorBehavior::kAllow,
570 SideEffectType side_effect_type = SideEffectType::kHasSideEffect,
571 const MemorySpan<const CFunction>& c_function_overloads = {});
572
576 static Local<FunctionTemplate> NewWithCache(
577 Isolate* isolate, FunctionCallback callback,
578 Local<Private> cache_property, Local<Value> data = Local<Value>(),
579 Local<Signature> signature = Local<Signature>(), int length = 0,
580 SideEffectType side_effect_type = SideEffectType::kHasSideEffect);
581
583 V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
584 Local<Context> context);
585
593 V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewRemoteInstance();
594
601 void SetCallHandler(
602 FunctionCallback callback, Local<Data> data = {},
603 SideEffectType side_effect_type = SideEffectType::kHasSideEffect,
604 const MemorySpan<const CFunction>& c_function_overloads = {});
605
607 void SetLength(int length);
608
610 Local<ObjectTemplate> InstanceTemplate();
611
617 void Inherit(Local<FunctionTemplate> parent);
618
623 Local<ObjectTemplate> PrototypeTemplate();
624
631 void SetPrototypeProviderTemplate(Local<FunctionTemplate> prototype_provider);
632
638 void SetClassName(Local<String> name);
639
644 void SetInterfaceName(Local<String> name);
645
650 void SetExceptionContext(ExceptionContext context);
651
656 void SetAcceptAnyReceiver(bool value);
657
662 void ReadOnlyPrototype();
663
668 void RemovePrototype();
669
674 bool HasInstance(Local<Value> object);
675
683 bool IsLeafTemplateForApiObject(v8::Local<v8::Value> value) const;
684
691 void SealAndPrepareForPromotionToReadOnly();
692
693 V8_INLINE static FunctionTemplate* Cast(Data* data);
694
695 private:
696 FunctionTemplate();
697
698 static void CheckCast(Data* that);
699 friend class Context;
700 friend class ObjectTemplate;
701};
702
707enum class PropertyHandlerFlags {
711 kNone = 0,
712
718 kNonMasking = 1,
719
724 kOnlyInterceptStrings = 1 << 1,
725
729 kHasNoSideEffect = 1 << 2,
730
739};
742 private:
743 static constexpr PropertyHandlerFlags WithNewSignatureFlag(
745 return static_cast<PropertyHandlerFlags>(
746 static_cast<int>(flags) |
747 static_cast<int>(
749 }
750
751 static NamedPropertySetterCallbackV2 ConvertSetter(std::nullptr_t) {
752 return nullptr;
753 }
754 static NamedPropertySetterCallbackV2 ConvertSetter(
756 return value;
757 }
758 static NamedPropertySetterCallbackV2 ConvertSetter(
760 return NamedPropertySetterCallbackV2(value);
761 }
762
763 static NamedPropertyDefinerCallbackV2 ConvertDefiner(std::nullptr_t) {
764 return nullptr;
765 }
766 static NamedPropertyDefinerCallbackV2 ConvertDefiner(
768 return value;
769 }
770 static NamedPropertyDefinerCallbackV2 ConvertDefiner(
772 return NamedPropertyDefinerCallbackV2(value);
773 }
774
775 public:
776 // TODO(https://crbug.com/348660658): cleanup once migration to
777 // NamedPropertySetterCallbackV2/NamedPropertyDefinerCallbackV2 is done.
778 template <typename TSetter = std::nullptr_t,
779 typename TDefiner = std::nullptr_t>
780 requires((std::is_same_v<TSetter, std::nullptr_t> ||
781 std::is_same_v<TSetter, NamedPropertySetterCallback> ||
782 std::is_same_v<TSetter, NamedPropertySetterCallbackV2>) &&
783 (std::is_same_v<TDefiner, std::nullptr_t> ||
784 std::is_same_v<TDefiner, NamedPropertyDefinerCallback> ||
785 std::is_same_v<TDefiner, NamedPropertyDefinerCallbackV2>))
788 TSetter setter, //
792 TDefiner definer, //
796 : getter(getter),
797 setter(ConvertSetter(setter)),
798 query(query),
801 definer(ConvertDefiner(definer)),
803 data(data),
804 flags(flags) {}
805
806 // TODO(https://crbug.com/348660658): cleanup once migration to
807 // NamedPropertySetterCallbackV2/NamedPropertyDefinerCallbackV2 is done.
808 template <typename TSetter = std::nullptr_t>
809 requires(std::is_same_v<TSetter, std::nullptr_t> ||
810 std::is_same_v<TSetter, NamedPropertySetterCallback> ||
811 std::is_same_v<TSetter, NamedPropertySetterCallbackV2>)
814 TSetter setter = nullptr, //
820 : getter(getter),
821 setter(ConvertSetter(setter)),
822 query(query),
825 definer(nullptr),
826 descriptor(nullptr),
827 data(data),
828 flags(flags) {}
829
830 // TODO(https://crbug.com/348660658): cleanup once migration to
831 // NamedPropertySetterCallbackV2/NamedPropertyDefinerCallbackV2 is done.
832 template <typename TSetter = std::nullptr_t,
833 typename TDefiner = std::nullptr_t>
834 requires((std::is_same_v<TSetter, std::nullptr_t> ||
835 std::is_same_v<TSetter, NamedPropertySetterCallback> ||
836 std::is_same_v<TSetter, NamedPropertySetterCallbackV2>) &&
837 (std::is_same_v<TDefiner, std::nullptr_t> ||
838 std::is_same_v<TDefiner, NamedPropertyDefinerCallback> ||
839 std::is_same_v<TDefiner, NamedPropertyDefinerCallbackV2>))
842 TSetter setter, //
846 TDefiner definer, //
849 : getter(getter),
850 setter(ConvertSetter(setter)),
851 query(nullptr),
854 definer(ConvertDefiner(definer)),
856 data(data),
857 flags(flags) {}
868};
871 private:
872 static constexpr PropertyHandlerFlags WithNewSignatureFlag(
874 return static_cast<PropertyHandlerFlags>(
875 static_cast<int>(flags) |
876 static_cast<int>(
878 }
879
880 static IndexedPropertySetterCallback ConvertSetter(std::nullptr_t) {
881 return nullptr;
882 }
883 static IndexedPropertySetterCallback ConvertSetter(
885 return value;
886 }
887 static IndexedPropertySetterCallback ConvertSetter(
889 return IndexedPropertySetterCallback(value);
890 }
891
892 static IndexedPropertyDefinerCallback ConvertDefiner(std::nullptr_t) {
893 return nullptr;
894 }
895 static IndexedPropertyDefinerCallback ConvertDefiner(
897 return value;
898 }
899 static IndexedPropertyDefinerCallback ConvertDefiner(
901 return IndexedPropertyDefinerCallback(value);
902 }
903
904 public:
905 // TODO(https://crbug.com/348660658): cleanup once migration to
906 // IndexedPropertySetterCallback/IndexedPropertyDefinerCallback is done.
907 template <typename TSetter = std::nullptr_t,
908 typename TDefiner = std::nullptr_t>
909 requires((std::is_same_v<TSetter, std::nullptr_t> ||
910 std::is_same_v<TSetter, IndexedPropertySetterCallback> ||
911 std::is_same_v<TSetter, IndexedPropertySetterCallbackV2>) &&
912 (std::is_same_v<TDefiner, std::nullptr_t> ||
913 std::is_same_v<TDefiner, IndexedPropertyDefinerCallback> ||
914 std::is_same_v<TDefiner, IndexedPropertyDefinerCallbackV2>))
917 TSetter setter, //
921 TDefiner definer, //
925 : getter(getter),
926 setter(ConvertSetter(setter)),
927 query(query),
930 definer(ConvertDefiner(definer)),
932 data(data),
933 flags(flags) {}
934
935 // TODO(https://crbug.com/348660658): cleanup once migration to
936 // IndexedPropertySetterCallback/IndexedPropertyDefinerCallback is done.
937 template <typename TSetter = std::nullptr_t>
938 requires(std::is_same_v<TSetter, std::nullptr_t> ||
939 std::is_same_v<TSetter, IndexedPropertySetterCallback> ||
940 std::is_same_v<TSetter, IndexedPropertySetterCallbackV2>)
943 TSetter setter = nullptr, //
949 : getter(getter),
950 setter(ConvertSetter(setter)),
951 query(query),
954 definer(nullptr),
955 descriptor(nullptr),
956 data(data),
957 flags(flags) {}
958
959 // TODO(https://crbug.com/348660658): cleanup once migration to
960 // IndexedPropertySetterCallback/IndexedPropertyDefinerCallback is done.
961 template <typename TSetter = std::nullptr_t,
962 typename TDefiner = std::nullptr_t>
963 requires((std::is_same_v<TSetter, std::nullptr_t> ||
964 std::is_same_v<TSetter, IndexedPropertySetterCallback> ||
965 std::is_same_v<TSetter, IndexedPropertySetterCallbackV2>) &&
966 (std::is_same_v<TDefiner, std::nullptr_t> ||
967 std::is_same_v<TDefiner, IndexedPropertyDefinerCallback> ||
968 std::is_same_v<TDefiner, IndexedPropertyDefinerCallbackV2>))
971 TSetter setter, //
975 TDefiner definer, //
978 : getter(getter),
979 setter(ConvertSetter(setter)),
980 query(nullptr),
983 definer(ConvertDefiner(definer)),
985 data(data),
986 flags(flags) {}
987
988 // TODO(https://crbug.com/348660658): cleanup once migration to
989 // IndexedPropertySetterCallback/IndexedPropertyDefinerCallback is done.
990 template <typename TSetter = std::nullptr_t,
991 typename TDefiner = std::nullptr_t>
992 requires((std::is_same_v<TSetter, std::nullptr_t> ||
993 std::is_same_v<TSetter, IndexedPropertySetterCallback> ||
994 std::is_same_v<TSetter, IndexedPropertySetterCallbackV2>) &&
995 (std::is_same_v<TDefiner, std::nullptr_t> ||
996 std::is_same_v<TDefiner, IndexedPropertyDefinerCallback> ||
997 std::is_same_v<TDefiner, IndexedPropertyDefinerCallbackV2>))
1000 TSetter setter, //
1004 TDefiner definer, //
1009 : getter(getter),
1010 setter(ConvertSetter(setter)),
1011 query(query),
1014 definer(ConvertDefiner(definer)),
1017 data(data),
1018 flags(flags) {}
1030};
1031
1038class V8_EXPORT ObjectTemplate : public Template {
1039 public:
1041 static Local<ObjectTemplate> New(
1042 Isolate* isolate,
1044
1051
1063 void SetHandler(const NamedPropertyHandlerConfiguration& configuration);
1064
1075 void SetHandler(const IndexedPropertyHandlerConfiguration& configuration);
1076
1083 void SetCallAsFunctionHandler(FunctionCallback callback,
1084 Local<Value> data = Local<Value>());
1085
1094 void MarkAsUndetectable();
1095
1104 void SetAccessCheckCallback(AccessCheckCallback callback,
1105 Local<Value> data = Local<Value>());
1106
1113 void SetAccessCheckCallbackAndHandler(
1114 AccessCheckCallback callback,
1115 const NamedPropertyHandlerConfiguration& named_handler,
1116 const IndexedPropertyHandlerConfiguration& indexed_handler,
1117 Local<Value> data = Local<Value>());
1118
1123 int InternalFieldCount() const;
1124
1129 void SetInternalFieldCount(int value);
1130
1134 bool IsImmutableProto() const;
1135
1140 void SetImmutableProto();
1141
1151 void SetCodeLike();
1152 bool IsCodeLike() const;
1153
1160 void SealAndPrepareForPromotionToReadOnly();
1161
1162 V8_INLINE static ObjectTemplate* Cast(Data* data);
1163
1164 private:
1166
1167 static void CheckCast(Data* that);
1168 friend class FunctionTemplate;
1169};
1170
1174class V8_EXPORT DictionaryTemplate final : public Data {
1175 public:
1183 static Local<DictionaryTemplate> New(
1185
1196 Local<Context> context, MemorySpan<MaybeLocal<Value>> property_values);
1197
1198 V8_INLINE static DictionaryTemplate* Cast(Data* data);
1199
1200 private:
1201 static void CheckCast(Data* that);
1202
1204};
1205
1214class V8_EXPORT Signature : public Data {
1215 public:
1216 static Local<Signature> New(
1217 Isolate* isolate,
1219
1220 V8_INLINE static Signature* Cast(Data* data);
1221
1222 private:
1223 Signature();
1224
1225 static void CheckCast(Data* that);
1226};
1227
1228// --- Implementation ---
1230void Template::Set(Isolate* isolate, const char* name, Local<Data> value,
1231 PropertyAttribute attributes) {
1233 .ToLocalChecked(),
1234 value, attributes);
1235}
1238#ifdef V8_ENABLE_CHECKS
1239 CheckCast(data);
1240#endif
1241 return reinterpret_cast<FunctionTemplate*>(data);
1242}
1245#ifdef V8_ENABLE_CHECKS
1246 CheckCast(data);
1247#endif
1248 return reinterpret_cast<ObjectTemplate*>(data);
1249}
1252#ifdef V8_ENABLE_CHECKS
1253 CheckCast(data);
1254#endif
1255 return reinterpret_cast<DictionaryTemplate*>(data);
1256}
1259#ifdef V8_ENABLE_CHECKS
1260 CheckCast(data);
1261#endif
1262 return reinterpret_cast<Signature*>(data);
1263}
1264
1265} // namespace v8
1266
1267#endif // INCLUDE_V8_TEMPLATE_H_
Definition: v8-context.h:48
Definition: v8-data.h:18
Definition: v8-template.h:1173
static DictionaryTemplate * Cast(Data *data)
Definition: v8-template.h:1250
Definition: v8-template.h:550
static FunctionTemplate * Cast(Data *data)
Definition: v8-template.h:1236
Definition: v8-isolate.h:291
Definition: v8-local-handle.h:366
Definition: v8-local-handle.h:734
Definition: v8-memory-span.h:48
Definition: v8-template.h:1037
static ObjectTemplate * Cast(Data *data)
Definition: v8-template.h:1243
Definition: v8-function-callback.h:224
Definition: v8-object.h:106
Definition: v8-container.h:148
Definition: v8-template.h:1213
static Signature * Cast(Data *data)
Definition: v8-template.h:1257
static MaybeLocal< String > NewFromUtf8(Isolate *isolate, const char *data, NewStringType type=NewStringType::kNormal, int length=-1)
Definition: v8-template.h:49
void Set(Local< Name > name, Local< Data > value, PropertyAttribute attributes=None)
Definition: libplatform.h:15
PropertyAttribute
Definition: v8-object.h:154
void(*)(Local< Name > property, const PropertyCallbackInfo< Value > &info) AccessorNameGetterCallback
Definition: v8-object.h:180
Intercepted(*)(Local< Name > property, Local< Value > value, const PropertyCallbackInfo< void > &info) NamedPropertySetterCallback
Definition: v8-template.h:239
Intercepted(*)(uint32_t index, Local< Value > value, const PropertyCallbackInfo< Boolean > &info) IndexedPropertySetterCallback
Definition: v8-template.h:377
SideEffectType
Definition: v8-object.h:231
Intercepted(*)(Local< Name > property, const PropertyCallbackInfo< Value > &info) NamedPropertyDescriptorCallback
Definition: v8-template.h:362
Intercepted(*)(uint32_t index, Local< Value > value, const PropertyCallbackInfo< void > &info) IndexedPropertySetterCallbackV2
Definition: v8-template.h:380
Intercepted(*)(Local< Name > property, const PropertyCallbackInfo< Value > &info) NamedPropertyGetterCallback
Definition: v8-template.h:205
Intercepted(*)(Local< Name > property, const PropertyDescriptor &desc, const PropertyCallbackInfo< void > &info) NamedPropertyDefinerCallback
Definition: v8-template.h:338
IndexedPropertyDescriptorCallback IndexedPropertyDescriptorCallbackV2
Definition: v8-template.h:424
IndexedPropertyGetterCallback IndexedPropertyGetterCallbackV2
Definition: v8-template.h:370
Intercepted(*)(uint32_t index, const PropertyDescriptor &desc, const PropertyCallbackInfo< Boolean > &info) IndexedPropertyDefinerCallback
Definition: v8-template.h:412
Intrinsic
Definition: v8-template.h:41
Intercepted(*)(uint32_t index, const PropertyCallbackInfo< Boolean > &info) IndexedPropertyDeleterCallback
Definition: v8-template.h:394
void(*)(const PropertyCallbackInfo< Array > &info) NamedPropertyEnumeratorCallback
Definition: v8-template.h:304
IndexedPropertyDeleterCallback IndexedPropertyDeleterCallbackV2
Definition: v8-template.h:396
ConstructorBehavior
Definition: v8-template.h:441
void(*)(const FunctionCallbackInfo< Value > &info) FunctionCallback
Definition: v8-function-callback.h:354
Intercepted(*)(uint32_t index, const PropertyDescriptor &desc, const PropertyCallbackInfo< void > &info) IndexedPropertyDefinerCallbackV2
Definition: v8-template.h:416
Intercepted(*)(uint32_t index, const PropertyCallbackInfo< Value > &info) IndexedPropertyGetterCallback
Definition: v8-template.h:368
Intercepted(*)(Local< Name > property, const PropertyDescriptor &desc, const PropertyCallbackInfo< Boolean > &info) NamedPropertyDefinerCallbackV2
Definition: v8-template.h:334
void(*)(const PropertyCallbackInfo< Array > &info) IndexedPropertyEnumeratorCallback
Definition: v8-template.h:405
IndexedPropertyQueryCallback IndexedPropertyQueryCallbackV2
Definition: v8-template.h:388
void(*)(Local< Name > property, Local< Value > value, const PropertyCallbackInfo< Boolean > &info) AccessorNameSetterCallbackV2
Definition: v8-object.h:203
Intercepted
Definition: v8-template.h:159
Intercepted(*)(Local< Name > property, const PropertyCallbackInfo< Integer > &info) NamedPropertyQueryCallback
Definition: v8-template.h:268
void(*)(Local< Name > property, Local< Value > value, const PropertyCallbackInfo< void > &info) AccessorNameSetterCallback
Definition: v8-object.h:207
uint32_t(*)(Local< Value > value, uint32_t start_index, uint32_t end_index, uint32_t *out_length, const PropertyCallbackInfo< void > &info) IndexedPropertyIndexOfCallback
Definition: v8-template.h:431
bool(*)(Local< Context > accessing_context, Local< Object > accessed_object, Local< Value > data) AccessCheckCallback
Definition: v8-template.h:439
Intercepted(*)(Local< Name > property, const PropertyCallbackInfo< Boolean > &info) NamedPropertyDeleterCallback
Definition: v8-template.h:295
Intercepted(*)(uint32_t index, const PropertyCallbackInfo< Value > &info) IndexedPropertyDescriptorCallback
Definition: v8-template.h:422
Intercepted(*)(Local< Name > property, Local< Value > value, const PropertyCallbackInfo< Boolean > &info) NamedPropertySetterCallbackV2
Definition: v8-template.h:235
PropertyHandlerFlags
Definition: v8-template.h:706
Intercepted(*)(uint32_t index, const PropertyCallbackInfo< Integer > &info) IndexedPropertyQueryCallback
Definition: v8-template.h:386
Definition: v8-template.h:869
IndexedPropertyGetterCallback getter
Definition: v8-template.h:1019
IndexedPropertyDefinerCallback definer
Definition: v8-template.h:1024
PropertyHandlerFlags flags
Definition: v8-template.h:1028
IndexedPropertyDescriptorCallback descriptor
Definition: v8-template.h:1025
IndexedPropertySetterCallback setter
Definition: v8-template.h:1020
IndexedPropertyIndexOfCallback index_of
Definition: v8-template.h:1026
IndexedPropertyEnumeratorCallback enumerator
Definition: v8-template.h:1023
IndexedPropertyQueryCallback query
Definition: v8-template.h:1021
Local< Value > data
Definition: v8-template.h:1027
IndexedPropertyDeleterCallback deleter
Definition: v8-template.h:1022
Definition: v8-template.h:740
NamedPropertyDescriptorCallback descriptor
Definition: v8-template.h:864
Local< Value > data
Definition: v8-template.h:865
NamedPropertyDeleterCallback deleter
Definition: v8-template.h:861
NamedPropertyDefinerCallbackV2 definer
Definition: v8-template.h:863
NamedPropertySetterCallbackV2 setter
Definition: v8-template.h:859
NamedPropertyEnumeratorCallback enumerator
Definition: v8-template.h:862
NamedPropertyQueryCallback query
Definition: v8-template.h:860
NamedPropertyGetterCallback getter
Definition: v8-template.h:858
PropertyHandlerFlags flags
Definition: v8-template.h:866
#define V8_INTRINSICS_LIST(F)
Definition: v8-template.h:28
#define V8_DECL_INTRINSIC(name, iname)
Definition: v8-template.h:42
#define V8_EXPORT
Definition: v8config.h:854
#define V8_INLINE
Definition: v8config.h:508
#define V8_WARN_UNUSED_RESULT
Definition: v8config.h:678