v8 12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
HandleHelper Class Referencefinal

#include <v8-internal.h>

Static Public Member Functions

template<typename T1 , typename T2 >
static V8_INLINE bool EqualHandles (const T1 &lhs, const T2 &rhs)
 
static V8_EXPORT bool IsOnStack (const void *ptr)
 
static V8_EXPORT void VerifyOnStack (const void *ptr)
 
static V8_EXPORT void VerifyOnMainThread ()
 

Detailed Description

Helper functions about handles.

Definition at line 1368 of file v8-internal.h.

Member Function Documentation

◆ EqualHandles()

template<typename T1 , typename T2 >
static V8_INLINE bool EqualHandles ( const T1 &  lhs,
const T2 &  rhs 
)
inlinestatic

Checks whether two handles are equal. They are equal iff they are both empty or they are both non-empty and the objects to which they refer are physically equal.

If both handles refer to JS objects, this is the same as strict equality. For primitives, such as numbers or strings, a false return value does not indicate that the values aren't equal in the JavaScript sense. Use Value::StrictEquals() to check primitives for equality.

Definition at line 1381 of file v8-internal.h.

Referenced by PersistentBase< T >::operator==(), and PersistentBase< T >::operator==().

◆ IsOnStack()

static V8_EXPORT bool IsOnStack ( const void *  ptr)
static

◆ VerifyOnMainThread()

static V8_EXPORT void VerifyOnMainThread ( )
static

◆ VerifyOnStack()

static V8_EXPORT void VerifyOnStack ( const void *  ptr)
static

The documentation for this class was generated from the following file: