v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::Private Class Reference

#include <v8-object.h>

Inheritance diagram for v8::Private:
Collaboration diagram for v8::Private:

Public Member Functions

Local< ValueName () const
 
- Public Member Functions inherited from v8::Data
bool IsValue () const
 
bool IsModule () const
 
bool IsModuleRequest () const
 
bool IsFixedArray () const
 
bool IsPrivate () const
 
bool IsObjectTemplate () const
 
bool IsFunctionTemplate () const
 
bool IsContext () const
 

Static Public Member Functions

static Local< PrivateNew (Isolate *isolate, Local< String > name=Local< String >())
 
static Local< PrivateForApi (Isolate *isolate, Local< String > name)
 
static V8_INLINE PrivateCast (Data *data)
 

Private Member Functions

 Private ()
 

Static Private Member Functions

static void CheckCast (Data *that)
 

Detailed Description

A private symbol

This is an experimental feature. Use at your own risk.

Definition at line 31 of file v8-object.h.

Constructor & Destructor Documentation

◆ Private()

v8::Private::Private ( )
private

Member Function Documentation

◆ Cast()

Private * v8::Private::Cast ( Data * data)
static

Definition at line 1062 of file v8-object.h.

Here is the call graph for this function:

◆ CheckCast()

void v8::Private::CheckCast ( v8::Data * that)
staticprivate

Definition at line 3888 of file api.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ForApi()

Local< Private > v8::Private::ForApi ( Isolate * isolate,
Local< String > name )
static

Retrieve a global private symbol. If a symbol with this name has not been retrieved in the same isolate before, it is created. Note that private symbols created this way are never collected, so they should only be used for statically fixed properties. Also, there is only one global name space for the names used as keys. To minimize the potential for clashes, use qualified names as keys, e.g., "Class#property".

Definition at line 9548 of file api.cc.

Here is the call graph for this function:

◆ Name()

Local< Value > v8::Private::Name ( ) const

Returns the print name string of the private symbol, or undefined if none.

Definition at line 6232 of file api.cc.

Here is the call graph for this function:

◆ New()

Local< Private > v8::Private::New ( Isolate * isolate,
Local< String > name = Local<String>() )
static

Create a private symbol. If name is not empty, it will be the description.

Definition at line 9538 of file api.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

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