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

#include <v8-context.h>

Collaboration diagram for v8::Context::DeepFreezeDelegate:

Public Member Functions

virtual bool FreezeEmbedderObjectAndGetChildren (Local< Object > obj, LocalVector< Object > &children_out)=0
 

Detailed Description

Delegate to help with Deep freezing embedder-specific objects (such as JSApiObjects) that can not be frozen natively.

Definition at line 226 of file v8-context.h.

Member Function Documentation

◆ FreezeEmbedderObjectAndGetChildren()

virtual bool v8::Context::DeepFreezeDelegate::FreezeEmbedderObjectAndGetChildren ( Local< Object > obj,
LocalVector< Object > & children_out )
pure virtual

Performs embedder-specific operations to freeze the provided embedder object. The provided object will be frozen by DeepFreeze after this function returns, so only embedder-specific objects need to be frozen. This function may not create new JS objects or perform JS allocations. Any v8 objects reachable from the provided embedder object that should also be considered for freezing should be added to the children_out parameter. Returns true if the operation completed successfully.


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