chromium/v8/test/unittests/interpreter/bytecodes-unittest.cc

// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "src/interpreter/bytecodes.h"

#include <vector>

#include "src/init/v8.h"
#include "src/interpreter/bytecode-flags-and-tokens.h"
#include "src/interpreter/bytecode-register.h"
#include "test/unittests/test-utils.h"

namespace v8 {
namespace internal {
namespace interpreter {

TEST(OperandConversion, Registers) {}

TEST(OperandConversion, Parameters) {}

TEST(OperandConversion, RegistersParametersNoOverlap) {}

TEST(OperandScaling, ScalableAndNonScalable) {}

TEST(Bytecodes, RegisterOperands) {}

TEST(Bytecodes, DebugBreakExistForEachBytecode) {}

TEST(Bytecodes, DebugBreakForPrefixBytecodes) {}

TEST(Bytecodes, PrefixMappings) {}

TEST(Bytecodes, ScaleForSignedOperand) {}

TEST(Bytecodes, ScaleForUnsignedOperands) {}

TEST(Bytecodes, SizesForUnsignedOperands) {}

// Helper macros to generate a check for if a bytecode is in a macro list of
// bytecodes. We can use these to exhaustively test a check over all bytecodes,
// both those that should pass and those that should fail the check.
#define OR_IS_BYTECODE
#define IN_BYTECODE_LIST

TEST(Bytecodes, IsJump) {}

TEST(Bytecodes, IsForwardJump) {}

TEST(Bytecodes, IsConditionalJump) {}

TEST(Bytecodes, IsUnconditionalJump) {}

TEST(Bytecodes, IsJumpImmediate) {}

TEST(Bytecodes, IsJumpConstant) {}

TEST(Bytecodes, IsConditionalJumpImmediate) {}

TEST(Bytecodes, IsConditionalJumpConstant) {}

TEST(Bytecodes, IsJumpIfToBoolean) {}

#undef OR_IS_BYTECODE
#undef IN_BYTECODE_LIST

TEST(OperandScale, PrefixesRequired) {}

TEST(ImplicitRegisterUse, LogicalOperators) {}

TEST(ImplicitRegisterUse, SampleBytecodes) {}

TEST(TypeOfLiteral, OnlyUndefinedGreaterThanU) {}

}  // namespace interpreter
}  // namespace internal
}  // namespace v8