v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::compiler::JSGraphAssembler::IfBuilder1< T, Cond > Class Template Reference

#include <graph-assembler.h>

Collaboration diagram for v8::internal::compiler::JSGraphAssembler::IfBuilder1< T, Cond >:

Public Member Functions

 IfBuilder1 (JSGraphAssembler *gasm, TNode< Cond > cond, bool negate_cond)
 
V8_WARN_UNUSED_RESULT IfBuilder1ExpectTrue ()
 
V8_WARN_UNUSED_RESULT IfBuilder1ExpectFalse ()
 
V8_WARN_UNUSED_RESULT IfBuilder1Then (const If1BodyFunction &body)
 
V8_WARN_UNUSED_RESULT IfBuilder1Else (const If1BodyFunction &body)
 
V8_WARN_UNUSED_RESULT TNode< TValue ()
 

Private Types

using If1BodyFunction = std::function<TNode<T>()>
 

Private Attributes

JSGraphAssembler *const gasm_
 
const TNode< Cond > cond_
 
const bool negate_cond_
 
BranchHint hint_ = BranchHint::kNone
 
If1BodyFunction then_body_
 
If1BodyFunction else_body_
 

Static Private Attributes

static constexpr MachineRepresentation kPhiRepresentation
 

Detailed Description

template<typename T, typename Cond>
class v8::internal::compiler::JSGraphAssembler::IfBuilder1< T, Cond >

Definition at line 1325 of file graph-assembler.h.

Member Typedef Documentation

◆ If1BodyFunction

template<typename T , typename Cond >
using v8::internal::compiler::JSGraphAssembler::IfBuilder1< T, Cond >::If1BodyFunction = std::function<TNode<T>()>
private

Definition at line 1326 of file graph-assembler.h.

Constructor & Destructor Documentation

◆ IfBuilder1()

template<typename T , typename Cond >
v8::internal::compiler::JSGraphAssembler::IfBuilder1< T, Cond >::IfBuilder1 ( JSGraphAssembler * gasm,
TNode< Cond > cond,
bool negate_cond )
inline

Definition at line 1329 of file graph-assembler.h.

Member Function Documentation

◆ Else()

template<typename T , typename Cond >
V8_WARN_UNUSED_RESULT IfBuilder1 & v8::internal::compiler::JSGraphAssembler::IfBuilder1< T, Cond >::Else ( const If1BodyFunction & body)
inline

Definition at line 1348 of file graph-assembler.h.

◆ ExpectFalse()

template<typename T , typename Cond >
V8_WARN_UNUSED_RESULT IfBuilder1 & v8::internal::compiler::JSGraphAssembler::IfBuilder1< T, Cond >::ExpectFalse ( )
inline

Definition at line 1338 of file graph-assembler.h.

◆ ExpectTrue()

template<typename T , typename Cond >
V8_WARN_UNUSED_RESULT IfBuilder1 & v8::internal::compiler::JSGraphAssembler::IfBuilder1< T, Cond >::ExpectTrue ( )
inline

Definition at line 1332 of file graph-assembler.h.

◆ Then()

template<typename T , typename Cond >
V8_WARN_UNUSED_RESULT IfBuilder1 & v8::internal::compiler::JSGraphAssembler::IfBuilder1< T, Cond >::Then ( const If1BodyFunction & body)
inline

Definition at line 1344 of file graph-assembler.h.

◆ Value()

template<typename T , typename Cond >
V8_WARN_UNUSED_RESULT TNode< T > v8::internal::compiler::JSGraphAssembler::IfBuilder1< T, Cond >::Value ( )
inline

Definition at line 1353 of file graph-assembler.h.

Member Data Documentation

◆ cond_

template<typename T , typename Cond >
const TNode<Cond> v8::internal::compiler::JSGraphAssembler::IfBuilder1< T, Cond >::cond_
private

Definition at line 1394 of file graph-assembler.h.

◆ else_body_

template<typename T , typename Cond >
If1BodyFunction v8::internal::compiler::JSGraphAssembler::IfBuilder1< T, Cond >::else_body_
private

Definition at line 1398 of file graph-assembler.h.

◆ gasm_

template<typename T , typename Cond >
JSGraphAssembler* const v8::internal::compiler::JSGraphAssembler::IfBuilder1< T, Cond >::gasm_
private

Definition at line 1393 of file graph-assembler.h.

◆ hint_

template<typename T , typename Cond >
BranchHint v8::internal::compiler::JSGraphAssembler::IfBuilder1< T, Cond >::hint_ = BranchHint::kNone
private

Definition at line 1396 of file graph-assembler.h.

◆ kPhiRepresentation

template<typename T , typename Cond >
MachineRepresentation v8::internal::compiler::JSGraphAssembler::IfBuilder1< T, Cond >::kPhiRepresentation
staticconstexprprivate

◆ negate_cond_

template<typename T , typename Cond >
const bool v8::internal::compiler::JSGraphAssembler::IfBuilder1< T, Cond >::negate_cond_
private

Definition at line 1395 of file graph-assembler.h.

◆ then_body_

template<typename T , typename Cond >
If1BodyFunction v8::internal::compiler::JSGraphAssembler::IfBuilder1< T, Cond >::then_body_
private

Definition at line 1397 of file graph-assembler.h.


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