aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/fuzzer/wasm-code.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/fuzzer/wasm-code.cc')
-rw-r--r--deps/v8/test/fuzzer/wasm-code.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/deps/v8/test/fuzzer/wasm-code.cc b/deps/v8/test/fuzzer/wasm-code.cc
index c888dd823c..b97f96a302 100644
--- a/deps/v8/test/fuzzer/wasm-code.cc
+++ b/deps/v8/test/fuzzer/wasm-code.cc
@@ -21,9 +21,9 @@ namespace fuzzer {
class WasmCodeFuzzer : public WasmExecutionFuzzer {
bool GenerateModule(
Isolate* isolate, Zone* zone, Vector<const uint8_t> data,
- ZoneBuffer& buffer, int32_t& num_args,
- std::unique_ptr<WasmValue[]>& interpreter_args,
- std::unique_ptr<Handle<Object>[]>& compiler_args) override {
+ ZoneBuffer* buffer, int32_t* num_args,
+ std::unique_ptr<WasmValue[]>* interpreter_args,
+ std::unique_ptr<Handle<Object>[]>* compiler_args) override {
TestSignatures sigs;
WasmModuleBuilder builder(zone);
WasmFunctionBuilder* f = builder.AddFunction(sigs.i_iii());
@@ -34,13 +34,14 @@ class WasmCodeFuzzer : public WasmExecutionFuzzer {
builder.SetMaxMemorySize(32);
builder.WriteTo(buffer);
- num_args = 3;
- interpreter_args.reset(
+ *num_args = 3;
+ interpreter_args->reset(
new WasmValue[3]{WasmValue(1), WasmValue(2), WasmValue(3)});
- compiler_args.reset(new Handle<Object>[3]{
- handle(Smi::FromInt(1), isolate), handle(Smi::FromInt(2), isolate),
- handle(Smi::FromInt(3), isolate)});
+ compiler_args->reset(new Handle<Object>[3] {
+ handle(Smi::FromInt(1), isolate), handle(Smi::FromInt(2), isolate),
+ handle(Smi::FromInt(3), isolate)
+ });
return true;
}
};