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

#include <factory.h>

Collaboration diagram for v8::internal::Factory::CodeBuilder:

Public Member Functions

 CodeBuilder (Isolate *isolate, const CodeDesc &desc, CodeKind kind)
 
 CodeBuilder (LocalIsolate *local_isolate, const CodeDesc &desc, CodeKind kind)
 
V8_WARN_UNUSED_RESULT Handle< CodeBuild ()
 
V8_WARN_UNUSED_RESULT MaybeHandle< CodeTryBuild ()
 
CodeBuilderset_self_reference (Handle< Object > self_reference)
 
CodeBuilderset_builtin (Builtin builtin)
 
CodeBuilderset_inlined_bytecode_size (uint32_t size)
 
CodeBuilderset_osr_offset (BytecodeOffset offset)
 
CodeBuilderset_source_position_table (Handle< TrustedByteArray > table)
 
CodeBuilderset_empty_source_position_table ()
 
CodeBuilderset_bytecode_offset_table (Handle< TrustedByteArray > table)
 
CodeBuilderset_deoptimization_data (Handle< DeoptimizationData > deopt_data)
 
CodeBuilderset_interpreter_data (Handle< TrustedObject > interpreter_data)
 
CodeBuilderset_is_context_specialized ()
 
CodeBuilderset_is_turbofanned ()
 
CodeBuilderset_stack_slots (int stack_slots)
 
CodeBuilderset_parameter_count (uint16_t parameter_count)
 
CodeBuilderset_profiler_data (BasicBlockProfilerData *profiler_data)
 

Private Member Functions

MaybeHandle< CodeBuildInternal (bool retry_allocation_or_fail)
 
DirectHandle< TrustedByteArrayNewTrustedByteArray (int length)
 
Tagged< HeapObjectAllocateUninitializedInstructionStream (bool retry_allocation_or_fail)
 
Handle< CodeNewCode (const NewCodeOptions &options)
 

Private Attributes

Isolate *const isolate_
 
LocalIsolatelocal_isolate_
 
const CodeDesccode_desc_
 
const CodeKind kind_
 
MaybeHandle< Objectself_reference_
 
Builtin builtin_ = Builtin::kNoBuiltinId
 
uint32_t inlined_bytecode_size_ = 0
 
BytecodeOffset osr_offset_ = BytecodeOffset::None()
 
MaybeHandle< TrustedByteArraybytecode_offset_table_
 
MaybeHandle< TrustedByteArraysource_position_table_
 
MaybeHandle< DeoptimizationDatadeoptimization_data_
 
MaybeHandle< TrustedObjectinterpreter_data_
 
BasicBlockProfilerDataprofiler_data_ = nullptr
 
bool is_context_specialized_ = false
 
bool is_turbofanned_ = false
 
uint32_t stack_slots_ = 0
 
uint16_t parameter_count_ = 0
 

Detailed Description

Definition at line 1144 of file factory.h.

Constructor & Destructor Documentation

◆ CodeBuilder() [1/2]

v8::internal::Factory::CodeBuilder::CodeBuilder ( Isolate * isolate,
const CodeDesc & desc,
CodeKind kind )

Definition at line 103 of file factory.cc.

◆ CodeBuilder() [2/2]

v8::internal::Factory::CodeBuilder::CodeBuilder ( LocalIsolate * local_isolate,
const CodeDesc & desc,
CodeKind kind )

Definition at line 110 of file factory.cc.

Member Function Documentation

◆ AllocateUninitializedInstructionStream()

Tagged< HeapObject > v8::internal::Factory::CodeBuilder::AllocateUninitializedInstructionStream ( bool retry_allocation_or_fail)
private

Definition at line 262 of file factory.cc.

Here is the call graph for this function:

◆ Build()

Handle< Code > v8::internal::Factory::CodeBuilder::Build ( )

Definition at line 288 of file factory.cc.

Here is the caller graph for this function:

◆ BuildInternal()

MaybeHandle< Code > v8::internal::Factory::CodeBuilder::BuildInternal ( bool retry_allocation_or_fail)
private

Definition at line 126 of file factory.cc.

Here is the call graph for this function:

◆ NewCode()

Handle< Code > v8::internal::Factory::CodeBuilder::NewCode ( const NewCodeOptions & options)
private

Definition at line 122 of file factory.cc.

◆ NewTrustedByteArray()

DirectHandle< TrustedByteArray > v8::internal::Factory::CodeBuilder::NewTrustedByteArray ( int length)
private

Definition at line 117 of file factory.cc.

◆ set_builtin()

CodeBuilder & v8::internal::Factory::CodeBuilder::set_builtin ( Builtin builtin)
inline

Definition at line 1169 of file factory.h.

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

◆ set_bytecode_offset_table()

CodeBuilder & v8::internal::Factory::CodeBuilder::set_bytecode_offset_table ( Handle< TrustedByteArray > table)
inline

Definition at line 1197 of file factory.h.

Here is the caller graph for this function:

◆ set_deoptimization_data()

CodeBuilder & v8::internal::Factory::CodeBuilder::set_deoptimization_data ( Handle< DeoptimizationData > deopt_data)
inline

Definition at line 1204 of file factory.h.

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

◆ set_empty_source_position_table()

Factory::CodeBuilder & v8::internal::Factory::CodeBuilder::set_empty_source_position_table ( )
inline

Definition at line 145 of file factory-inl.h.

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

◆ set_inlined_bytecode_size()

CodeBuilder & v8::internal::Factory::CodeBuilder::set_inlined_bytecode_size ( uint32_t size)
inline

Definition at line 1176 of file factory.h.

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

◆ set_interpreter_data()

Factory::CodeBuilder & v8::internal::Factory::CodeBuilder::set_interpreter_data ( Handle< TrustedObject > interpreter_data)
inline

Definition at line 150 of file factory-inl.h.

Here is the caller graph for this function:

◆ set_is_context_specialized()

CodeBuilder & v8::internal::Factory::CodeBuilder::set_is_context_specialized ( )
inline

Definition at line 1215 of file factory.h.

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

◆ set_is_turbofanned()

CodeBuilder & v8::internal::Factory::CodeBuilder::set_is_turbofanned ( )
inline

Definition at line 1221 of file factory.h.

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

◆ set_osr_offset()

CodeBuilder & v8::internal::Factory::CodeBuilder::set_osr_offset ( BytecodeOffset offset)
inline

Definition at line 1182 of file factory.h.

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

◆ set_parameter_count()

CodeBuilder & v8::internal::Factory::CodeBuilder::set_parameter_count ( uint16_t parameter_count)
inline

Definition at line 1232 of file factory.h.

Here is the caller graph for this function:

◆ set_profiler_data()

CodeBuilder & v8::internal::Factory::CodeBuilder::set_profiler_data ( BasicBlockProfilerData * profiler_data)
inline

Definition at line 1237 of file factory.h.

Here is the caller graph for this function:

◆ set_self_reference()

CodeBuilder & v8::internal::Factory::CodeBuilder::set_self_reference ( Handle< Object > self_reference)
inline

Definition at line 1163 of file factory.h.

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

◆ set_source_position_table()

CodeBuilder & v8::internal::Factory::CodeBuilder::set_source_position_table ( Handle< TrustedByteArray > table)
inline

Definition at line 1188 of file factory.h.

Here is the caller graph for this function:

◆ set_stack_slots()

CodeBuilder & v8::internal::Factory::CodeBuilder::set_stack_slots ( int stack_slots)
inline

Definition at line 1227 of file factory.h.

Here is the caller graph for this function:

◆ TryBuild()

MaybeHandle< Code > v8::internal::Factory::CodeBuilder::TryBuild ( )

Definition at line 284 of file factory.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ builtin_

Builtin v8::internal::Factory::CodeBuilder::builtin_ = Builtin::kNoBuiltinId
private

Definition at line 1258 of file factory.h.

◆ bytecode_offset_table_

MaybeHandle<TrustedByteArray> v8::internal::Factory::CodeBuilder::bytecode_offset_table_
private

Definition at line 1261 of file factory.h.

◆ code_desc_

const CodeDesc& v8::internal::Factory::CodeBuilder::code_desc_
private

Definition at line 1254 of file factory.h.

◆ deoptimization_data_

MaybeHandle<DeoptimizationData> v8::internal::Factory::CodeBuilder::deoptimization_data_
private

Definition at line 1263 of file factory.h.

◆ inlined_bytecode_size_

uint32_t v8::internal::Factory::CodeBuilder::inlined_bytecode_size_ = 0
private

Definition at line 1259 of file factory.h.

◆ interpreter_data_

MaybeHandle<TrustedObject> v8::internal::Factory::CodeBuilder::interpreter_data_
private

Definition at line 1264 of file factory.h.

◆ is_context_specialized_

bool v8::internal::Factory::CodeBuilder::is_context_specialized_ = false
private

Definition at line 1266 of file factory.h.

◆ is_turbofanned_

bool v8::internal::Factory::CodeBuilder::is_turbofanned_ = false
private

Definition at line 1267 of file factory.h.

◆ isolate_

Isolate* const v8::internal::Factory::CodeBuilder::isolate_
private

Definition at line 1252 of file factory.h.

◆ kind_

const CodeKind v8::internal::Factory::CodeBuilder::kind_
private

Definition at line 1255 of file factory.h.

◆ local_isolate_

LocalIsolate* v8::internal::Factory::CodeBuilder::local_isolate_
private

Definition at line 1253 of file factory.h.

◆ osr_offset_

BytecodeOffset v8::internal::Factory::CodeBuilder::osr_offset_ = BytecodeOffset::None()
private

Definition at line 1260 of file factory.h.

◆ parameter_count_

uint16_t v8::internal::Factory::CodeBuilder::parameter_count_ = 0
private

Definition at line 1269 of file factory.h.

◆ profiler_data_

BasicBlockProfilerData* v8::internal::Factory::CodeBuilder::profiler_data_ = nullptr
private

Definition at line 1265 of file factory.h.

◆ self_reference_

MaybeHandle<Object> v8::internal::Factory::CodeBuilder::self_reference_
private

Definition at line 1257 of file factory.h.

◆ source_position_table_

MaybeHandle<TrustedByteArray> v8::internal::Factory::CodeBuilder::source_position_table_
private

Definition at line 1262 of file factory.h.

◆ stack_slots_

uint32_t v8::internal::Factory::CodeBuilder::stack_slots_ = 0
private

Definition at line 1268 of file factory.h.


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