v8
5.5.372 (node 7.10.1)
V8 is Google's open source JavaScript engine
|
#include <v8.h>
Public Types | |
enum class | FunctionCodeHandling { kClear , kKeep } |
Public Member Functions | |
SnapshotCreator (intptr_t *external_references=nullptr, StartupData *existing_blob=nullptr) | |
~SnapshotCreator () | |
Isolate * | GetIsolate () |
size_t | AddContext (Local< Context > context) |
size_t | AddTemplate (Local< Template > template_obj) |
StartupData | CreateBlob (FunctionCodeHandling function_code_handling) |
SnapshotCreator (const SnapshotCreator &)=delete | |
void | operator= (const SnapshotCreator &)=delete |
|
strong |
SnapshotCreator | ( | intptr_t * | external_references = nullptr , |
StartupData * | existing_blob = nullptr |
||
) |
Create and enter an isolate, and set it up for serialization. The isolate is either created from scratch or from an existing snapshot. The caller keeps ownership of the argument snapshot.
existing_blob | existing snapshot from which to create this one. |
external_references | a null-terminated array of external references that must be equivalent to CreateParams::external_references. |
~SnapshotCreator | ( | ) |
|
delete |
Add a context to be included in the snapshot blob.
Add a template to be included in the snapshot blob.
StartupData CreateBlob | ( | FunctionCodeHandling | function_code_handling | ) |
Created a snapshot data blob. This must not be called from within a handle scope.
function_code_handling | whether to include compiled function code in the snapshot. |
Isolate* GetIsolate | ( | ) |
|
delete |