#include "test/wasm-api-tests/wasm-api-test.h"
#include "src/execution/isolate.h"
#include "src/heap/heap.h"
#include "src/wasm/c-api.h"
namespace v8 {
namespace internal {
namespace wasm {
namespace {
own<Trap> Stage2(void* env, const Val args[], Val results[]) { … }
own<Trap> Stage4_GC(void* env, const Val args[], Val results[]) { … }
class WasmCapiCallbacksTest : public WasmCapiTest { … };
}
TEST_F(WasmCapiCallbacksTest, Trap) { … }
TEST_F(WasmCapiCallbacksTest, GC) { … }
namespace {
own<Trap> FibonacciC(void* env, const Val args[], Val results[]) { … }
}
TEST_F(WasmCapiTest, Recursion) { … }
namespace {
own<Trap> PlusOne(const Val args[], Val results[]) { … }
own<Trap> PlusOneWithManyArgs(const Val args[], Val results[]) { … }
}
TEST_F(WasmCapiTest, DirectCallCapiFunction) { … }
TEST_F(WasmCapiTest, DirectCallCapiFunctionWithManyArgs) { … }
}
}
}