OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "test/fuzzer/wasm-section-fuzzers.h" | 5 #include "test/fuzzer/wasm-section-fuzzers.h" |
6 | 6 |
7 #include "include/v8.h" | 7 #include "include/v8.h" |
8 #include "src/isolate.h" | 8 #include "src/isolate.h" |
9 #include "src/wasm/wasm-module-builder.h" | 9 #include "src/wasm/wasm-module-builder.h" |
10 #include "src/wasm/wasm-module.h" | 10 #include "src/wasm/wasm-module.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 buffer.write(data, size); | 50 buffer.write(data, size); |
51 } else { | 51 } else { |
52 buffer.write_u8(section); | 52 buffer.write_u8(section); |
53 buffer.write_size(size); | 53 buffer.write_size(size); |
54 buffer.write(data, size); | 54 buffer.write(data, size); |
55 } | 55 } |
56 | 56 |
57 ErrorThrower thrower(i_isolate, "decoder"); | 57 ErrorThrower thrower(i_isolate, "decoder"); |
58 | 58 |
59 std::unique_ptr<const WasmModule> module(testing::DecodeWasmModuleForTesting( | 59 std::unique_ptr<const WasmModule> module(testing::DecodeWasmModuleForTesting( |
60 i_isolate, &zone, &thrower, buffer.begin(), buffer.end(), kWasmOrigin)); | 60 i_isolate, &thrower, buffer.begin(), buffer.end(), kWasmOrigin)); |
61 | 61 |
62 return 0; | 62 return 0; |
63 } | 63 } |
OLD | NEW |