#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 { … };
#ifdef DEBUG
std::ostream& operator<<(std::ostream& out, const DebugSideTableEntry& entry) { … }
std::ostream& operator<<(std::ostream& out,
const std::vector<DebugSideTableEntry>& entries) { … }
#endif
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) { … }
}
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) { … }
}
}
}