diff options
Diffstat (limited to 'deps/v8/test/cctest/wasm/test-run-wasm-wrappers.cc')
-rw-r--r-- | deps/v8/test/cctest/wasm/test-run-wasm-wrappers.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/deps/v8/test/cctest/wasm/test-run-wasm-wrappers.cc b/deps/v8/test/cctest/wasm/test-run-wasm-wrappers.cc index fd6316c377..03f5c4ec6d 100644 --- a/deps/v8/test/cctest/wasm/test-run-wasm-wrappers.cc +++ b/deps/v8/test/cctest/wasm/test-run-wasm-wrappers.cc @@ -318,15 +318,17 @@ TEST(WrapperReplacement_IndirectExport) { CompileModule(&zone, isolate, builder); // Get the exported table. - Handle<WasmTableObject> table = handle( + Handle<WasmTableObject> table( WasmTableObject::cast(instance->tables().get(table_index)), isolate); // Get the Wasm function through the exported table. Handle<Object> function = WasmTableObject::Get(isolate, table, function_index); - Handle<WasmExportedFunction> indirect_function = - handle(WasmExportedFunction::cast(*function), isolate); + Handle<WasmExportedFunction> indirect_function( + WasmExportedFunction::cast( + WasmInternalFunction::cast(*function).external()), + isolate); // Get the function data. - Handle<WasmExportedFunctionData> indirect_function_data = handle( + Handle<WasmExportedFunctionData> indirect_function_data( indirect_function->shared().wasm_exported_function_data(), isolate); // Verify that the generic-wrapper budget has initially a value of |