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

#include <flags-impl.h>

Collaboration diagram for v8::internal::Flag:

Public Types

enum  FlagType {
  TYPE_BOOL , TYPE_MAYBE_BOOL , TYPE_INT , TYPE_UINT ,
  TYPE_UINT64 , TYPE_FLOAT , TYPE_SIZE_T , TYPE_STRING
}
 
enum class  SetBy { kDefault , kWeakImplication , kImplication , kCommandLine }
 

Public Member Functions

constexpr bool IsAnyImplication (Flag::SetBy set_by)
 
FlagType type () const
 
const char * name () const
 
const char * comment () const
 
bool PointsTo (const void *ptr) const
 
bool bool_variable () const
 
void set_bool_variable (bool value, SetBy set_by)
 
std::optional< boolmaybe_bool_variable () const
 
void set_maybe_bool_variable (std::optional< bool > value, SetBy set_by)
 
int int_variable () const
 
void set_int_variable (int value, SetBy set_by)
 
unsigned int uint_variable () const
 
void set_uint_variable (unsigned int value, SetBy set_by)
 
uint64_t uint64_variable () const
 
void set_uint64_variable (uint64_t value, SetBy set_by)
 
double float_variable () const
 
void set_float_variable (double value, SetBy set_by)
 
size_t size_t_variable () const
 
void set_size_t_variable (size_t value, SetBy set_by)
 
const char * string_value () const
 
void set_string_value (const char *new_value, bool owns_new_value, SetBy set_by)
 
template<typename T >
T GetDefaultValue () const
 
bool bool_default () const
 
int int_default () const
 
unsigned int uint_default () const
 
uint64_t uint64_default () const
 
double float_default () const
 
size_t size_t_default () const
 
const char * string_default () const
 
bool CheckFlagChange (SetBy new_set_by, bool change_flag, const char *implied_by=nullptr)
 
bool IsReadOnly () const
 
template<FlagType flag_type, typename T >
T GetValue () const
 
template<FlagType flag_type, typename T >
void SetValue (T new_value, SetBy set_by)
 
bool IsDefault () const
 
void ReleaseDynamicAllocations ()
 
V8_EXPORT_PRIVATE void Reset ()
 
void AllowOverwriting ()
 

Static Public Member Functions

static bool ShouldCheckFlagContradictions ()
 

Public Attributes

FlagType type_
 
const char * name_
 
void * valptr_
 
const void * defptr_
 
const char * cmt_
 
bool owns_ptr_
 
SetBy set_by_ = SetBy::kDefault
 
const char * implied_by_ = nullptr
 

Detailed Description

Definition at line 54 of file flags-impl.h.

Member Enumeration Documentation

◆ FlagType

Enumerator
TYPE_BOOL 
TYPE_MAYBE_BOOL 
TYPE_INT 
TYPE_UINT 
TYPE_UINT64 
TYPE_FLOAT 
TYPE_SIZE_T 
TYPE_STRING 

Definition at line 55 of file flags-impl.h.

◆ SetBy

enum class v8::internal::Flag::SetBy
strong
Enumerator
kDefault 
kWeakImplication 
kImplication 
kCommandLine 

Definition at line 66 of file flags-impl.h.

Member Function Documentation

◆ AllowOverwriting()

void v8::internal::Flag::AllowOverwriting ( )
inline

Definition at line 241 of file flags-impl.h.

◆ bool_default()

bool v8::internal::Flag::bool_default ( ) const
inline

Definition at line 166 of file flags-impl.h.

Here is the call graph for this function:

◆ bool_variable()

bool v8::internal::Flag::bool_variable ( ) const
inline

Definition at line 108 of file flags-impl.h.

Here is the call graph for this function:

◆ CheckFlagChange()

bool v8::internal::Flag::CheckFlagChange ( SetBy new_set_by,
bool change_flag,
const char * implied_by = nullptr )
Here is the caller graph for this function:

◆ comment()

const char * v8::internal::Flag::comment ( ) const
inline

Definition at line 90 of file flags-impl.h.

◆ float_default()

double v8::internal::Flag::float_default ( ) const
inline

Definition at line 186 of file flags-impl.h.

Here is the call graph for this function:

◆ float_variable()

double v8::internal::Flag::float_variable ( ) const
inline

Definition at line 142 of file flags-impl.h.

Here is the call graph for this function:

◆ GetDefaultValue()

template<typename T >
T v8::internal::Flag::GetDefaultValue ( ) const
inline

Definition at line 162 of file flags-impl.h.

Here is the caller graph for this function:

◆ GetValue()

template<FlagType flag_type, typename T >
T v8::internal::Flag::GetValue ( ) const
inline

Definition at line 216 of file flags-impl.h.

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

◆ int_default()

int v8::internal::Flag::int_default ( ) const
inline

Definition at line 171 of file flags-impl.h.

Here is the call graph for this function:

◆ int_variable()

int v8::internal::Flag::int_variable ( ) const
inline

Definition at line 122 of file flags-impl.h.

Here is the call graph for this function:

◆ IsAnyImplication()

bool v8::internal::Flag::IsAnyImplication ( Flag::SetBy set_by)
inlineconstexpr

Definition at line 68 of file flags-impl.h.

◆ IsDefault()

bool v8::internal::Flag::IsDefault ( ) const

Definition at line 3736 of file flags.cc.

◆ IsReadOnly()

bool v8::internal::Flag::IsReadOnly ( ) const
inline

Definition at line 210 of file flags-impl.h.

Here is the caller graph for this function:

◆ maybe_bool_variable()

std::optional< bool > v8::internal::Flag::maybe_bool_variable ( ) const
inline

Definition at line 114 of file flags-impl.h.

Here is the call graph for this function:

◆ name()

const char * v8::internal::Flag::name ( ) const
inline

Definition at line 88 of file flags-impl.h.

Here is the caller graph for this function:

◆ PointsTo()

bool v8::internal::Flag::PointsTo ( const void * ptr) const
inline

Definition at line 92 of file flags-impl.h.

◆ ReleaseDynamicAllocations()

void v8::internal::Flag::ReleaseDynamicAllocations ( )

Definition at line 3763 of file flags.cc.

◆ Reset()

void v8::internal::Flag::Reset ( )

Definition at line 3768 of file flags.cc.

◆ set_bool_variable()

void v8::internal::Flag::set_bool_variable ( bool value,
SetBy set_by )
inline

Definition at line 110 of file flags-impl.h.

Here is the call graph for this function:

◆ set_float_variable()

void v8::internal::Flag::set_float_variable ( double value,
SetBy set_by )
inline

Definition at line 144 of file flags-impl.h.

Here is the call graph for this function:

◆ set_int_variable()

void v8::internal::Flag::set_int_variable ( int value,
SetBy set_by )
inline

Definition at line 124 of file flags-impl.h.

Here is the call graph for this function:

◆ set_maybe_bool_variable()

void v8::internal::Flag::set_maybe_bool_variable ( std::optional< bool > value,
SetBy set_by )
inline

Definition at line 118 of file flags-impl.h.

Here is the call graph for this function:

◆ set_size_t_variable()

void v8::internal::Flag::set_size_t_variable ( size_t value,
SetBy set_by )
inline

Definition at line 150 of file flags-impl.h.

Here is the call graph for this function:

◆ set_string_value()

void v8::internal::Flag::set_string_value ( const char * new_value,
bool owns_new_value,
SetBy set_by )

◆ set_uint64_variable()

void v8::internal::Flag::set_uint64_variable ( uint64_t value,
SetBy set_by )
inline

Definition at line 138 of file flags-impl.h.

Here is the call graph for this function:

◆ set_uint_variable()

void v8::internal::Flag::set_uint_variable ( unsigned int value,
SetBy set_by )
inline

Definition at line 132 of file flags-impl.h.

Here is the call graph for this function:

◆ SetValue()

template<FlagType flag_type, typename T >
void v8::internal::Flag::SetValue ( T new_value,
SetBy set_by )
inline

Definition at line 223 of file flags-impl.h.

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

◆ ShouldCheckFlagContradictions()

static bool v8::internal::Flag::ShouldCheckFlagContradictions ( )
static

◆ size_t_default()

size_t v8::internal::Flag::size_t_default ( ) const
inline

Definition at line 191 of file flags-impl.h.

Here is the call graph for this function:

◆ size_t_variable()

size_t v8::internal::Flag::size_t_variable ( ) const
inline

Definition at line 148 of file flags-impl.h.

Here is the call graph for this function:

◆ string_default()

const char * v8::internal::Flag::string_default ( ) const
inline

Definition at line 196 of file flags-impl.h.

Here is the call graph for this function:

◆ string_value()

const char * v8::internal::Flag::string_value ( ) const
inline

Definition at line 154 of file flags-impl.h.

Here is the call graph for this function:

◆ type()

FlagType v8::internal::Flag::type ( ) const
inline

Definition at line 86 of file flags-impl.h.

◆ uint64_default()

uint64_t v8::internal::Flag::uint64_default ( ) const
inline

Definition at line 181 of file flags-impl.h.

Here is the call graph for this function:

◆ uint64_variable()

uint64_t v8::internal::Flag::uint64_variable ( ) const
inline

Definition at line 136 of file flags-impl.h.

Here is the call graph for this function:

◆ uint_default()

unsigned int v8::internal::Flag::uint_default ( ) const
inline

Definition at line 176 of file flags-impl.h.

Here is the call graph for this function:

◆ uint_variable()

unsigned int v8::internal::Flag::uint_variable ( ) const
inline

Definition at line 128 of file flags-impl.h.

Here is the call graph for this function:

Member Data Documentation

◆ cmt_

const char* v8::internal::Flag::cmt_

Definition at line 76 of file flags-impl.h.

◆ defptr_

const void* v8::internal::Flag::defptr_

Definition at line 75 of file flags-impl.h.

◆ implied_by_

const char* v8::internal::Flag::implied_by_ = nullptr

Definition at line 80 of file flags-impl.h.

◆ name_

const char* v8::internal::Flag::name_

Definition at line 73 of file flags-impl.h.

◆ owns_ptr_

bool v8::internal::Flag::owns_ptr_

Definition at line 77 of file flags-impl.h.

◆ set_by_

SetBy v8::internal::Flag::set_by_ = SetBy::kDefault

Definition at line 78 of file flags-impl.h.

◆ type_

FlagType v8::internal::Flag::type_

Definition at line 72 of file flags-impl.h.

◆ valptr_

void* v8::internal::Flag::valptr_

Definition at line 74 of file flags-impl.h.


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