Loading...
Searching...
No Matches
v8-function-callback.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_FUNCTION_CALLBACK_H_
6#define INCLUDE_V8_FUNCTION_CALLBACK_H_
7
8#include <cstdint>
9#include <limits>
10
11#include "v8-internal.h" // NOLINT(build/include_directory)
12#include "v8-local-handle.h" // NOLINT(build/include_directory)
13#include "v8-primitive.h" // NOLINT(build/include_directory)
14#include "v8config.h" // NOLINT(build/include_directory)
15
16namespace v8 {
17
18template <typename T>
19class BasicTracedReference;
20template <typename T>
21class Global;
22class Object;
23class Value;
24
25namespace internal {
26class FunctionCallbackArguments;
27class PropertyCallbackArguments;
28class Builtins;
29} // namespace internal
30
31namespace debug {
32class ConsoleCallArguments;
33} // namespace debug
34
35namespace api_internal {
37 v8::Isolate* isolate, v8::Local<v8::Data> raw_target);
38} // namespace api_internal
39
40template <typename T>
42 public:
43 template <class S>
44 V8_INLINE ReturnValue(const ReturnValue<S>& that) : value_(that.value_) {
45 static_assert(std::is_base_of_v<T, S>, "type check");
46 }
47 // Handle-based setters.
48 template <typename S>
49 V8_INLINE void Set(const Global<S>& handle);
50 template <typename S>
51 V8_INLINE void SetNonEmpty(const Global<S>& handle);
52 template <typename S>
53 V8_INLINE void Set(const BasicTracedReference<S>& handle);
54 template <typename S>
56 template <typename S>
57 V8_INLINE void Set(const Local<S> handle);
58 template <typename S>
59 V8_INLINE void SetNonEmpty(const Local<S> handle);
60 // Fast primitive number setters.
61 V8_INLINE void Set(bool value);
62 V8_INLINE void Set(double i);
63 V8_INLINE void Set(int16_t i);
64 V8_INLINE void Set(int32_t i);
65 V8_INLINE void Set(int64_t i);
66 V8_INLINE void Set(uint16_t i);
67 V8_INLINE void Set(uint32_t i);
68 V8_INLINE void Set(uint64_t i);
69 // Fast JS primitive setters.
70 V8_INLINE void SetNull();
72 V8_INLINE void SetFalse();
74 // Convenience getter for the Isolate.
76
77 // Pointer setter: Uncompilable to prevent inadvertent misuse.
78 template <typename S>
79 V8_INLINE void Set(S* whatever);
80
81 // Getter. Creates a new Local<> so it comes with a certain performance
82 // hit. If the ReturnValue was not yet set, this will return the undefined
83 // value.
85
86 private:
87 template <class F>
88 friend class ReturnValue;
89 template <class F>
91 template <class F>
93 template <class F, class G, class H>
95 V8_INLINE void SetInternal(internal::Address value);
96 // Default value depends on <T>:
97 // - <void> -> true_value,
98 // - <v8::Boolean> -> true_value,
99 // - <v8::Integer> -> 0,
100 // - <v8::Value> -> undefined_value,
101 // - <v8::Array> -> undefined_value.
102 V8_INLINE void SetDefaultValue();
104
105 // See FunctionCallbackInfo.
106 static constexpr int kIsolateAndFlagsIndex = -2;
107
108 internal::Address* value_;
109};
110
117template <typename T>
119 public:
121 V8_INLINE int Length() const;
126 V8_INLINE Local<Value> operator[](int i) const;
132 V8_INLINE bool IsConstructCall() const;
139
140 private:
145
146 // TODO(ishell, http://crbug.com/326505377): in case of non-constructor
147 // call, don't pass kNewTarget and kUnused. Add IsConstructCall flag to
148 // kIsolate field.
149 static constexpr int kUnusedIndex = 0;
150 static constexpr int kIsolateAndFlagsIndex = 1;
151 static constexpr int kContextIndex = 2;
152 static constexpr int kReturnValueIndex = 3;
153 static constexpr int kTargetIndex = 4;
154 static constexpr int kNewTargetIndex = 5;
155 static constexpr int kArgsLength = 6;
156
157 static constexpr int kArgsLengthWithReceiver = kArgsLength + 1;
158
159 // Codegen constants:
160 static constexpr int kSize = 3 * internal::kApiSystemPointerSize;
161 static constexpr int kImplicitArgsOffset = 0;
162 static constexpr int kValuesOffset =
163 kImplicitArgsOffset + internal::kApiSystemPointerSize;
164 static constexpr int kLengthOffset =
165 kValuesOffset + internal::kApiSystemPointerSize;
166
167 static constexpr int kThisValuesIndex = -1;
169 kIsolateAndFlagsIndex - kReturnValueIndex);
170
172 internal::Address* values, int length);
173
174 // TODO(https://crbug.com/326505377): flatten the v8::FunctionCallbackInfo
175 // object to avoid indirect loads through values_ and implicit_args_ and
176 // reduce the number of instructions in the CallApiCallback builtin.
177 internal::Address* implicit_args_;
178 internal::Address* values_;
179 internal::Address length_;
180};
181
186template <typename T>
188 public:
193
200
243 "Access to receiver will be deprecated soon. Use HolderV2() instead. \n"
244 "See http://crbug.com/455600234. ")
246
256
266
282
283 private:
284 template <typename U>
286 friend class MacroAssembler;
287 friend class internal::PropertyCallbackArguments;
288 friend class internal::CustomArguments<PropertyCallbackInfo>;
289 friend void internal::PrintPropertyCallbackInfo(void*);
290
291 static constexpr int kPropertyKeyIndex = 0;
292 static constexpr int kShouldThrowOnErrorIndex = 1;
293 static constexpr int kHolderIndex = 2;
294 static constexpr int kIsolateAndFlagsIndex = 3;
295 // TODO(http://crbug.com/333672197): drop this parameter.
296 static constexpr int kUnusedIndex = 4;
297 static constexpr int kReturnValueIndex = 5;
298 static constexpr int kCallbackInfoIndex = 6;
299 static constexpr int kThisIndex = 7;
300 static constexpr int kArgsLength = 8;
301
302 static constexpr int kSize = kArgsLength * internal::kApiSystemPointerSize;
303
304 PropertyCallbackInfo() = default;
305
306 mutable internal::Address args_[kArgsLength];
307};
308
309using FunctionCallback = void (*)(const FunctionCallbackInfo<Value>& info);
310
311// --- Implementation ---
312
313template <typename T>
314ReturnValue<T>::ReturnValue(internal::Address* slot) : value_(slot) {}
315
316template <typename T>
317void ReturnValue<T>::SetInternal(internal::Address value) {
318#if V8_STATIC_ROOTS_BOOL
319 using I = internal::Internals;
320 // Ensure that the upper 32-bits are not modified. Compiler should be
321 // able to optimize this to a store of a lower 32-bits of the value.
322 // This is fine since the callback can return only JavaScript values which
323 // are either Smis or heap objects allocated in the main cage.
324 *value_ = I::DecompressTaggedField(*value_, I::CompressTagged(value));
325#else
326 *value_ = value;
327#endif // V8_STATIC_ROOTS_BOOL
328}
329
330template <typename T>
331template <typename S>
332void ReturnValue<T>::Set(const Global<S>& handle) {
333 static_assert(std::is_base_of_v<T, S>, "type check");
334 if (V8_UNLIKELY(handle.IsEmpty())) {
335 SetDefaultValue();
336 } else {
337 SetInternal(handle.ptr());
338 }
339}
340
341template <typename T>
342template <typename S>
344 static_assert(std::is_base_of_v<T, S>, "type check");
345#ifdef V8_ENABLE_CHECKS
347#endif // V8_ENABLE_CHECKS
348 SetInternal(handle.ptr());
349}
350
351template <typename T>
352template <typename S>
354 static_assert(std::is_base_of_v<T, S>, "type check");
355 if (V8_UNLIKELY(handle.IsEmpty())) {
356 SetDefaultValue();
357 } else {
358 SetInternal(handle.ptr());
359 }
360}
361
362template <typename T>
363template <typename S>
365 static_assert(std::is_base_of_v<T, S>, "type check");
366#ifdef V8_ENABLE_CHECKS
368#endif // V8_ENABLE_CHECKS
369 SetInternal(handle.ptr());
370}
371
372template <typename T>
373template <typename S>
374void ReturnValue<T>::Set(const Local<S> handle) {
375 // "V8_DEPRECATED" this method if |T| is |void|.
376#if defined(V8_DEPRECATION_WARNINGS) || \
377 defined(V8_IMMINENT_DEPRECATION_WARNINGS)
378 static constexpr bool is_allowed_void = false;
379 static_assert(!std::is_void_v<T>,
380 "ReturnValue<void>::Set(const Local<S>) is deprecated. "
381 "Do nothing to indicate that the operation succeeded or use "
382 "SetFalse() to indicate that the operation failed (don't "
383 "forget to handle info.ShouldThrowOnError()). "
384 "See http://crbug.com/348660658 for details.");
385#else
386 static constexpr bool is_allowed_void = std::is_void_v<T>;
387#endif // defined(V8_DEPRECATION_WARNINGS) ||
388 // defined(V8_IMMINENT_DEPRECATION_WARNINGS)
389 static_assert(is_allowed_void || std::is_base_of_v<T, S>, "type check");
390 if (V8_UNLIKELY(handle.IsEmpty())) {
391 SetDefaultValue();
392 } else if constexpr (is_allowed_void) {
393 // Simulate old behaviour for "v8::AccessorSetterCallback" for which
394 // it was possible to set the return value even for ReturnValue<void>.
395 Set(handle->BooleanValue(GetIsolate()));
396 } else {
397 SetInternal(handle.ptr());
398 }
399}
400
401template <typename T>
402template <typename S>
404 // "V8_DEPRECATED" this method if |T| is |void|.
405#if defined(V8_DEPRECATION_WARNINGS) || \
406 defined(V8_IMMINENT_DEPRECATION_WARNINGS)
407 static constexpr bool is_allowed_void = false;
408 static_assert(!std::is_void_v<T>,
409 "ReturnValue<void>::SetNonEmpty(const Local<S>) is deprecated. "
410 "Do nothing to indicate that the operation succeeded or use "
411 "SetFalse() to indicate that the operation failed (don't "
412 "forget to handle info.ShouldThrowOnError()). "
413 "See http://crbug.com/348660658 for details.");
414#else
415 static constexpr bool is_allowed_void = std::is_void_v<T>;
416#endif // defined(V8_DEPRECATION_WARNINGS) ||
417 // defined(V8_IMMINENT_DEPRECATION_WARNINGS)
418
419 static_assert(is_allowed_void || std::is_base_of_v<T, S>, "type check");
420#ifdef V8_ENABLE_CHECKS
422#endif // V8_ENABLE_CHECKS
423 if constexpr (is_allowed_void) {
424 // Simulate old behaviour for "v8::AccessorSetterCallback" for which
425 // it was possible to set the return value even for ReturnValue<void>.
426 Set(handle->BooleanValue(GetIsolate()));
427 } else {
428 SetInternal(handle.ptr());
429 }
430}
431
432template <typename T>
433void ReturnValue<T>::Set(double i) {
434 static_assert(std::is_base_of_v<T, Number>, "type check");
435 SetNonEmpty(Number::New(GetIsolate(), i));
436}
437
438template <typename T>
439void ReturnValue<T>::Set(int16_t i) {
440 static_assert(std::is_base_of_v<T, Integer>, "type check");
441 using I = internal::Internals;
442 static_assert(I::IsValidSmi(std::numeric_limits<int16_t>::min()));
443 static_assert(I::IsValidSmi(std::numeric_limits<int16_t>::max()));
444 SetInternal(I::IntegralToSmi(i));
445}
446
447template <typename T>
448void ReturnValue<T>::Set(int32_t i) {
449 static_assert(std::is_base_of_v<T, Integer>, "type check");
450 if (const auto result = internal::Internals::TryIntegralToSmi(i)) {
451 SetInternal(*result);
452 return;
453 }
454 SetNonEmpty(Integer::New(GetIsolate(), i));
455}
456
457template <typename T>
458void ReturnValue<T>::Set(int64_t i) {
459 static_assert(std::is_base_of_v<T, Integer>, "type check");
460 if (const auto result = internal::Internals::TryIntegralToSmi(i)) {
461 SetInternal(*result);
462 return;
463 }
464 SetNonEmpty(Number::New(GetIsolate(), static_cast<double>(i)));
465}
466
467template <typename T>
468void ReturnValue<T>::Set(uint16_t i) {
469 static_assert(std::is_base_of_v<T, Integer>, "type check");
470 using I = internal::Internals;
471 static_assert(I::IsValidSmi(std::numeric_limits<uint16_t>::min()));
472 static_assert(I::IsValidSmi(std::numeric_limits<uint16_t>::max()));
473 SetInternal(I::IntegralToSmi(i));
474}
475
476template <typename T>
477void ReturnValue<T>::Set(uint32_t i) {
478 static_assert(std::is_base_of_v<T, Integer>, "type check");
479 if (const auto result = internal::Internals::TryIntegralToSmi(i)) {
480 SetInternal(*result);
481 return;
482 }
483 SetNonEmpty(Integer::NewFromUnsigned(GetIsolate(), i));
484}
485
486template <typename T>
487void ReturnValue<T>::Set(uint64_t i) {
488 static_assert(std::is_base_of_v<T, Integer>, "type check");
489 if (const auto result = internal::Internals::TryIntegralToSmi(i)) {
490 SetInternal(*result);
491 return;
492 }
493 SetNonEmpty(Number::New(GetIsolate(), static_cast<double>(i)));
494}
495
496template <typename T>
497void ReturnValue<T>::Set(bool value) {
498 static_assert(std::is_void_v<T> || std::is_base_of_v<T, Boolean>,
499 "type check");
500 using I = internal::Internals;
501#if V8_STATIC_ROOTS_BOOL
502#ifdef V8_ENABLE_CHECKS
504 internal::ValueHelper::SlotAsValue<Value, true>(value_));
505#endif // V8_ENABLE_CHECKS
506 SetInternal(value ? I::StaticReadOnlyRoot::kTrueValue
507 : I::StaticReadOnlyRoot::kFalseValue);
508#else
509 int root_index;
510 if (value) {
511 root_index = I::kTrueValueRootIndex;
512 } else {
513 root_index = I::kFalseValueRootIndex;
514 }
515 *value_ = I::GetRoot(GetIsolate(), root_index);
516#endif // V8_STATIC_ROOTS_BOOL
517}
518
519template <typename T>
521 using I = internal::Internals;
522 if constexpr (std::is_same_v<void, T> || std::is_same_v<v8::Boolean, T>) {
523 Set(true);
524 } else if constexpr (std::is_same_v<v8::Integer, T>) {
525 SetInternal(I::IntegralToSmi(0));
526 } else {
527 static_assert(std::is_same_v<v8::Value, T> || std::is_same_v<v8::Array, T>);
528#if V8_STATIC_ROOTS_BOOL
529 SetInternal(I::StaticReadOnlyRoot::kUndefinedValue);
530#else
531 *value_ = I::GetRoot(GetIsolate(), I::kUndefinedValueRootIndex);
532#endif // V8_STATIC_ROOTS_BOOL
533 }
534}
535
536template <typename T>
538 static_assert(std::is_base_of_v<T, Primitive>, "type check");
539 using I = internal::Internals;
540#if V8_STATIC_ROOTS_BOOL
541#ifdef V8_ENABLE_CHECKS
543 internal::ValueHelper::SlotAsValue<Value, true>(value_));
544#endif // V8_ENABLE_CHECKS
545 SetInternal(I::StaticReadOnlyRoot::kNullValue);
546#else
547 *value_ = I::GetRoot(GetIsolate(), I::kNullValueRootIndex);
548#endif // V8_STATIC_ROOTS_BOOL
549}
550
551template <typename T>
553 static_assert(std::is_base_of_v<T, Primitive>, "type check");
554 using I = internal::Internals;
555#if V8_STATIC_ROOTS_BOOL
556#ifdef V8_ENABLE_CHECKS
558 internal::ValueHelper::SlotAsValue<Value, true>(value_));
559#endif // V8_ENABLE_CHECKS
560 SetInternal(I::StaticReadOnlyRoot::kUndefinedValue);
561#else
562 *value_ = I::GetRoot(GetIsolate(), I::kUndefinedValueRootIndex);
563#endif // V8_STATIC_ROOTS_BOOL
564}
565
566template <typename T>
568 static_assert(std::is_void_v<T> || std::is_base_of_v<T, Boolean>,
569 "type check");
570 using I = internal::Internals;
571#if V8_STATIC_ROOTS_BOOL
572#ifdef V8_ENABLE_CHECKS
574 internal::ValueHelper::SlotAsValue<Value, true>(value_));
575#endif // V8_ENABLE_CHECKS
576 SetInternal(I::StaticReadOnlyRoot::kFalseValue);
577#else
578 *value_ = I::GetRoot(GetIsolate(), I::kFalseValueRootIndex);
579#endif // V8_STATIC_ROOTS_BOOL
580}
581
582template <typename T>
584 static_assert(std::is_base_of_v<T, String>, "type check");
585 using I = internal::Internals;
586#if V8_STATIC_ROOTS_BOOL
587#ifdef V8_ENABLE_CHECKS
589 internal::ValueHelper::SlotAsValue<Value, true>(value_));
590#endif // V8_ENABLE_CHECKS
591 SetInternal(I::StaticReadOnlyRoot::kEmptyString);
592#else
593 *value_ = I::GetRoot(GetIsolate(), I::kEmptyStringRootIndex);
594#endif // V8_STATIC_ROOTS_BOOL
595}
596
597template <typename T>
599 using I = internal::Internals;
600 internal::Address isolate_and_flags = value_[kIsolateAndFlagsIndex];
601 return reinterpret_cast<Isolate*>(isolate_and_flags &
602 ~I::kCallbackInfoIsolateFlagsMask);
603}
604
605template <typename T>
608 internal::ValueHelper::SlotAsValue<Value>(value_));
609}
610
611template <typename T>
612template <typename S>
613void ReturnValue<T>::Set(S* whatever) {
614 static_assert(sizeof(S) < 0, "incompilable to prevent inadvertent misuse");
615}
616
617template <typename T>
619 internal::Address* values,
620 int length)
621 : implicit_args_(implicit_args), values_(values), length_(length) {}
622
623template <typename T>
625 // values_ points to the first argument (not the receiver).
626 if (i < 0 || Length() <= i) return Undefined(GetIsolate());
627 return Local<Value>::FromSlot(values_ + i);
628}
629
630template <typename T>
632 // values_ points to the first argument (not the receiver).
633 return Local<Object>::FromSlot(values_ + kThisValuesIndex);
634}
635
636template <typename T>
638 return Local<Value>::FromSlot(&implicit_args_[kNewTargetIndex]);
639}
640
641template <typename T>
643 auto target = Local<v8::Data>::FromSlot(&implicit_args_[kTargetIndex]);
644 return api_internal::GetFunctionTemplateData(GetIsolate(), target);
645}
646
647template <typename T>
649 using I = internal::Internals;
650 internal::Address isolate_and_flags = implicit_args_[kIsolateAndFlagsIndex];
651 return reinterpret_cast<Isolate*>(isolate_and_flags &
652 ~I::kCallbackInfoIsolateFlagsMask);
653}
654
655template <typename T>
657 return ReturnValue<T>(&implicit_args_[kReturnValueIndex]);
658}
659
660template <typename T>
662 return !NewTarget()->IsUndefined();
663}
664
665template <typename T>
667 return static_cast<int>(length_);
668}
669
670template <typename T>
672 using I = internal::Internals;
673 internal::Address isolate_and_flags = args_[kIsolateAndFlagsIndex];
674 return reinterpret_cast<Isolate*>(isolate_and_flags &
675 ~I::kCallbackInfoIsolateFlagsMask);
676}
677
678template <typename T>
680 using I = internal::Internals;
681 internal::Address callback_info = args_[kCallbackInfoIndex];
682 internal::Address data =
683 I::ReadTaggedPointerField(callback_info, I::kCallbackInfoDataOffset);
684 return Local<Value>::New(GetIsolate(), data);
685}
686
687template <typename T>
689 return Local<Object>::FromSlot(&args_[kThisIndex]);
690}
691
692template <typename T>
694 return Local<Object>::FromSlot(&args_[kHolderIndex]);
695}
696
697template <typename T>
699 return ReturnValue<T>(&args_[kReturnValueIndex]);
700}
701
702template <typename T>
704 using I = internal::Internals;
705 if (args_[kShouldThrowOnErrorIndex] !=
706 I::IntegralToSmi(I::kInferShouldThrowMode)) {
707 return args_[kShouldThrowOnErrorIndex] != I::IntegralToSmi(I::kDontThrow);
708 }
710 reinterpret_cast<v8::internal::Isolate*>(GetIsolate()));
711}
712
713} // namespace v8
714
715#endif // INCLUDE_V8_FUNCTION_CALLBACK_H_
Definition: v8-traced-handle.h:124
Definition: v8-function-callback.h:118
ReturnValue< T > GetReturnValue() const
Definition: v8-function-callback.h:656
Local< Object > This() const
Definition: v8-function-callback.h:631
Local< Value > operator[](int i) const
Definition: v8-function-callback.h:624
Isolate * GetIsolate() const
Definition: v8-function-callback.h:648
Local< Value > NewTarget() const
Definition: v8-function-callback.h:637
friend class debug::ConsoleCallArguments
Definition: v8-function-callback.h:143
friend class internal::FunctionCallbackArguments
Definition: v8-function-callback.h:141
Local< Value > Data() const
Definition: v8-function-callback.h:642
bool IsConstructCall() const
Definition: v8-function-callback.h:661
int Length() const
Definition: v8-function-callback.h:666
Definition: v8-persistent-handle.h:349
static Local< Integer > New(Isolate *isolate, int32_t value)
static Local< Integer > NewFromUnsigned(Isolate *isolate, uint32_t value)
Definition: v8-isolate.h:291
Definition: v8-local-handle.h:366
static Local< T > New(Isolate *isolate, Local< T > that)
Definition: v8-local-handle.h:448
static Local< Number > New(Isolate *isolate, double value)
Definition: v8-object.h:262
Definition: v8-util.h:166
Definition: v8-function-callback.h:187
Local< Value > Data() const
Definition: v8-function-callback.h:679
friend class internal::PropertyCallbackArguments
Definition: v8-function-callback.h:287
bool ShouldThrowOnError() const
Definition: v8-function-callback.h:703
ReturnValue< T > GetReturnValue() const
Definition: v8-function-callback.h:698
Local< Object > HolderV2() const
Definition: v8-function-callback.h:693
friend void internal::PrintPropertyCallbackInfo(void *)
friend class MacroAssembler
Definition: v8-function-callback.h:286
Local< Object > This() const
Definition: v8-function-callback.h:688
Isolate * GetIsolate() const
Definition: v8-function-callback.h:671
Definition: v8-function-callback.h:41
void SetFalse()
Definition: v8-function-callback.h:567
void SetEmptyString()
Definition: v8-function-callback.h:583
friend class ReturnValue
Definition: v8-function-callback.h:88
void Set(const Global< S > &handle)
Definition: v8-function-callback.h:332
ReturnValue(const ReturnValue< S > &that)
Definition: v8-function-callback.h:44
void SetNonEmpty(const Global< S > &handle)
Definition: v8-function-callback.h:343
Local< Value > Get() const
Definition: v8-function-callback.h:606
void SetNull()
Definition: v8-function-callback.h:537
Isolate * GetIsolate() const
Definition: v8-function-callback.h:598
void SetUndefined()
Definition: v8-function-callback.h:552
Definition: v8-container.h:148
Definition: v8-value.h:32
internal::Address ptr() const
Definition: v8-handle-base.h:80
bool IsEmpty() const
Definition: v8-handle-base.h:60
Definition: v8-local-handle.h:75
Definition: v8-internal.h:878
static constexpr std::optional< Address > TryIntegralToSmi(T value)
Definition: v8-internal.h:1159
v8::Local< v8::Value > GetFunctionTemplateData(v8::Isolate *isolate, v8::Local< v8::Data > raw_target)
const int kApiSystemPointerSize
Definition: v8-internal.h:51
void VerifyHandleIsNonEmpty(bool is_empty)
bool ShouldThrowOnError(internal::Isolate *isolate)
uintptr_t Address
Definition: v8-internal.h:38
void PerformCastCheck(T *data)
Definition: v8-internal.h:1454
void PrintFunctionCallbackInfo(void *function_callback_info)
Definition: libplatform.h:15
Local< Primitive > Undefined(Isolate *isolate)
Definition: v8-primitive.h:1018
void(*)(const FunctionCallbackInfo< Value > &info) FunctionCallback
Definition: v8-function-callback.h:309
#define V8_EXPORT
Definition: v8config.h:855
#define V8_INLINE
Definition: v8config.h:508
#define V8_DEPRECATE_SOON(message)
Definition: v8config.h:622
#define V8_UNLIKELY(condition)
Definition: v8config.h:668