v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
option-utils.h File Reference
Include dependency graph for option-utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  v8
 
namespace  v8::internal
 

Functions

MaybeDirectHandle< JSReceiverv8::internal::GetOptionsObject (Isolate *isolate, DirectHandle< Object > options, const char *method_name)
 
MaybeDirectHandle< JSReceiverv8::internal::CoerceOptionsToObject (Isolate *isolate, DirectHandle< Object > options, const char *method_name)
 
Maybe< boolv8::internal::GetStringOption (Isolate *isolate, DirectHandle< JSReceiver > options, const char *property, const std::vector< const char * > &values, const char *method_name, std::unique_ptr< char[]> *result)
 
template<typename T >
static V8_WARN_UNUSED_RESULT Maybe< Tv8::internal::GetStringOption (Isolate *isolate, DirectHandle< JSReceiver > options, const char *name, const char *method_name, const std::vector< const char * > &str_values, const std::vector< T > &enum_values, T default_value)
 
template<typename T >
static V8_WARN_UNUSED_RESULT Maybe< Tv8::internal::GetStringOrBooleanOption (Isolate *isolate, DirectHandle< JSReceiver > options, const char *property, const char *method, const std::vector< const char * > &str_values, const std::vector< T > &enum_values, T true_value, T false_value, T fallback_value)
 
V8_WARN_UNUSED_RESULT Maybe< boolv8::internal::GetBoolOption (Isolate *isolate, DirectHandle< JSReceiver > options, const char *property, const char *method_name, bool *result)
 
Maybe< int > v8::internal::GetNumberOption (Isolate *isolate, DirectHandle< JSReceiver > options, DirectHandle< String > property, int min, int max, int fallback)
 
Maybe< double > v8::internal::GetNumberOptionAsDouble (Isolate *isolate, DirectHandle< JSReceiver > options, DirectHandle< String > property, double default_value)
 
Maybe< int > v8::internal::DefaultNumberOption (Isolate *isolate, DirectHandle< Object > value, int min, int max, int fallback, DirectHandle< String > property)