#include "src/api/api-inl.h"
#include "src/wasm/wasm-module-builder.h"
#include "src/wasm/wasm-objects-inl.h"
#include "src/wasm/wasm-objects.h"
#include "test/cctest/cctest.h"
#include "test/cctest/heap/heap-utils.h"
#include "test/common/wasm/wasm-module-runner.h"
namespace v8 {
namespace internal {
namespace wasm {
namespace {
enum TestValue { … };
constexpr int kNumTestValues = …;
const char* TestValueName[kNumTestValues] = …;
const TestValue AllTestValues[kNumTestValues] = …;
const bool ExpectedResults[kNumTestValues][kNumTestValues] = …;
bool TrueCallback(Local<v8::Context>, Local<v8::String>) { … }
bool FalseCallback(Local<v8::Context>, Local<v8::String>) { … }
CallbackFn;
CallbackFn Callback[kNumTestValues] = …;
void BuildTrivialModule(Zone* zone, ZoneBuffer* buffer) { … }
bool TestModule(Isolate* isolate, v8::MemorySpan<const uint8_t> wire_bytes) { … }
}
TEST(PropertiesOfCodegenCallbacks) { … }
TEST(WasmModuleObjectCompileFailure) { … }
}
}
}