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

#include <preparse-data.h>

Inheritance diagram for v8::internal::PreparseDataBuilder:
Collaboration diagram for v8::internal::PreparseDataBuilder:

Classes

class  ByteData
 
class  DataGatheringScope
 

Public Member Functions

 PreparseDataBuilder (Zone *zone, PreparseDataBuilder *parent_builder, std::vector< void * > *children_buffer)
 
 ~PreparseDataBuilder ()
 
 PreparseDataBuilder (const PreparseDataBuilder &)=delete
 
PreparseDataBuilderoperator= (const PreparseDataBuilder &)=delete
 
PreparseDataBuilderparent () const
 
void SaveScopeAllocationData (DeclarationScope *scope, Parser *parser)
 
void Bailout ()
 
bool bailed_out () const
 
bool HasInnerFunctions () const
 
bool HasData () const
 
bool HasDataForParent () const
 
- Public Member Functions inherited from v8::internal::ZoneObject
void * operator new (size_t, Zone *)=delete
 
void * operator new (size_t size, void *ptr)
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)=delete
 

Static Public Member Functions

static bool ScopeNeedsData (Scope *scope)
 

Private Member Functions

Handle< PreparseDataSerialize (Isolate *isolate)
 
Handle< PreparseDataSerialize (LocalIsolate *isolate)
 
ZonePreparseDataSerialize (Zone *zone)
 
void FinalizeChildren (Zone *zone)
 
void AddChild (PreparseDataBuilder *child)
 
void SaveDataForScope (Scope *scope)
 
void SaveDataForVariable (Variable *var)
 
void SaveDataForInnerScopes (Scope *scope)
 
bool SaveDataForSkippableFunction (PreparseDataBuilder *builder)
 
void CopyByteData (Zone *zone)
 

Private Attributes

PreparseDataBuilderparent_
 
ByteData byte_data_
 
union { 
 
   ScopedPtrList< PreparseDataBuilder >   children_buffer_ 
 
   base::Vector< PreparseDataBuilder * >   children_ 
 
};  
 
DeclarationScopefunction_scope_
 
int function_length_
 
int num_inner_functions_
 
int num_inner_with_data_
 
bool bailed_out_: 1
 
bool has_data_: 1
 

Friends

class BuilderProducedPreparseData
 

Additional Inherited Members

- Static Public Attributes inherited from v8::internal::PreparseByteDataConstants
static constexpr size_t kUint32Size = 4
 
static constexpr size_t kVarint32MinSize = 1
 
static constexpr size_t kVarint32MaxSize = 5
 
static constexpr size_t kUint8Size = 1
 
static constexpr size_t kPlaceholderSize = 0
 
static const size_t kSkippableFunctionMinDataSize
 
static const size_t kSkippableFunctionMaxDataSize
 

Detailed Description

Definition at line 96 of file preparse-data.h.

Constructor & Destructor Documentation

◆ PreparseDataBuilder() [1/2]

v8::internal::PreparseDataBuilder::PreparseDataBuilder ( Zone * zone,
PreparseDataBuilder * parent_builder,
std::vector< void * > * children_buffer )
explicit

Definition at line 92 of file preparse-data.cc.

◆ ~PreparseDataBuilder()

v8::internal::PreparseDataBuilder::~PreparseDataBuilder ( )
inline

Definition at line 103 of file preparse-data.h.

◆ PreparseDataBuilder() [2/2]

v8::internal::PreparseDataBuilder::PreparseDataBuilder ( const PreparseDataBuilder & )
delete

Member Function Documentation

◆ AddChild()

void v8::internal::PreparseDataBuilder::AddChild ( PreparseDataBuilder * child)
private

Definition at line 252 of file preparse-data.cc.

Here is the caller graph for this function:

◆ bailed_out()

bool v8::internal::PreparseDataBuilder::bailed_out ( ) const
inline

Definition at line 194 of file preparse-data.h.

◆ Bailout()

void v8::internal::PreparseDataBuilder::Bailout ( )
inline

Definition at line 187 of file preparse-data.h.

Here is the caller graph for this function:

◆ CopyByteData()

void v8::internal::PreparseDataBuilder::CopyByteData ( Zone * zone)
private

◆ FinalizeChildren()

void v8::internal::PreparseDataBuilder::FinalizeChildren ( Zone * zone)
private

Definition at line 257 of file preparse-data.cc.

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

◆ HasData()

bool v8::internal::PreparseDataBuilder::HasData ( ) const

Definition at line 246 of file preparse-data.cc.

Here is the caller graph for this function:

◆ HasDataForParent()

bool v8::internal::PreparseDataBuilder::HasDataForParent ( ) const

Definition at line 248 of file preparse-data.cc.

Here is the call graph for this function:

◆ HasInnerFunctions()

bool v8::internal::PreparseDataBuilder::HasInnerFunctions ( ) const

Definition at line 242 of file preparse-data.cc.

Here is the caller graph for this function:

◆ operator=()

PreparseDataBuilder & v8::internal::PreparseDataBuilder::operator= ( const PreparseDataBuilder & )
delete

◆ parent()

PreparseDataBuilder * v8::internal::PreparseDataBuilder::parent ( ) const
inline

Definition at line 107 of file preparse-data.h.

Here is the caller graph for this function:

◆ SaveDataForInnerScopes()

void v8::internal::PreparseDataBuilder::SaveDataForInnerScopes ( Scope * scope)
private

Definition at line 413 of file preparse-data.cc.

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

◆ SaveDataForScope()

void v8::internal::PreparseDataBuilder::SaveDataForScope ( Scope * scope)
private

Definition at line 356 of file preparse-data.cc.

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

◆ SaveDataForSkippableFunction()

bool v8::internal::PreparseDataBuilder::SaveDataForSkippableFunction ( PreparseDataBuilder * builder)
private

Definition at line 286 of file preparse-data.cc.

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

◆ SaveDataForVariable()

void v8::internal::PreparseDataBuilder::SaveDataForVariable ( Variable * var)
private

Definition at line 392 of file preparse-data.cc.

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

◆ SaveScopeAllocationData()

void v8::internal::PreparseDataBuilder::SaveScopeAllocationData ( DeclarationScope * scope,
Parser * parser )

Definition at line 315 of file preparse-data.cc.

Here is the call graph for this function:

◆ ScopeNeedsData()

bool v8::internal::PreparseDataBuilder::ScopeNeedsData ( Scope * scope)
static

Definition at line 268 of file preparse-data.cc.

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

◆ Serialize() [1/3]

Handle< PreparseData > v8::internal::PreparseDataBuilder::Serialize ( Isolate * isolate)
private

Definition at line 451 of file preparse-data.cc.

Here is the call graph for this function:

◆ Serialize() [2/3]

Handle< PreparseData > v8::internal::PreparseDataBuilder::Serialize ( LocalIsolate * isolate)
private

Definition at line 467 of file preparse-data.cc.

Here is the call graph for this function:

◆ Serialize() [3/3]

ZonePreparseData * v8::internal::PreparseDataBuilder::Serialize ( Zone * zone)
private

Definition at line 483 of file preparse-data.cc.

Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ BuilderProducedPreparseData

friend class BuilderProducedPreparseData
friend

Definition at line 211 of file preparse-data.h.

Member Data Documentation

◆ [union]

◆ bailed_out_

bool v8::internal::PreparseDataBuilder::bailed_out_
private

Definition at line 240 of file preparse-data.h.

◆ byte_data_

ByteData v8::internal::PreparseDataBuilder::byte_data_
private

Definition at line 228 of file preparse-data.h.

◆ children_

base::Vector<PreparseDataBuilder*> v8::internal::PreparseDataBuilder::children_

Definition at line 231 of file preparse-data.h.

◆ children_buffer_

ScopedPtrList<PreparseDataBuilder> v8::internal::PreparseDataBuilder::children_buffer_

Definition at line 230 of file preparse-data.h.

◆ function_length_

int v8::internal::PreparseDataBuilder::function_length_
private

Definition at line 235 of file preparse-data.h.

◆ function_scope_

DeclarationScope* v8::internal::PreparseDataBuilder::function_scope_
private

Definition at line 234 of file preparse-data.h.

◆ has_data_

bool v8::internal::PreparseDataBuilder::has_data_
private

Definition at line 241 of file preparse-data.h.

◆ num_inner_functions_

int v8::internal::PreparseDataBuilder::num_inner_functions_
private

Definition at line 236 of file preparse-data.h.

◆ num_inner_with_data_

int v8::internal::PreparseDataBuilder::num_inner_with_data_
private

Definition at line 237 of file preparse-data.h.

◆ parent_

PreparseDataBuilder* v8::internal::PreparseDataBuilder::parent_
private

Definition at line 227 of file preparse-data.h.


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