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

#include <constant-pool.h>

Collaboration diagram for v8::internal::ConstantPoolEntry:

Public Types

enum  Type { INTPTR , DOUBLE , NUMBER_OF_TYPES }
 
enum  Access { REGULAR , OVERFLOWED }
 

Public Member Functions

 ConstantPoolEntry ()=default
 
 ConstantPoolEntry (int position, intptr_t value, bool sharing_ok, RelocInfo::Mode rmode=RelocInfo::NO_INFO)
 
 ConstantPoolEntry (int position, base::Double value, RelocInfo::Mode rmode=RelocInfo::NO_INFO)
 
int position () const
 
bool sharing_ok () const
 
bool is_merged () const
 
int merged_index () const
 
void set_merged_index (int index)
 
int offset () const
 
void set_offset (int offset)
 
intptr_t value () const
 
uint64_t value64 () const
 
RelocInfo::Mode rmode () const
 

Static Public Member Functions

static int size (Type type)
 

Private Types

enum  { SHARING_PROHIBITED = -2 , SHARING_ALLOWED = -1 }
 

Private Attributes

int position_
 
int merged_index_
 
union { 
 
   intptr_t   value_ 
 
   uint64_t   value64_ 
 
};  
 
RelocInfo::Mode rmode_
 

Detailed Description

Definition at line 23 of file constant-pool.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
SHARING_PROHIBITED 
SHARING_ALLOWED 

Definition at line 81 of file constant-pool.h.

◆ Access

Enumerator
REGULAR 
OVERFLOWED 

Definition at line 69 of file constant-pool.h.

◆ Type

Enumerator
INTPTR 
DOUBLE 
NUMBER_OF_TYPES 

Definition at line 63 of file constant-pool.h.

Constructor & Destructor Documentation

◆ ConstantPoolEntry() [1/3]

v8::internal::ConstantPoolEntry::ConstantPoolEntry ( )
default

◆ ConstantPoolEntry() [2/3]

v8::internal::ConstantPoolEntry::ConstantPoolEntry ( int position,
intptr_t value,
bool sharing_ok,
RelocInfo::Mode rmode = RelocInfo::NO_INFO )
inline

Definition at line 26 of file constant-pool.h.

◆ ConstantPoolEntry() [3/3]

v8::internal::ConstantPoolEntry::ConstantPoolEntry ( int position,
base::Double value,
RelocInfo::Mode rmode = RelocInfo::NO_INFO )
inline

Definition at line 32 of file constant-pool.h.

Member Function Documentation

◆ is_merged()

bool v8::internal::ConstantPoolEntry::is_merged ( ) const
inline

Definition at line 41 of file constant-pool.h.

Here is the caller graph for this function:

◆ merged_index()

int v8::internal::ConstantPoolEntry::merged_index ( ) const
inline

Definition at line 42 of file constant-pool.h.

Here is the call graph for this function:

◆ offset()

int v8::internal::ConstantPoolEntry::offset ( ) const
inline

Definition at line 51 of file constant-pool.h.

Here is the caller graph for this function:

◆ position()

int v8::internal::ConstantPoolEntry::position ( ) const
inline

Definition at line 39 of file constant-pool.h.

◆ rmode()

RelocInfo::Mode v8::internal::ConstantPoolEntry::rmode ( ) const
inline

Definition at line 61 of file constant-pool.h.

◆ set_merged_index()

void v8::internal::ConstantPoolEntry::set_merged_index ( int index)
inline

Definition at line 46 of file constant-pool.h.

Here is the call graph for this function:

◆ set_offset()

void v8::internal::ConstantPoolEntry::set_offset ( int offset)
inline

Definition at line 55 of file constant-pool.h.

Here is the call graph for this function:

◆ sharing_ok()

bool v8::internal::ConstantPoolEntry::sharing_ok ( ) const
inline

Definition at line 40 of file constant-pool.h.

Here is the caller graph for this function:

◆ size()

static int v8::internal::ConstantPoolEntry::size ( Type type)
inlinestatic

Definition at line 65 of file constant-pool.h.

◆ value()

intptr_t v8::internal::ConstantPoolEntry::value ( ) const
inline

Definition at line 59 of file constant-pool.h.

◆ value64()

uint64_t v8::internal::ConstantPoolEntry::value64 ( ) const
inline

Definition at line 60 of file constant-pool.h.

Member Data Documentation

◆ [union]

◆ merged_index_

int v8::internal::ConstantPoolEntry::merged_index_
private

Definition at line 73 of file constant-pool.h.

◆ position_

int v8::internal::ConstantPoolEntry::position_
private

Definition at line 72 of file constant-pool.h.

◆ rmode_

RelocInfo::Mode v8::internal::ConstantPoolEntry::rmode_
private

Definition at line 80 of file constant-pool.h.

◆ value64_

uint64_t v8::internal::ConstantPoolEntry::value64_

Definition at line 76 of file constant-pool.h.

◆ value_

intptr_t v8::internal::ConstantPoolEntry::value_

Definition at line 75 of file constant-pool.h.


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