v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
conversions.cc File Reference
#include "src/numbers/conversions.h"
#include <limits.h>
#include <stdarg.h>
#include <cmath>
#include <optional>
#include "src/base/fpu.h"
#include "src/base/numbers/dtoa.h"
#include "src/base/numbers/strtod.h"
#include "src/base/small-vector.h"
#include "src/bigint/bigint.h"
#include "src/common/assert-scope.h"
#include "src/handles/handles.h"
#include "src/heap/factory.h"
#include "src/objects/bigint.h"
#include "src/objects/objects-inl.h"
#include "src/objects/string-inl.h"
#include "src/strings/char-predicates-inl.h"
#include "src/utils/allocation.h"
#include "third_party/fast_float/src/include/fast_float/fast_float.h"
#include "third_party/fast_float/src/include/fast_float/float_common.h"
Include dependency graph for conversions.cc:

Go to the source code of this file.

Classes

class  v8::internal::SimpleStringBuilder
 
class  v8::internal::StringToIntHelper
 
class  v8::internal::NumberParseIntHelper
 
class  v8::internal::StringToBigIntHelper< IsolateT >
 

Namespaces

namespace  v8
 
namespace  v8::internal
 

Macros

#define FPCLASSIFY_NAMESPACE   std
 

Functions

double v8::internal::JunkStringValue ()
 
double v8::internal::SignedZero (bool negative)
 
bool v8::internal::isDigit (int x, int radix)
 
bool v8::internal::isBinaryDigit (int x)
 
template<class Char >
bool v8::internal::SubStringEquals (const Char **current, const Char *end, const char *substring)
 
template<class Char >
bool v8::internal::AdvanceToNonspace (const Char **current, const Char *end)
 
template<int radix_log_2, class Char >
double v8::internal::InternalStringToIntDouble (const Char *start, const Char *end, bool negative, bool allow_trailing_junk)
 
template<class Char >
double v8::internal::InternalStringToDouble (const Char *current, const Char *end, ConversionFlag flag, double empty_string_val)
 
double v8::internal::StringToDouble (const char *str, ConversionFlag flags, double empty_string_val)
 
double v8::internal::StringToDouble (base::Vector< const uint8_t > str, ConversionFlag flags, double empty_string_val)
 
double v8::internal::StringToDouble (base::Vector< const base::uc16 > str, ConversionFlag flags, double empty_string_val)
 
double v8::internal::BinaryStringToDouble (base::Vector< const uint8_t > str)
 
double v8::internal::OctalStringToDouble (base::Vector< const uint8_t > str)
 
double v8::internal::HexStringToDouble (base::Vector< const uint8_t > str)
 
double v8::internal::ImplicitOctalStringToDouble (base::Vector< const uint8_t > str)
 
double v8::internal::StringToInt (Isolate *isolate, DirectHandle< String > string, int radix)
 
MaybeHandle< BigIntv8::internal::StringToBigInt (Isolate *isolate, DirectHandle< String > string)
 
template<typename IsolateT >
MaybeHandle< BigIntv8::internal::BigIntLiteral (IsolateT *isolate, const char *string)
 
template class v8::internal::EXPORT_TEMPLATE_DEFINE (V8_EXPORT_PRIVATE) RelocIteratorBase< RelocInfo >
 
std::unique_ptr< char[]> v8::internal::BigIntLiteralToDecimal (LocalIsolate *isolate, base::Vector< const uint8_t > literal)
 
std::string_view v8::internal::DoubleToStringView (double v, base::Vector< char > buffer)
 
std::string_view v8::internal::IntToStringView (int n, base::Vector< char > buffer)
 
std::string_view v8::internal::DoubleToFixedStringView (double value, int f, base::Vector< char > buffer)
 
static std::string_view v8::internal::CreateExponentialRepresentation (char *decimal_rep, int rep_length, int exponent, bool negative, int significant_digits, base::Vector< char > buffer)
 
std::string_view v8::internal::DoubleToExponentialStringView (double value, int f, base::Vector< char > buffer)
 
std::string_view v8::internal::DoubleToPrecisionStringView (double value, int p, base::Vector< char > buffer)
 
std::string_view v8::internal::DoubleToRadixStringView (double value, int radix, base::Vector< char > buffer)
 
double v8::internal::StringToDouble (Isolate *isolate, DirectHandle< String > string, ConversionFlag flag, double empty_string_val)
 
double v8::internal::FlatStringToDouble (Tagged< String > string, ConversionFlag flag, double empty_string_val)
 
std::optional< double > v8::internal::TryStringToDouble (LocalIsolate *isolate, DirectHandle< String > object, uint32_t max_length_for_conversion)
 
std::optional< double > v8::internal::TryStringToInt (LocalIsolate *isolate, DirectHandle< String > object, int radix)
 
bool v8::internal::IsSpecialIndex (Tagged< String > string)
 
bool v8::internal::IsSpecialIndex (Tagged< String > string, SharedStringAccessGuardIfNeeded &access_guard)
 
float v8::internal::DoubleToFloat32_NoInline (double x)
 
int32_t v8::internal::DoubleToInt32_NoInline (double x)
 

Variables

template const char * v8::internal::string
 

Macro Definition Documentation

◆ FPCLASSIFY_NAMESPACE

#define FPCLASSIFY_NAMESPACE   std

Definition at line 33 of file conversions.cc.