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

Public Types

enum class  Behavior { kStringToBigInt , kLiteral }
 

Public Member Functions

 StringToBigIntHelper (IsolateT *isolate, DirectHandle< String > string)
 
 StringToBigIntHelper (IsolateT *isolate, const uint8_t *string, size_t length)
 
void ParseOneByte (const uint8_t *start) final
 
void ParseTwoByte (const base::uc16 *start) final
 
MaybeHandle< BigIntGetResult ()
 
std::unique_ptr< char[]> DecimalString (bigint::Processor *processor)
 
IsolateT * isolate ()
 
- 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 ParseInternal (const Char *start)
 
AllocationType allocation_type ()
 

Private Attributes

IsolateT * isolate_
 
bigint::FromStringAccumulator accumulator_ {BigInt::kMaxLength}
 
Behavior behavior_
 

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

template<typename IsolateT>
class v8::internal::StringToBigIntHelper< IsolateT >

Definition at line 810 of file conversions.cc.

Member Enumeration Documentation

◆ Behavior

template<typename IsolateT >
enum class v8::internal::StringToBigIntHelper::Behavior
strong
Enumerator
kStringToBigInt 
kLiteral 

Definition at line 812 of file conversions.cc.

Constructor & Destructor Documentation

◆ StringToBigIntHelper() [1/2]

template<typename IsolateT >
v8::internal::StringToBigIntHelper< IsolateT >::StringToBigIntHelper ( IsolateT * isolate,
DirectHandle< String > string )
inline

Definition at line 815 of file conversions.cc.

Here is the call graph for this function:

◆ StringToBigIntHelper() [2/2]

template<typename IsolateT >
v8::internal::StringToBigIntHelper< IsolateT >::StringToBigIntHelper ( IsolateT * isolate,
const uint8_t * string,
size_t length )
inline

Definition at line 825 of file conversions.cc.

Here is the call graph for this function:

Member Function Documentation

◆ allocation_type()

template<typename IsolateT >
AllocationType v8::internal::StringToBigIntHelper< IsolateT >::allocation_type ( )
inlineprivate

Definition at line 906 of file conversions.cc.

Here is the caller graph for this function:

◆ DecimalString()

template<typename IsolateT >
std::unique_ptr< char[]> v8::internal::StringToBigIntHelper< IsolateT >::DecimalString ( bigint::Processor * processor)
inline

Definition at line 868 of file conversions.cc.

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

◆ GetResult()

template<typename IsolateT >
MaybeHandle< BigInt > v8::internal::StringToBigIntHelper< IsolateT >::GetResult ( )
inline

Definition at line 837 of file conversions.cc.

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

◆ isolate()

template<typename IsolateT >
IsolateT * v8::internal::StringToBigIntHelper< IsolateT >::isolate ( )
inline

Definition at line 886 of file conversions.cc.

Here is the caller graph for this function:

◆ ParseInternal()

template<typename IsolateT >
template<class Char >
void v8::internal::StringToBigIntHelper< IsolateT >::ParseInternal ( const Char * start)
inlineprivate

Definition at line 890 of file conversions.cc.

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

◆ ParseOneByte()

template<typename IsolateT >
void v8::internal::StringToBigIntHelper< IsolateT >::ParseOneByte ( const uint8_t * start)
inlinefinalvirtual

Implements v8::internal::StringToIntHelper.

Definition at line 832 of file conversions.cc.

Here is the call graph for this function:

◆ ParseTwoByte()

template<typename IsolateT >
void v8::internal::StringToBigIntHelper< IsolateT >::ParseTwoByte ( const base::uc16 * start)
inlinefinalvirtual

Implements v8::internal::StringToIntHelper.

Definition at line 833 of file conversions.cc.

Here is the call graph for this function:

Member Data Documentation

◆ accumulator_

template<typename IsolateT >
bigint::FromStringAccumulator v8::internal::StringToBigIntHelper< IsolateT >::accumulator_ {BigInt::kMaxLength}
private

Definition at line 914 of file conversions.cc.

◆ behavior_

template<typename IsolateT >
Behavior v8::internal::StringToBigIntHelper< IsolateT >::behavior_
private

Definition at line 915 of file conversions.cc.

◆ isolate_

template<typename IsolateT >
IsolateT* v8::internal::StringToBigIntHelper< IsolateT >::isolate_
private

Definition at line 913 of file conversions.cc.


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