v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
loop-unrolling-reducer.cc File Reference
Include dependency graph for loop-unrolling-reducer.cc:

Go to the source code of this file.

Namespaces

namespace  v8
 
namespace  v8::internal
 
namespace  v8::internal::compiler
 
namespace  v8::internal::compiler::turboshaft
 

Macros

#define TRACE(x)
 
#define CASE_ARITH(op)
 

Typedefs

using v8::internal::compiler::turboshaft::CmpOp = StaticCanonicalForLoopMatcher::CmpOp
 
using v8::internal::compiler::turboshaft::BinOp = StaticCanonicalForLoopMatcher::BinOp
 

Functions

std::ostream & v8::internal::compiler::turboshaft::operator<< (std::ostream &os, const IterationCount &count)
 
std::ostream & v8::internal::compiler::turboshaft::operator<< (std::ostream &os, const CmpOp &cmp)
 
std::ostream & v8::internal::compiler::turboshaft::operator<< (std::ostream &os, const BinOp &binop)
 

Macro Definition Documentation

◆ CASE_ARITH

#define CASE_ARITH ( op)
Value:
case BinOp::k##op: \
case BinOp::kOverflowChecked##op: { \
if (binop_rep == WordRepresentation::Word32()) { \
int32_t res; \
if (base::bits::Signed##op##Overflow32( \
static_cast<int32_t>(val), static_cast<int32_t>(incr), &res)) { \
return std::nullopt; \
} \
return static_cast<Int>(res); \
} else { \
DCHECK_EQ(binop_rep, WordRepresentation::Word64()); \
int64_t res; \
if (base::bits::Signed##op##Overflow64(val, incr, &res)) { \
return std::nullopt; \
} \
return static_cast<Int>(res); \
} \
}

◆ TRACE

#define TRACE ( x)

Definition at line 19 of file loop-unrolling-reducer.cc.