#include "src/wasm/wasm-module-builder.h"
#include "src/wasm/wasm-objects-inl.h"
#include "test/cctest/cctest.h"
#include "test/common/wasm/flag-utils.h"
#include "test/common/wasm/test-signatures.h"
#include "test/common/wasm/wasm-macro-gen.h"
#include "test/common/wasm/wasm-module-runner.h"
namespace v8 {
namespace internal {
namespace wasm {
namespace test_run_wasm_wrappers {
CompileAndInstantiateForTesting;
#if V8_COMPRESS_POINTERS && \
(V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_IA32 || \
V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_LOONG64)
namespace {
Handle<WasmInstanceObject> CompileModule(Zone* zone, Isolate* isolate,
WasmModuleBuilder* builder) { … }
bool IsGeneric(Tagged<Code> wrapper) { … }
bool IsSpecific(Tagged<Code> wrapper) { … }
Handle<Object> SmiHandle(Isolate* isolate, int value) { … }
void SmiCall(Isolate* isolate, Handle<WasmExportedFunction> exported_function,
int argc, Handle<Object>* argv, int expected_result) { … }
void Cleanup() { … }
}
TEST(WrapperBudget) { … }
TEST(WrapperReplacement) { … }
TEST(EagerWrapperReplacement) { … }
TEST(WrapperReplacement_IndirectExport) { … }
#endif
}
}
}
}