v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::compiler::ScaleMatcher< BinopMatcher, kMulOpcode, kShiftOpcode > Struct Template Reference

#include <node-matchers.h>

Collaboration diagram for v8::internal::compiler::ScaleMatcher< BinopMatcher, kMulOpcode, kShiftOpcode >:

Public Member Functions

 ScaleMatcher (Node *node, bool allow_power_of_two_plus_one=false)
 
bool matches () const
 
int scale () const
 
bool power_of_two_plus_one () const
 

Private Attributes

int scale_
 
bool power_of_two_plus_one_
 

Detailed Description

template<class BinopMatcher, IrOpcode::Value kMulOpcode, IrOpcode::Value kShiftOpcode>
struct v8::internal::compiler::ScaleMatcher< BinopMatcher, kMulOpcode, kShiftOpcode >

Definition at line 366 of file node-matchers.h.

Constructor & Destructor Documentation

◆ ScaleMatcher()

template<class BinopMatcher , IrOpcode::Value kMulOpcode, IrOpcode::Value kShiftOpcode>
v8::internal::compiler::ScaleMatcher< BinopMatcher, kMulOpcode, kShiftOpcode >::ScaleMatcher ( Node * node,
bool allow_power_of_two_plus_one = false )
inlineexplicit

Definition at line 367 of file node-matchers.h.

Member Function Documentation

◆ matches()

template<class BinopMatcher , IrOpcode::Value kMulOpcode, IrOpcode::Value kShiftOpcode>
bool v8::internal::compiler::ScaleMatcher< BinopMatcher, kMulOpcode, kShiftOpcode >::matches ( ) const
inline

Definition at line 407 of file node-matchers.h.

Here is the caller graph for this function:

◆ power_of_two_plus_one()

template<class BinopMatcher , IrOpcode::Value kMulOpcode, IrOpcode::Value kShiftOpcode>
bool v8::internal::compiler::ScaleMatcher< BinopMatcher, kMulOpcode, kShiftOpcode >::power_of_two_plus_one ( ) const
inline

Definition at line 409 of file node-matchers.h.

Here is the caller graph for this function:

◆ scale()

template<class BinopMatcher , IrOpcode::Value kMulOpcode, IrOpcode::Value kShiftOpcode>
int v8::internal::compiler::ScaleMatcher< BinopMatcher, kMulOpcode, kShiftOpcode >::scale ( ) const
inline

Definition at line 408 of file node-matchers.h.

Here is the caller graph for this function:

Member Data Documentation

◆ power_of_two_plus_one_

template<class BinopMatcher , IrOpcode::Value kMulOpcode, IrOpcode::Value kShiftOpcode>
bool v8::internal::compiler::ScaleMatcher< BinopMatcher, kMulOpcode, kShiftOpcode >::power_of_two_plus_one_
private

Definition at line 413 of file node-matchers.h.

◆ scale_

template<class BinopMatcher , IrOpcode::Value kMulOpcode, IrOpcode::Value kShiftOpcode>
int v8::internal::compiler::ScaleMatcher< BinopMatcher, kMulOpcode, kShiftOpcode >::scale_
private

Definition at line 412 of file node-matchers.h.


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