diff options
Diffstat (limited to 'deps/v8/test/cctest/wasm/wasm-run-utils.h')
-rw-r--r-- | deps/v8/test/cctest/wasm/wasm-run-utils.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/deps/v8/test/cctest/wasm/wasm-run-utils.h b/deps/v8/test/cctest/wasm/wasm-run-utils.h index c02e1b5d70..5c64c2f468 100644 --- a/deps/v8/test/cctest/wasm/wasm-run-utils.h +++ b/deps/v8/test/cctest/wasm/wasm-run-utils.h @@ -120,8 +120,8 @@ class TestingModuleBuilder { } byte AddSignature(const FunctionSig* sig) { - // TODO(7748): This will need updating for struct/array types support. - DCHECK_EQ(test_module_->types.size(), test_module_->signature_ids.size()); + DCHECK_EQ(test_module_->types.size(), + test_module_->canonicalized_type_ids.size()); test_module_->add_signature(sig); size_t size = test_module_->types.size(); CHECK_GT(127, size); @@ -201,7 +201,8 @@ class TestingModuleBuilder { // If function_indexes is {nullptr}, the contents of the table will be // initialized with null functions. void AddIndirectFunctionTable(const uint16_t* function_indexes, - uint32_t table_size); + uint32_t table_size, + ValueType table_type = kWasmFuncRef); uint32_t AddBytes(Vector<const byte> bytes); |