v8
3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
|
#include <v8.h>
Public Member Functions | |
StartupDataDecompressor () | |
virtual | ~StartupDataDecompressor () |
int | Decompress () |
Protected Member Functions | |
virtual int | DecompressData (char *raw_data, int *raw_data_size, const char *compressed_data, int compressed_data_size)=0 |
A helper class for driving V8 startup data decompression. It is based on "CompressedStartupData" API functions from the V8 class. It isn't mandatory for an embedder to use this class, instead, API functions can be used directly.
For an example of the class usage, see the "shell.cc" sample application.
Definition at line 327 of file api.cc.
References V8::GetCompressedStartupDataCount(), and NULL.
|
virtual |
Definition at line 335 of file api.cc.
References v8::internal::DeleteArray(), and V8::GetCompressedStartupDataCount().
int Decompress | ( | ) |
Definition at line 343 of file api.cc.
References ASSERT_EQ, StartupData::data, StartupDataDecompressor::DecompressData(), v8::internal::DeleteArray(), V8::GetCompressedStartupData(), V8::GetCompressedStartupDataCount(), StartupData::raw_size, and V8::SetDecompressedStartupData().
|
protectedpure virtual |
Referenced by StartupDataDecompressor::Decompress().