#include "test/fuzzer/fuzzer-support.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "include/libplatform/libplatform.h"
#include "include/v8-context.h"
#include "include/v8-initialization.h"
#include "src/flags/flags.h"
#include "src/trap-handler/trap-handler.h"
namespace v8_fuzzer {
FuzzerSupport::FuzzerSupport(int* argc, char*** argv) { … }
FuzzerSupport::~FuzzerSupport() { … }
std::unique_ptr<FuzzerSupport> FuzzerSupport::fuzzer_support_;
void FuzzerSupport::InitializeFuzzerSupport(int* argc, char*** argv) { … }
FuzzerSupport* FuzzerSupport::Get() { … }
v8::Local<v8::Context> FuzzerSupport::GetContext() { … }
bool FuzzerSupport::PumpMessageLoop(
v8::platform::MessageLoopBehavior behavior) { … }
}
#if V8_OS_DARWIN
__attribute__((used)) __attribute__((visibility("default")))
#endif
extern "C" int
LLVMFuzzerInitialize(int* argc, char*** argv) { … }