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

Classes

class  BodyDescriptor
 

Public Types

enum  Age {
  kNoAgeBytecodeAge = 0, kQuadragenarianBytecodeAge, kQuinquagenarianBytecodeAge, kSexagenarianBytecodeAge,
  kSeptuagenarianBytecodeAge, kOctogenarianBytecodeAge, kAfterLastBytecodeAge, kFirstBytecodeAge = kNoAgeBytecodeAge,
  kLastBytecodeAge = kAfterLastBytecodeAge - 1, kBytecodeAgeCount = kAfterLastBytecodeAge - kFirstBytecodeAge - 1, kIsOldBytecodeAge = kSexagenarianBytecodeAge
}
 

Public Member Functions

byte get (int index)
 
void set (int index, byte value)
 
Address GetFirstBytecodeAddress ()
 
int frame_size () const
 
void set_frame_size (int frame_size)
 
int register_count () const
 
int parameter_count () const
 
void set_parameter_count (int number_of_parameters)
 
interpreter::Register incoming_new_target_or_generator_register () const
 
void set_incoming_new_target_or_generator_register (interpreter::Register incoming_new_target_or_generator_register)
 
int interrupt_budget () const
 
void set_interrupt_budget (int interrupt_budget)
 
int osr_loop_nesting_level () const
 
void set_osr_loop_nesting_level (int depth)
 
Age bytecode_age () const
 
void set_bytecode_age (Age age)
 
ByteArray SourcePositionTable ()
 
void ClearFrameCacheFromSourcePositionTable ()
 
int BytecodeArraySize ()
 
int raw_instruction_size ()
 
int SizeIncludingMetadata ()
 
int SourcePosition (int offset)
 
int SourceStatementPosition (int offset)
 
void Disassemble (std::ostream &os)
 
void CopyBytecodesTo (BytecodeArray to)
 
bool IsOld () const
 
void MakeOlder ()
 
void clear_padding ()
 
 DEFINE_FIELD_OFFSET_CONSTANTS (FixedArrayBase::kHeaderSize, BYTECODE_ARRAY_FIELDS) static const int kMaxSize
 
 OBJECT_CONSTRUCTORS (BytecodeArray, FixedArrayBase)
 
- Public Member Functions inherited from v8::internal::FixedArrayBase
int length () const
 
void set_length (int value)
 
int synchronized_length () const
 
void synchronized_set_length (int value)
 
Objectunchecked_synchronized_length () const
 
bool IsCowArray () 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 int SizeFor (int length)
 
- Static Public Member Functions inherited from v8::internal::FixedArrayBase
static int GetMaxLengthForNewSpaceAllocation (ElementsKind kind)
 

Static Public Attributes

static const int kMaxLength = kMaxSize - kHeaderSize
 
- Static Public Attributes inherited from v8::internal::FixedArrayBase
static const int kMaxSize = 1024 * MB
 
- Static Public Attributes inherited from v8::internal::HeapObjectPtr
static const int kMapOffset = HeapObject::kMapOffset
 
static const int kHeaderSize = HeapObject::kHeaderSize
 

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 686 of file code.h.


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