v8  3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Snapshot Class Reference

#include <snapshot.h>

Static Public Member Functions

static bool Initialize (const char *snapshot_file=NULL)
 
static Handle< ContextNewContextFromSnapshot ()
 
static bool IsEnabled ()
 
static bool WriteToFile (const char *snapshot_file)
 
static const bytedata ()
 
static int size ()
 
static int raw_size ()
 
static void set_raw_data (const byte *raw_data)
 
static const bytecontext_data ()
 
static int context_size ()
 
static int context_raw_size ()
 
static void set_context_raw_data (const byte *context_raw_data)
 

Detailed Description

Definition at line 36 of file snapshot.h.

Member Function Documentation

static const byte* context_data ( )
inlinestatic

Definition at line 59 of file snapshot.h.

Referenced by V8::GetCompressedStartupData().

static int context_raw_size ( )
inlinestatic

Definition at line 61 of file snapshot.h.

Referenced by V8::GetCompressedStartupData(), and V8::SetDecompressedStartupData().

static int context_size ( )
inlinestatic

Definition at line 60 of file snapshot.h.

Referenced by V8::GetCompressedStartupData().

static const byte* data ( )
inlinestatic

Definition at line 53 of file snapshot.h.

Referenced by V8::GetCompressedStartupData().

bool Initialize ( const char *  snapshot_file = NULL)
static

Definition at line 47 of file snapshot-common.cc.

References v8::internal::DeleteArray(), and v8::internal::ReadBytes().

Referenced by DEPENDENT_TEST().

static bool IsEnabled ( )
inlinestatic

Definition at line 47 of file snapshot.h.

Referenced by Heap::ConfigureHeap(), DEPENDENT_TEST(), and TEST().

Handle< Context > NewContextFromSnapshot ( )
static

Definition at line 63 of file snapshot-common.cc.

References Context::cast(), CHECK, Deserializer::DeserializePartial(), and HEAP.

static int raw_size ( )
inlinestatic

Definition at line 55 of file snapshot.h.

Referenced by V8::GetCompressedStartupData(), and V8::SetDecompressedStartupData().

static void set_context_raw_data ( const byte context_raw_data)
inlinestatic

Definition at line 62 of file snapshot.h.

Referenced by V8::SetDecompressedStartupData().

static void set_raw_data ( const byte raw_data)
inlinestatic

Definition at line 56 of file snapshot.h.

Referenced by V8::SetDecompressedStartupData().

static int size ( )
inlinestatic

Definition at line 54 of file snapshot.h.

Referenced by V8::GetCompressedStartupData().

static bool WriteToFile ( const char *  snapshot_file)
static

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