V8 Project
v8::internal::Memory Class Reference

#include <v8memory.h>

+ Collaboration diagram for v8::internal::Memory:

Static Public Member Functions

static uint8_t & uint8_at (Address addr)
 
static uint16_t & uint16_at (Address addr)
 
static uint32_tuint32_at (Address addr)
 
static int32_t & int32_at (Address addr)
 
static uint64_t & uint64_at (Address addr)
 
static intint_at (Address addr)
 
static unsigned & unsigned_at (Address addr)
 
static intptr_t & intptr_at (Address addr)
 
static uintptr_tuintptr_at (Address addr)
 
static double & double_at (Address addr)
 
static AddressAddress_at (Address addr)
 
static Object *& Object_at (Address addr)
 
static Handle< Object > & Object_Handle_at (Address addr)
 

Detailed Description

Definition at line 14 of file v8memory.h.

Member Function Documentation

◆ Address_at()

◆ double_at()

static double& v8::internal::Memory::double_at ( Address  addr)
inlinestatic

Definition at line 52 of file v8memory.h.

52  {
53  return *reinterpret_cast<double*>(addr);
54  }

◆ int32_at()

static int32_t& v8::internal::Memory::int32_at ( Address  addr)
inlinestatic

Definition at line 28 of file v8memory.h.

28  {
29  return *reinterpret_cast<int32_t*>(addr);
30  }
int int32_t
Definition: unicode.cc:24

Referenced by v8::internal::Assembler::code_target_object_handle_at(), v8::internal::Assembler::return_address_from_call_start(), v8::internal::Assembler::runtime_entry_at(), v8::internal::Assembler::set_target_address_at(), v8::internal::Assembler::target_address_at(), and v8::internal::Assembler::target_address_from_return_address().

+ Here is the caller graph for this function:

◆ int_at()

static int& v8::internal::Memory::int_at ( Address  addr)
inlinestatic

Definition at line 36 of file v8memory.h.

36  {
37  return *reinterpret_cast<int*>(addr);
38  }

◆ intptr_at()

static intptr_t& v8::internal::Memory::intptr_at ( Address  addr)
inlinestatic

Definition at line 44 of file v8memory.h.

44  {
45  return *reinterpret_cast<intptr_t*>(addr);
46  }

◆ Object_at()

static Object*& v8::internal::Memory::Object_at ( Address  addr)
inlinestatic

◆ Object_Handle_at()

static Handle<Object>& v8::internal::Memory::Object_Handle_at ( Address  addr)
inlinestatic

Definition at line 64 of file v8memory.h.

64  {
65  return *reinterpret_cast<Handle<Object>*>(addr);
66  }

◆ uint16_at()

static uint16_t& v8::internal::Memory::uint16_at ( Address  addr)
inlinestatic

Definition at line 20 of file v8memory.h.

20  {
21  return *reinterpret_cast<uint16_t*>(addr);
22  }
unsigned short uint16_t
Definition: unicode.cc:23

Referenced by v8::internal::Assembler::emitw().

+ Here is the caller graph for this function:

◆ uint32_at()

static uint32_t& v8::internal::Memory::uint32_at ( Address  addr)
inlinestatic

Definition at line 24 of file v8memory.h.

24  {
25  return *reinterpret_cast<uint32_t*>(addr);
26  }

Referenced by v8::internal::BackEdgeTable::ast_id(), v8::internal::BackEdgeTable::BackEdgeTable(), v8::internal::Assembler::emitl(), v8::internal::Deoptimizer::FillInputFrame(), v8::internal::BASE_EMBEDDED< Visitor >::GetEntry(), v8::internal::BASE_EMBEDDED< Visitor >::GetPcOffset(), v8::internal::BackEdgeTable::loop_depth(), and v8::internal::BackEdgeTable::pc_offset().

+ Here is the caller graph for this function:

◆ uint64_at()

static uint64_t& v8::internal::Memory::uint64_at ( Address  addr)
inlinestatic

Definition at line 32 of file v8memory.h.

32  {
33  return *reinterpret_cast<uint64_t*>(addr);
34  }

Referenced by v8::internal::Assembler::emitq().

+ Here is the caller graph for this function:

◆ uint8_at()

static uint8_t& v8::internal::Memory::uint8_at ( Address  addr)
inlinestatic

Definition at line 16 of file v8memory.h.

16  {
17  return *reinterpret_cast<uint8_t*>(addr);
18  }

Referenced by v8::internal::BASE_EMBEDDED< Visitor >::GetEntry().

+ Here is the caller graph for this function:

◆ uintptr_at()

static uintptr_t& v8::internal::Memory::uintptr_at ( Address  addr)
inlinestatic

Definition at line 48 of file v8memory.h.

48  {
49  return *reinterpret_cast<uintptr_t*>(addr);
50  }

Referenced by v8::internal::Assembler::emitp().

+ Here is the caller graph for this function:

◆ unsigned_at()

static unsigned& v8::internal::Memory::unsigned_at ( Address  addr)
inlinestatic

Definition at line 40 of file v8memory.h.

40  {
41  return *reinterpret_cast<unsigned*>(addr);
42  }

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