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

Unified Diff: test/unittests/wasm/function-body-decoder-unittest.cc

Issue 2612643002: [wasm] simplify dependencies between graph builder and function decoder (Closed)
Patch Set: Created 3 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/wasm/wasm-run-utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/unittests/wasm/function-body-decoder-unittest.cc
diff --git a/test/unittests/wasm/function-body-decoder-unittest.cc b/test/unittests/wasm/function-body-decoder-unittest.cc
index 3653d074d65a840b0b837bb4e724d135360e5785..ffac2637f1eb3b15a96c7ebdc1e91c2b254a96af 100644
--- a/test/unittests/wasm/function-body-decoder-unittest.cc
+++ b/test/unittests/wasm/function-body-decoder-unittest.cc
@@ -110,8 +110,9 @@ class FunctionBodyDecoderTest : public TestWithZone {
const byte* end) {
local_decls.Prepend(zone(), &start, &end);
// Verify the code.
- DecodeResult result =
- VerifyWasmCode(zone()->allocator(), module, sig, start, end);
+ DecodeResult result = VerifyWasmCode(
+ zone()->allocator(), module == nullptr ? nullptr : module->module, sig,
+ start, end);
if (result.error_code != expected) {
ptrdiff_t pc = result.error_pc - result.start;
« no previous file with comments | « test/cctest/wasm/wasm-run-utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698