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

#include <embedded-file-writer.h>

Inheritance diagram for v8::internal::EmbeddedFileWriter:
Collaboration diagram for v8::internal::EmbeddedFileWriter:

Public Member Functions

int LookupOrAddExternallyCompiledFilename (const char *filename) override
 
const char * GetExternallyCompiledFilename (int fileid) const override
 
int GetExternallyCompiledFilenameCount () const override
 
void PrepareBuiltinSourcePositionMap (Builtins *builtins) override
 
void SetEmbeddedFile (const char *embedded_src_path)
 
void SetEmbeddedVariant (const char *embedded_variant)
 
void SetTargetArch (const char *target_arch)
 
void SetTargetOs (const char *target_os)
 
void WriteEmbedded (const i::EmbeddedData *blob) const
 
- Public Member Functions inherited from v8::internal::EmbeddedFileWriterInterface

Private Member Functions

void MaybeWriteEmbeddedFile (const i::EmbeddedData *blob) const
 
void WriteFilePrologue (PlatformEmbeddedFileWriterBase *w) const
 
void WriteExternalFilenames (PlatformEmbeddedFileWriterBase *w) const
 
std::string EmbeddedBlobCodeSymbol () const
 
std::string EmbeddedBlobDataSymbol () const
 
void WriteDataSection (PlatformEmbeddedFileWriterBase *w, const i::EmbeddedData *blob) const
 
void WriteBuiltin (PlatformEmbeddedFileWriterBase *w, const i::EmbeddedData *blob, const Builtin builtin) const
 
void WriteBuiltinLabels (PlatformEmbeddedFileWriterBase *w, std::string name) const
 
void WriteCodeSection (PlatformEmbeddedFileWriterBase *w, const i::EmbeddedData *blob) const
 
void WriteFileEpilogue (PlatformEmbeddedFileWriterBase *w, const i::EmbeddedData *blob) const
 

Static Private Member Functions

static FILE * GetFileDescriptorOrDie (const char *filename)
 
static void WriteBinaryContentsAsInlineAssembly (PlatformEmbeddedFileWriterBase *w, const uint8_t *data, uint32_t size)
 
static int ExternalFilenameIndexToId (int index)
 
static int ExternalFilenameIdToIndex (int id)
 

Private Attributes

std::vector< uint8_t > source_positions_ [Builtins::kBuiltinCount]
 
std::vector< LabelInfolabel_info_ [Builtins::kBuiltinCount]
 
std::map< const char *, int > external_filenames_
 
std::vector< const char * > external_filenames_by_index_
 
const char * embedded_src_path_ = nullptr
 
const char * embedded_variant_ = kDefaultEmbeddedVariant
 
const char * target_arch_ = nullptr
 
const char * target_os_ = nullptr
 

Static Private Attributes

static constexpr int kTemporaryStringLength = 256
 
static constexpr int kFirstExternalFilenameId = 1
 

Detailed Description

Definition at line 35 of file embedded-file-writer.h.

Member Function Documentation

◆ EmbeddedBlobCodeSymbol()

std::string v8::internal::EmbeddedFileWriter::EmbeddedBlobCodeSymbol ( ) const
inlineprivate

Definition at line 126 of file embedded-file-writer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EmbeddedBlobDataSymbol()

std::string v8::internal::EmbeddedFileWriter::EmbeddedBlobDataSymbol ( ) const
inlineprivate

Definition at line 134 of file embedded-file-writer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExternalFilenameIdToIndex()

static int v8::internal::EmbeddedFileWriter::ExternalFilenameIdToIndex ( int id)
inlinestaticprivate

Definition at line 181 of file embedded-file-writer.h.

Here is the caller graph for this function:

◆ ExternalFilenameIndexToId()

static int v8::internal::EmbeddedFileWriter::ExternalFilenameIndexToId ( int index)
inlinestaticprivate

Definition at line 178 of file embedded-file-writer.h.

Here is the caller graph for this function:

◆ GetExternallyCompiledFilename()

const char * v8::internal::EmbeddedFileWriter::GetExternallyCompiledFilename ( int fileid) const
overridevirtual

Implements v8::internal::EmbeddedFileWriterInterface.

Definition at line 271 of file embedded-file-writer.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetExternallyCompiledFilenameCount()

int v8::internal::EmbeddedFileWriter::GetExternallyCompiledFilenameCount ( ) const
overridevirtual

◆ GetFileDescriptorOrDie()

static FILE * v8::internal::EmbeddedFileWriter::GetFileDescriptorOrDie ( const char * filename)
inlinestaticprivate

Definition at line 88 of file embedded-file-writer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LookupOrAddExternallyCompiledFilename()

int v8::internal::EmbeddedFileWriter::LookupOrAddExternallyCompiledFilename ( const char * filename)
overridevirtual

Implements v8::internal::EmbeddedFileWriterInterface.

Definition at line 257 of file embedded-file-writer.cc.

Here is the call graph for this function:

◆ MaybeWriteEmbeddedFile()

void v8::internal::EmbeddedFileWriter::MaybeWriteEmbeddedFile ( const i::EmbeddedData * blob) const
inlineprivate

Definition at line 70 of file embedded-file-writer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrepareBuiltinSourcePositionMap()

void v8::internal::EmbeddedFileWriter::PrepareBuiltinSourcePositionMap ( Builtins * builtins)
overridevirtual

◆ SetEmbeddedFile()

void v8::internal::EmbeddedFileWriter::SetEmbeddedFile ( const char * embedded_src_path)
inline

Definition at line 52 of file embedded-file-writer.h.

Here is the caller graph for this function:

◆ SetEmbeddedVariant()

void v8::internal::EmbeddedFileWriter::SetEmbeddedVariant ( const char * embedded_variant)
inline

Definition at line 56 of file embedded-file-writer.h.

Here is the caller graph for this function:

◆ SetTargetArch()

void v8::internal::EmbeddedFileWriter::SetTargetArch ( const char * target_arch)
inline

Definition at line 61 of file embedded-file-writer.h.

Here is the caller graph for this function:

◆ SetTargetOs()

void v8::internal::EmbeddedFileWriter::SetTargetOs ( const char * target_os)
inline

Definition at line 63 of file embedded-file-writer.h.

Here is the caller graph for this function:

◆ WriteBinaryContentsAsInlineAssembly()

void v8::internal::EmbeddedFileWriter::WriteBinaryContentsAsInlineAssembly ( PlatformEmbeddedFileWriterBase * w,
const uint8_t * data,
uint32_t size )
staticprivate

Definition at line 212 of file embedded-file-writer.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteBuiltin()

void v8::internal::EmbeddedFileWriter::WriteBuiltin ( PlatformEmbeddedFileWriterBase * w,
const i::EmbeddedData * blob,
const Builtin builtin ) const
private

Definition at line 50 of file embedded-file-writer.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteBuiltinLabels()

void v8::internal::EmbeddedFileWriter::WriteBuiltinLabels ( PlatformEmbeddedFileWriterBase * w,
std::string name ) const
private

Definition at line 127 of file embedded-file-writer.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteCodeSection()

void v8::internal::EmbeddedFileWriter::WriteCodeSection ( PlatformEmbeddedFileWriterBase * w,
const i::EmbeddedData * blob ) const
private

Definition at line 132 of file embedded-file-writer.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteDataSection()

void v8::internal::EmbeddedFileWriter::WriteDataSection ( PlatformEmbeddedFileWriterBase * w,
const i::EmbeddedData * blob ) const
inlineprivate

Definition at line 142 of file embedded-file-writer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteEmbedded()

void v8::internal::EmbeddedFileWriter::WriteEmbedded ( const i::EmbeddedData * blob) const
inline

Definition at line 65 of file embedded-file-writer.h.

Here is the call graph for this function:

◆ WriteExternalFilenames()

void v8::internal::EmbeddedFileWriter::WriteExternalFilenames ( PlatformEmbeddedFileWriterBase * w) const
inlineprivate

Definition at line 104 of file embedded-file-writer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteFileEpilogue()

void v8::internal::EmbeddedFileWriter::WriteFileEpilogue ( PlatformEmbeddedFileWriterBase * w,
const i::EmbeddedData * blob ) const
private

Definition at line 172 of file embedded-file-writer.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteFilePrologue()

void v8::internal::EmbeddedFileWriter::WriteFilePrologue ( PlatformEmbeddedFileWriterBase * w) const
inlineprivate

Definition at line 98 of file embedded-file-writer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ embedded_src_path_

const char* v8::internal::EmbeddedFileWriter::embedded_src_path_ = nullptr
private

Definition at line 197 of file embedded-file-writer.h.

◆ embedded_variant_

const char* v8::internal::EmbeddedFileWriter::embedded_variant_ = kDefaultEmbeddedVariant
private

Definition at line 201 of file embedded-file-writer.h.

◆ external_filenames_

std::map<const char*, int> v8::internal::EmbeddedFileWriter::external_filenames_
private

Definition at line 193 of file embedded-file-writer.h.

◆ external_filenames_by_index_

std::vector<const char*> v8::internal::EmbeddedFileWriter::external_filenames_by_index_
private

Definition at line 194 of file embedded-file-writer.h.

◆ kFirstExternalFilenameId

int v8::internal::EmbeddedFileWriter::kFirstExternalFilenameId = 1
staticconstexprprivate

Definition at line 177 of file embedded-file-writer.h.

◆ kTemporaryStringLength

int v8::internal::EmbeddedFileWriter::kTemporaryStringLength = 256
staticconstexprprivate

Definition at line 124 of file embedded-file-writer.h.

◆ label_info_

std::vector<LabelInfo> v8::internal::EmbeddedFileWriter::label_info_[Builtins::kBuiltinCount]
private

Definition at line 187 of file embedded-file-writer.h.

◆ source_positions_

std::vector<uint8_t> v8::internal::EmbeddedFileWriter::source_positions_[Builtins::kBuiltinCount]
private

Definition at line 186 of file embedded-file-writer.h.

◆ target_arch_

const char* v8::internal::EmbeddedFileWriter::target_arch_ = nullptr
private

Definition at line 206 of file embedded-file-writer.h.

◆ target_os_

const char* v8::internal::EmbeddedFileWriter::target_os_ = nullptr
private

Definition at line 207 of file embedded-file-writer.h.


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