6a6f5de1a7
The StructProxy::Create() used the static type information to inspect the value. However, for abstract references like anyref, dataref, ... this does not contain the required struct_index. To fix this the WasmTypeInfo stores the type_index for structs and arrays. Bug: v8:7748 Change-Id: I6e1af054711ada5e12c08949c125007e8185e486 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3850296 Commit-Queue: Matthias Liedtke <mliedtke@chromium.org> Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Cr-Commit-Position: refs/heads/main@{#82691}
32 lines
703 B
Plaintext
32 lines
703 B
Plaintext
Test inspection of Wasm anyref objects
|
|
|
|
Running test: test
|
|
Calling instantiate function.
|
|
Waiting for wasm script to be parsed.
|
|
Got wasm script!
|
|
Setting breakpoint
|
|
Module instantiated.
|
|
{
|
|
columnNumber : 61
|
|
lineNumber : 0
|
|
scriptId : <scriptId>
|
|
}
|
|
Paused:
|
|
Script wasm://wasm/f6eebe1a byte offset 61: Wasm opcode 0x01 (kExprNop)
|
|
Scope:
|
|
at $main (0:61):
|
|
- scope (wasm-expression-stack):
|
|
stack:
|
|
- scope (local):
|
|
$anyref_local: Struct (anyref)
|
|
$anyref_local2: Array (anyref)
|
|
- scope (module):
|
|
instance: exports: "main" (Function)
|
|
module: Module
|
|
functions: "$main": (Function)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
exports.main returned. Test finished.
|