#include "src/compiler/opcodes.h"
#include "testing/gtest-support.h"
namespace v8 {
namespace internal {
namespace compiler {
namespace {
bool IsCommonOpcode(IrOpcode::Value opcode) { … }
bool IsControlOpcode(IrOpcode::Value opcode) { … }
bool IsJsOpcode(IrOpcode::Value opcode) { … }
bool IsConstantOpcode(IrOpcode::Value opcode) { … }
bool IsComparisonOpcode(IrOpcode::Value opcode) { … }
char const* const kMnemonics[] = …;
const IrOpcode::Value kOpcodes[] = …;
}
TEST(IrOpcodeTest, IsCommonOpcode) { … }
TEST(IrOpcodeTest, IsControlOpcode) { … }
TEST(IrOpcodeTest, IsJsOpcode) { … }
TEST(IrOpcodeTest, IsConstantOpcode) { … }
TEST(IrOpcodeTest, IsComparisonOpcode) { … }
TEST(IrOpcodeTest, Mnemonic) { … }
}
}
}