chromium/v8/test/cctest/wasm/test-liftoff-inspection.cc

// Copyright 2019 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/wasm/baseline/liftoff-compiler.h"
#include "src/wasm/compilation-environment-inl.h"
#include "src/wasm/wasm-debug.h"
#include "test/cctest/cctest.h"
#include "test/cctest/wasm/wasm-run-utils.h"
#include "test/common/wasm/test-signatures.h"
#include "test/common/wasm/wasm-macro-gen.h"

namespace v8 {
namespace internal {
namespace wasm {

namespace {

class LiftoffCompileEnvironment {};

struct DebugSideTableEntry {};

// Debug builds will print the vector of DebugSideTableEntry.
#ifdef DEBUG
std::ostream& operator<<(std::ostream& out, const DebugSideTableEntry& entry) {}

std::ostream& operator<<(std::ostream& out,
                         const std::vector<DebugSideTableEntry>& entries) {}
#endif  // DEBUG

// Named constructors to make the tests more readable.
DebugSideTable::Entry::Value Constant(int index, ValueType type,
                                      int32_t constant) {}
DebugSideTable::Entry::Value Register(int index, ValueType type) {}
DebugSideTable::Entry::Value Stack(int index, ValueType type) {}

void CheckDebugSideTable(std::vector<DebugSideTableEntry> expected_entries,
                         const wasm::DebugSideTable* debug_side_table) {}

}  // namespace

TEST(Liftoff_deterministic_simple) {}

TEST(Liftoff_deterministic_call) {}

TEST(Liftoff_deterministic_indirect_call) {}

TEST(Liftoff_deterministic_loop) {}

TEST(Liftoff_deterministic_trap) {}

TEST(Liftoff_debug_side_table_simple) {}

TEST(Liftoff_debug_side_table_call) {}

TEST(Liftoff_debug_side_table_call_const) {}

TEST(Liftoff_debug_side_table_indirect_call) {}

TEST(Liftoff_debug_side_table_loop) {}

TEST(Liftoff_debug_side_table_trap) {}

TEST(Liftoff_breakpoint_simple) {}

TEST(Liftoff_debug_side_table_catch_all) {}

TEST(Regress1199526) {}

}  // namespace wasm
}  // namespace internal
}  // namespace v8