#include <memory>
#include <string>
#include "include/v8-isolate.h"
#include "src/api/api-inl.h"
#include "src/flags/flags.h"
#include "src/wasm/streaming-decoder.h"
#include "src/wasm/wasm-engine.h"
#include "src/wasm/wasm-objects-inl.h"
#include "test/fuzzer/fuzzer-support.h"
#include "test/fuzzer/wasm-fuzzer-common.h"
namespace v8::internal::wasm::fuzzing {
struct CompilationResult { … };
class TestResolver : public CompilationResultResolver { … };
CompilationResult CompileStreaming(v8_fuzzer::FuzzerSupport* support,
WasmEnabledFeatures enabled_features,
base::Vector<const uint8_t> data,
uint8_t config) { … }
CompilationResult CompileSync(Isolate* isolate,
WasmEnabledFeatures enabled_features,
base::Vector<const uint8_t> data) { … }
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { … }
}