Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: test/fuzzer/wasm-section-fuzzers.cc

Issue 2424623002: [wasm] Use a Managed<WasmModule> to hold metadata about modules. (Closed)
Patch Set: [wasm] Use a Managed<WasmModule> to hold metadata about modules. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/fuzzer/wasm-code.cc ('k') | test/mjsunit/regress/wasm/regression-02256b.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « test/fuzzer/wasm-code.cc ('k') | test/mjsunit/regress/wasm/regression-02256b.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698