V8 Project
v8::internal::StringCharFromCodeGenerator Class Reference

#include <code-stubs.h>

+ Collaboration diagram for v8::internal::StringCharFromCodeGenerator:

Public Member Functions

 StringCharFromCodeGenerator (Register code, Register result)
 
void GenerateFast (MacroAssembler *masm)
 
void GenerateSlow (MacroAssembler *masm, const RuntimeCallHelper &call_helper)
 
void SkipSlow (MacroAssembler *masm, Label *bailout)
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (StringCharFromCodeGenerator)
 

Private Attributes

Register code_
 
Register result_
 
Label slow_case_
 
Label exit_
 

Detailed Description

Definition at line 1667 of file code-stubs.h.

Constructor & Destructor Documentation

◆ StringCharFromCodeGenerator()

v8::internal::StringCharFromCodeGenerator::StringCharFromCodeGenerator ( Register  code,
Register  result 
)
inline

Definition at line 1669 of file code-stubs.h.

1671  : code_(code),
1672  result_(result) {
1673  DCHECK(!code_.is(result_));
1674  }
#define DCHECK(condition)
Definition: logging.h:205
bool is(Register reg) const

References code_, DCHECK, v8::internal::Register::is(), and result_.

+ Here is the call graph for this function:

Member Function Documentation

◆ DISALLOW_COPY_AND_ASSIGN()

v8::internal::StringCharFromCodeGenerator::DISALLOW_COPY_AND_ASSIGN ( StringCharFromCodeGenerator  )
private

◆ GenerateFast()

void v8::internal::StringCharFromCodeGenerator::GenerateFast ( MacroAssembler masm)

Referenced by v8::internal::StringCharAtGenerator::GenerateFast().

+ Here is the caller graph for this function:

◆ GenerateSlow()

void v8::internal::StringCharFromCodeGenerator::GenerateSlow ( MacroAssembler masm,
const RuntimeCallHelper call_helper 
)

Referenced by v8::internal::StringCharAtGenerator::GenerateSlow().

+ Here is the caller graph for this function:

◆ SkipSlow()

void v8::internal::StringCharFromCodeGenerator::SkipSlow ( MacroAssembler masm,
Label *  bailout 
)
inline

Definition at line 1687 of file code-stubs.h.

1687  {
1688  masm->bind(&slow_case_);
1689  masm->jmp(bailout);
1690  }

References v8::internal::Assembler::bind(), v8::internal::MacroAssembler::jmp(), and slow_case_.

Referenced by v8::internal::StringCharAtGenerator::SkipSlow().

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

Member Data Documentation

◆ code_

Register v8::internal::StringCharFromCodeGenerator::code_
private

Definition at line 1693 of file code-stubs.h.

Referenced by StringCharFromCodeGenerator().

◆ exit_

Label v8::internal::StringCharFromCodeGenerator::exit_
private

Definition at line 1697 of file code-stubs.h.

◆ result_

Register v8::internal::StringCharFromCodeGenerator::result_
private

Definition at line 1694 of file code-stubs.h.

Referenced by StringCharFromCodeGenerator().

◆ slow_case_

Label v8::internal::StringCharFromCodeGenerator::slow_case_
private

Definition at line 1696 of file code-stubs.h.

Referenced by SkipSlow().


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