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

Public Member Functions

 NumberParseIntHelper (DirectHandle< String > string, int radix)
 
 NumberParseIntHelper (const uint8_t *string, int radix, size_t length)
 
 NumberParseIntHelper (const base::uc16 *string, int radix, size_t length)
 
template<class Char >
void ParseInternal (const Char *start)
 
void ParseOneByte (const uint8_t *start) final
 
void ParseTwoByte (const base::uc16 *start) final
 
double GetResult ()
 
- Public Member Functions inherited from v8::internal::StringToIntHelper
 StringToIntHelper (DirectHandle< String > subject, int radix)
 
 StringToIntHelper (const uint8_t *subject, int radix, size_t length)
 
 StringToIntHelper (const base::uc16 *subject, int radix, size_t length)
 
 StringToIntHelper (DirectHandle< String > subject)
 
 StringToIntHelper (const uint8_t *subject, size_t length)
 
virtual ~StringToIntHelper ()=default
 

Private Member Functions

template<class Char >
void HandleGenericCase (const Char *current, const Char *end)
 
template<class Char >
double HandlePowerOfTwoCase (const Char *current, const Char *end)
 
template<class Char >
void HandleBaseTenCase (const Char *current, const Char *end)
 

Private Attributes

double result_ = 0
 

Additional Inherited Members

- Protected Member Functions inherited from v8::internal::StringToIntHelper
void ParseInt ()
 
void set_allow_binary_and_octal_prefixes ()
 
void set_disallow_trailing_junk ()
 
bool allow_trailing_junk ()
 
bool IsOneByte () const
 
base::Vector< const uint8_t > GetOneByteVector (const DisallowGarbageCollection &no_gc)
 
base::Vector< const base::uc16GetTwoByteVector (const DisallowGarbageCollection &no_gc)
 
int radix ()
 
size_t cursor ()
 
size_t length ()
 
bool negative ()
 
Sign sign ()
 
State state ()
 
void set_state (State state)
 

Detailed Description

Definition at line 487 of file conversions.cc.

Constructor & Destructor Documentation

◆ NumberParseIntHelper() [1/3]

v8::internal::NumberParseIntHelper::NumberParseIntHelper ( DirectHandle< String > string,
int radix )
inline

Definition at line 489 of file conversions.cc.

◆ NumberParseIntHelper() [2/3]

v8::internal::NumberParseIntHelper::NumberParseIntHelper ( const uint8_t * string,
int radix,
size_t length )
inline

Definition at line 492 of file conversions.cc.

◆ NumberParseIntHelper() [3/3]

v8::internal::NumberParseIntHelper::NumberParseIntHelper ( const base::uc16 * string,
int radix,
size_t length )
inline

Definition at line 495 of file conversions.cc.

Member Function Documentation

◆ GetResult()

double v8::internal::NumberParseIntHelper::GetResult ( )
inline

Definition at line 516 of file conversions.cc.

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

◆ HandleBaseTenCase()

template<class Char >
void v8::internal::NumberParseIntHelper::HandleBaseTenCase ( const Char * current,
const Char * end )
inlineprivate

Definition at line 566 of file conversions.cc.

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

◆ HandleGenericCase()

template<class Char >
void v8::internal::NumberParseIntHelper::HandleGenericCase ( const Char * current,
const Char * end )
private

Definition at line 597 of file conversions.cc.

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

◆ HandlePowerOfTwoCase()

template<class Char >
double v8::internal::NumberParseIntHelper::HandlePowerOfTwoCase ( const Char * current,
const Char * end )
inlineprivate

Definition at line 538 of file conversions.cc.

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

◆ ParseInternal()

template<class Char >
void v8::internal::NumberParseIntHelper::ParseInternal ( const Char * start)
inline

Definition at line 499 of file conversions.cc.

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

◆ ParseOneByte()

void v8::internal::NumberParseIntHelper::ParseOneByte ( const uint8_t * start)
inlinefinalvirtual

Implements v8::internal::StringToIntHelper.

Definition at line 511 of file conversions.cc.

Here is the call graph for this function:

◆ ParseTwoByte()

void v8::internal::NumberParseIntHelper::ParseTwoByte ( const base::uc16 * start)
inlinefinalvirtual

Implements v8::internal::StringToIntHelper.

Definition at line 512 of file conversions.cc.

Here is the call graph for this function:

Member Data Documentation

◆ result_

double v8::internal::NumberParseIntHelper::result_ = 0
private

Definition at line 593 of file conversions.cc.


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