#include <stdlib.h>
#include <string.h>
#include <atomic>
#include "src/api/api-inl.h"
#include "src/objects/objects-inl.h"
#include "src/snapshot/code-serializer.h"
#include "src/utils/version.h"
#include "src/wasm/module-decoder.h"
#include "src/wasm/wasm-engine.h"
#include "src/wasm/wasm-module-builder.h"
#include "src/wasm/wasm-module.h"
#include "src/wasm/wasm-objects-inl.h"
#include "src/wasm/wasm-opcodes.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_module {
ReadLittleEndianValue;
WriteLittleEndianValue;
CompileAndInstantiateForTesting;
namespace {
void Cleanup(Isolate* isolate = CcTest::InitIsolateOnce()) { … }
void TestModule(Zone* zone, WasmModuleBuilder* builder,
int32_t expected_result) { … }
void TestModuleException(Zone* zone, WasmModuleBuilder* builder) { … }
void ExportAsMain(WasmFunctionBuilder* f) { … }
#define EMIT_CODE_WITH_END …
}
TEST(Run_WasmModule_Return114) { … }
TEST(Run_WasmModule_CompilationHintsLazy) { … }
TEST(Run_WasmModule_CompilationHintsNoTiering) { … }
TEST(Run_WasmModule_CompilationHintsTierUp) { … }
TEST(Run_WasmModule_CompilationHintsLazyBaselineEagerTopTier) { … }
TEST(Run_WasmModule_CallAdd) { … }
TEST(Run_WasmModule_ReadLoadedDataSegment) { … }
TEST(Run_WasmModule_CheckMemoryIsZero) { … }
TEST(Run_WasmModule_CallMain_recursive) { … }
TEST(Run_WasmModule_Global) { … }
TEST(MemorySize) { … }
TEST(Run_WasmModule_MemSize_GrowMem) { … }
TEST(MemoryGrowZero) { … }
class InterruptThread : public v8::base::Thread { … };
TEST(TestInterruptLoop) { … }
TEST(Run_WasmModule_MemoryGrowInIf) { … }
TEST(Run_WasmModule_GrowMemOobOffset) { … }
TEST(Run_WasmModule_GrowMemOobFixedIndex) { … }
TEST(Run_WasmModule_GrowMemOobVariableIndex) { … }
TEST(Run_WasmModule_Global_init) { … }
template <typename CType>
static void RunWasmModuleGlobalInitTest(ValueType type, CType expected) { … }
TEST(Run_WasmModule_Global_i32) { … }
TEST(Run_WasmModule_Global_f32) { … }
TEST(Run_WasmModule_Global_f64) { … }
TEST(InitDataAtTheUpperLimit) { … }
TEST(EmptyMemoryNonEmptyDataSegment) { … }
TEST(EmptyMemoryEmptyDataSegment) { … }
#undef EMIT_CODE_WITH_END
}
}
}
}