#include "test/unittests/compiler/backend/instruction-selector-unittest.h"
#include "src/codegen/code-factory.h"
#include "src/codegen/tick-counter.h"
#include "src/compiler/compiler-source-position-table.h"
#include "src/compiler/graph.h"
#include "src/compiler/schedule.h"
#include "src/flags/flags.h"
#include "src/objects/objects-inl.h"
#include "test/unittests/compiler/compiler-test-utils.h"
namespace v8 {
namespace internal {
namespace compiler {
InstructionSelectorTest::InstructionSelectorTest()
: … { … }
InstructionSelectorTest::~InstructionSelectorTest() = default;
InstructionSelectorTest::Stream InstructionSelectorTest::StreamBuilder::Build(
InstructionSelector::Features features,
InstructionSelectorTest::StreamBuilderMode mode,
InstructionSelector::SourcePositionMode source_position_mode) { … }
int InstructionSelectorTest::Stream::ToVreg(const Node* node) const { … }
bool InstructionSelectorTest::Stream::IsFixed(const InstructionOperand* operand,
Register reg) const { … }
bool InstructionSelectorTest::Stream::IsSameAsFirst(
const InstructionOperand* operand) const { … }
bool InstructionSelectorTest::Stream::IsSameAsInput(
const InstructionOperand* operand, int input_index) const { … }
bool InstructionSelectorTest::Stream::IsUsedAtStart(
const InstructionOperand* operand) const { … }
const FrameStateFunctionInfo*
InstructionSelectorTest::StreamBuilder::GetFrameStateFunctionInfo(
uint16_t parameter_count, int local_count) { … }
TARGET_TEST_F(InstructionSelectorTest, ReturnFloat32Constant) { … }
TARGET_TEST_F(InstructionSelectorTest, ReturnParameter) { … }
TARGET_TEST_F(InstructionSelectorTest, ReturnZero) { … }
TARGET_TEST_F(InstructionSelectorTest, TruncateFloat64ToWord32WithParameter) { … }
TARGET_TEST_F(InstructionSelectorTest, DoubleParameter) { … }
TARGET_TEST_F(InstructionSelectorTest, ReferenceParameter) { … }
TARGET_TEST_F(InstructionSelectorTest, FinishRegion) { … }
InstructionSelectorPhiTest;
TARGET_TEST_P(InstructionSelectorPhiTest, Doubleness) { … }
TARGET_TEST_P(InstructionSelectorPhiTest, Referenceness) { … }
INSTANTIATE_TEST_SUITE_P(…);
TARGET_TEST_F(InstructionSelectorTest, ValueEffect) { … }
TARGET_TEST_F(InstructionSelectorTest, CallJSFunctionWithDeopt) { … }
TARGET_TEST_F(InstructionSelectorTest, CallStubWithDeopt) { … }
TARGET_TEST_F(InstructionSelectorTest, CallStubWithDeoptRecursiveFrameState) { … }
}
}
}