V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::Code Class Reference
Inheritance diagram for v8::internal::Code:
v8::internal::HeapObjectPtr v8::internal::ObjectPtr

Classes

class  BodyDescriptor
 
class  OptimizedCodeIterator
 

Public Types

enum  Kind { NUMBER_OF_KINDS }
 

Public Member Functions

int raw_instruction_size () const
 
void set_raw_instruction_size (int value)
 
int InstructionSize () const
 
int OffHeapInstructionSize () const
 
void ClearEmbeddedObjects (Heap *heap)
 
ByteArray SourcePositionTable () const
 
uint32_t stub_key () const
 
void set_stub_key (uint32_t key)
 
Objectnext_code_link () const
 
void set_next_code_link (Object *value)
 
int constant_pool_offset () const
 
void set_constant_pool_offset (int offset)
 
ByteArray unchecked_relocation_info () const
 
int relocation_size () const
 
Kind kind () const
 
bool is_stub () const
 
bool is_optimized_code () const
 
bool is_wasm_code () const
 
bool is_interpreter_trampoline_builtin () const
 
bool checks_optimization_marker () const
 
bool has_tagged_params () const
 
bool is_turbofanned () const
 
bool can_have_weak_objects () const
 
void set_can_have_weak_objects (bool value)
 
bool is_construct_stub () const
 
void set_is_construct_stub (bool value)
 
int builtin_index () const
 
void set_builtin_index (int id)
 
bool is_builtin () const
 
bool has_safepoint_info () const
 
int stack_slots () const
 
int safepoint_table_offset () const
 
void set_safepoint_table_offset (int offset)
 
int handler_table_offset () const
 
void set_handler_table_offset (int offset)
 
bool marked_for_deoptimization () const
 
void set_marked_for_deoptimization (bool flag)
 
bool embedded_objects_cleared () const
 
void set_embedded_objects_cleared (bool flag)
 
bool deopt_already_counted () const
 
void set_deopt_already_counted (bool flag)
 
void set_is_promise_rejection (bool flag)
 
void set_is_exception_caught (bool flag)
 
bool is_off_heap_trampoline () const
 
Address constant_pool () const
 
SafepointEntry GetSafepointEntry (Address pc)
 
void WipeOutHeader ()
 
void clear_padding ()
 
void initialize_flags (Kind kind, bool has_unwinding_info, bool is_turbofanned, int stack_slots, bool is_off_heap_trampoline)
 
Address raw_instruction_start () const
 
Address InstructionStart () const
 
Address OffHeapInstructionStart () const
 
Address raw_instruction_end () const
 
Address InstructionEnd () const
 
Address OffHeapInstructionEnd () const
 
int body_size () const
 
int SizeIncludingMetadata () const
 
byte * relocation_start () const
 
byte * relocation_end () const
 
bool has_unwinding_info () const
 
int unwinding_info_size () const
 
void set_unwinding_info_size (int value)
 
Address unwinding_info_start () const
 
Address unwinding_info_end () const
 
Address entry () const
 
bool contains (Address pc)
 
void Relocate (intptr_t delta)
 
void CopyFromNoFlush (Heap *heap, const CodeDesc &desc)
 
void FlushICache () const
 
int ExecutableSize () const
 
int CodeSize () const
 
void PrintDeoptLocation (FILE *out, const char *str, Address pc)
 
bool CanDeoptAt (Address pc)
 
void SetMarkedForDeoptimization (const char *reason)
 
HandlerTable::CatchPrediction GetBuiltinCatchPrediction ()
 
bool IsIsolateIndependent (Isolate *isolate)
 
bool CanContainWeakObjects ()
 
bool IsWeakObject (HeapObject *object)
 
bool Inlines (SharedFunctionInfo *sfi)
 
int GetUnwindingInfoSizeOffset () const
 
- Public Member Functions inherited from v8::internal::HeapObjectPtr
Map map () const
 
void set_map (Map value)
 
void set_map_after_allocation (Map value, WriteBarrierMode mode=UPDATE_WRITE_BARRIER)
 
void set_map_no_write_barrier (Map value)
 
ObjectSlot map_slot ()
 
MapWord map_word () const
 
void set_map_word (MapWord map_word)
 
void synchronized_set_map (Map value)
 
void synchronized_set_map_word (MapWord map_word)
 
WriteBarrierMode GetWriteBarrierMode (const DisallowHeapAllocation &promise)
 
 operator HeapObject * ()
 
 operator const HeapObject * () const
 
bool is_null () const
 
bool IsHeapObjectPtr () const
 
ReadOnlyRoots GetReadOnlyRoots () const
 
Address address () const
 
int Size () const
 
int SizeFromMap (Map map) const
 
ObjectSlot RawField (int byte_offset) const
 
MaybeObjectSlot RawMaybeWeakField (int byte_offset) const
 
void HeapObjectVerify (Isolate *isolate)
 
Address GetFieldAddress (int field_offset) const
 
- Public Member Functions inherited from v8::internal::ObjectPtr
constexpr ObjectPtr (Address ptr)
 
 operator Object * () const
 
bool operator== (const ObjectPtr other) const
 
bool operator!= (const ObjectPtr other) const
 
bool operator< (const ObjectPtr other) const
 
constexpr Address ptr () const
 
ObjectPtroperator-> ()
 
const ObjectPtroperator-> () const
 
bool IsHashTableBase () const
 
V8_INLINE bool IsSmallOrderedHashTable () const
 
bool IsObject () const
 
double Number () const
 
bool ToInt32 (int32_t *value) const
 
bool ToUint32 (uint32_t *value) const
 
bool BooleanValue (Isolate *isolate)
 
bool FilterKey (PropertyFilter filter)
 
ObjectGetHash ()
 
Smi GetOrCreateHash (Isolate *isolate)
 
V8_EXPORT_PRIVATE bool SameValue (Object *other)
 
V8_WARN_UNUSED_RESULT bool ToArrayIndex (uint32_t *index) const
 
void ShortPrint (FILE *out=stdout)
 
void ShortPrint (std::ostream &os)
 
void Print ()
 
void Print (std::ostream &os)
 

Static Public Member Functions

static const charKind2String (Kind kind)
 
static Code GetCodeFromTargetAddress (Address address)
 
static ObjectGetObjectFromEntryAddress (Address location_of_address)
 
static ObjectGetObjectFromCodeEntry (Address code_entry)
 
static void CopyRelocInfoToByteArray (ByteArray dest, const CodeDesc &desc)
 
static int SizeFor (int body_size)
 
static bool IsWeakObjectInOptimizedCode (HeapObject *object)
 

Public Attributes

NEVER_READ_ONLY_SPACE typedef uint32_t Flags
 

Static Public Attributes

static const int kMarkedForDeoptimizationBit
 
static const int kArgumentsBits = 16
 
static const int kMaxArguments = (1 << kArgumentsBits) - 2
 
- Static Public Attributes inherited from v8::internal::HeapObjectPtr
static const int kMapOffset = HeapObject::kMapOffset
 
static const int kHeaderSize = HeapObject::kHeaderSize
 

Friends

class RelocIterator
 

Additional Inherited Members

- Protected Types inherited from v8::internal::HeapObjectPtr
enum  AllowInlineSmiStorage { kRequireHeapObjectTag, kAllowBeingASmi }
 
- Protected Member Functions inherited from v8::internal::HeapObjectPtr
 HeapObjectPtr (Address ptr, AllowInlineSmiStorage allow_smi)
 

Detailed Description

Definition at line 30 of file code.h.

Member Data Documentation

◆ kMarkedForDeoptimizationBit

const int v8::internal::Code::kMarkedForDeoptimizationBit
static
Initial value:
=
MarkedForDeoptimizationField::kShift

Definition at line 430 of file code.h.


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