chromium/v8/test/cctest/wasm/test-run-wasm-exceptions.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 "include/v8-function.h"
#include "src/api/api-inl.h"
#include "test/cctest/wasm/wasm-atomics-utils.h"
#include "test/common/wasm/test-signatures.h"
#include "test/common/wasm/wasm-macro-gen.h"

namespace v8::internal::wasm {

WASM_EXEC_TEST(TryCatchThrow) {}

WASM_EXEC_TEST(TryCatchThrowWithValue) {}

WASM_EXEC_TEST(TryMultiCatchThrow) {}

WASM_EXEC_TEST(TryCatchAllThrow) {}

WASM_EXEC_TEST(TryCatchCatchAllThrow) {}

WASM_EXEC_TEST(TryImplicitRethrow) {}

WASM_EXEC_TEST(TryDelegate) {}

WASM_EXEC_TEST(TestCatchlessTry) {}

WASM_EXEC_TEST(TryCatchRethrow) {}

WASM_EXEC_TEST(TryDelegateToCaller) {}

WASM_EXEC_TEST(TryCatchCallDirect) {}

WASM_EXEC_TEST(TryCatchAllCallDirect) {}

WASM_EXEC_TEST(TryCatchCallIndirect) {}

WASM_EXEC_TEST(TryCatchAllCallIndirect) {}

WASM_COMPILED_EXEC_TEST(TryCatchCallExternal) {}

WASM_COMPILED_EXEC_TEST(TryCatchAllCallExternal) {}

namespace {

void TestTrapNotCaught(uint8_t* code, size_t code_size,
                       TestExecutionTier execution_tier) {}

}  // namespace

WASM_EXEC_TEST(TryCatchTrapUnreachable) {}

WASM_EXEC_TEST(TryCatchTrapMemOutOfBounds) {}

WASM_EXEC_TEST(TryCatchTrapDivByZero) {}

WASM_EXEC_TEST(TryCatchTrapRemByZero) {}

WASM_EXEC_TEST(TryCatchTrapTableFill) {}

namespace {
// TODO(cleanup): Define in cctest.h and re-use where appropriate.
class IsolateScope {};
}  // namespace

UNINITIALIZED_WASM_EXEC_TEST(TestStackOverflowNotCaught) {}

}  // namespace v8::internal::wasm