|
V8 Project
|
A helper class for driving V8 startup data decompression. More...
#include <v8.h>
Collaboration diagram for v8::StartupDataDecompressor: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 |
Private Attributes | |
| char ** | raw_data |
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.
| v8::StartupDataDecompressor::StartupDataDecompressor | ( | ) |
Definition at line 205 of file api.cc.
References v8::V8::GetCompressedStartupDataCount(), NULL, and raw_data.
Here is the call graph for this function:
|
virtual |
Definition at line 213 of file api.cc.
References v8::internal::DeleteArray(), v8::V8::GetCompressedStartupDataCount(), and raw_data.
Here is the call graph for this function:| int v8::StartupDataDecompressor::Decompress | ( | ) |
Definition at line 221 of file api.cc.
References v8::StartupData::data, DCHECK_EQ, DecompressData(), v8::internal::DeleteArray(), v8::V8::GetCompressedStartupData(), v8::V8::GetCompressedStartupDataCount(), raw_data, and v8::V8::SetDecompressedStartupData().
Here is the call graph for this function:
|
private |
Definition at line 4912 of file v8.h.
Referenced by Decompress(), StartupDataDecompressor(), and ~StartupDataDecompressor().