4d69c548fd
This fixes local names that are the string representation of a valid element index. Even though both the Liftoff and the interpreter-based test are changed, only the latter needs to be fixed right now since Liftoff does not use the names currently. Modifying the test just ensures that we implement this correctly once we use the name. R=jkummerow@chromium.org Bug: v8:10019 Change-Id: Ib7f7d6e244a344a85ab540b6c2c67f98b1f3078e Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1998079 Commit-Queue: Clemens Backes <clemensb@chromium.org> Reviewed-by: Jakob Kummerow <jkummerow@chromium.org> Cr-Commit-Position: refs/heads/master@{#65751}
146 lines
3.9 KiB
Plaintext
146 lines
3.9 KiB
Plaintext
Test retrieving scope information from compiled Liftoff frames
|
|
Installing instantiate code.
|
|
Waiting for wasm script to be parsed.
|
|
Calling instantiate function.
|
|
Got wasm script!
|
|
Setting breakpoint on line 2 (first instruction) of third function
|
|
{
|
|
columnNumber : 85
|
|
lineNumber : 0
|
|
scriptId : <scriptId>
|
|
}
|
|
Paused:
|
|
Script wasm://wasm/a094dcfe byte offset 85: Wasm opcode 0x20
|
|
Scope:
|
|
at C (interpreted) (0:85):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "i32_arg": 42 (number), "i32_local": 0 (number)
|
|
stack:
|
|
at B (liftoff) (0:76):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "arg#0": 0 (number), "local#1": 0 (number), "local#2": 0 (number), "local#3": 0 (number), "local#4": 0 (number)
|
|
stack: "0": 0 (number), "1": 3 (number)
|
|
at A (liftoff) (0:54):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "arg#0": 0 (number)
|
|
stack:
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/a094dcfe byte offset 87: Wasm opcode 0x24
|
|
Scope:
|
|
at C (interpreted) (0:87):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "i32_arg": 42 (number), "i32_local": 0 (number)
|
|
stack: "0": 42 (number)
|
|
at B (liftoff) (0:76):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "arg#0": 0 (number), "local#1": 0 (number), "local#2": 0 (number), "local#3": 0 (number), "local#4": 0 (number)
|
|
stack: "0": 0 (number), "1": 3 (number)
|
|
at A (liftoff) (0:54):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "arg#0": 0 (number)
|
|
stack:
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/a094dcfe byte offset 89: Wasm opcode 0x41
|
|
Scope:
|
|
at C (interpreted) (0:89):
|
|
- scope (global):
|
|
globals: "global#0": 42 (number)
|
|
- scope (local):
|
|
locals: "i32_arg": 42 (number), "i32_local": 0 (number)
|
|
stack:
|
|
at B (liftoff) (0:76):
|
|
- scope (global):
|
|
globals: "global#0": 42 (number)
|
|
- scope (local):
|
|
locals: "arg#0": 0 (number), "local#1": 0 (number), "local#2": 0 (number), "local#3": 0 (number), "local#4": 0 (number)
|
|
stack: "0": 0 (number), "1": 3 (number)
|
|
at A (liftoff) (0:54):
|
|
- scope (global):
|
|
globals: "global#0": 42 (number)
|
|
- scope (local):
|
|
locals: "arg#0": 0 (number)
|
|
stack:
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/a094dcfe byte offset 91: Wasm opcode 0x21
|
|
Scope:
|
|
at C (interpreted) (0:91):
|
|
- scope (global):
|
|
globals: "global#0": 42 (number)
|
|
- scope (local):
|
|
locals: "i32_arg": 42 (number), "i32_local": 0 (number)
|
|
stack: "0": 47 (number)
|
|
at B (liftoff) (0:76):
|
|
- scope (global):
|
|
globals: "global#0": 42 (number)
|
|
- scope (local):
|
|
locals: "arg#0": 0 (number), "local#1": 0 (number), "local#2": 0 (number), "local#3": 0 (number), "local#4": 0 (number)
|
|
stack: "0": 0 (number), "1": 3 (number)
|
|
at A (liftoff) (0:54):
|
|
- scope (global):
|
|
globals: "global#0": 42 (number)
|
|
- scope (local):
|
|
locals: "arg#0": 0 (number)
|
|
stack:
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
Script wasm://wasm/a094dcfe byte offset 93: Wasm opcode 0xb
|
|
Scope:
|
|
at C (interpreted) (0:93):
|
|
- scope (global):
|
|
globals: "global#0": 42 (number)
|
|
- scope (local):
|
|
locals: "i32_arg": 42 (number), "i32_local": 47 (number)
|
|
stack:
|
|
at B (liftoff) (0:76):
|
|
- scope (global):
|
|
globals: "global#0": 42 (number)
|
|
- scope (local):
|
|
locals: "arg#0": 0 (number), "local#1": 0 (number), "local#2": 0 (number), "local#3": 0 (number), "local#4": 0 (number)
|
|
stack: "0": 0 (number), "1": 3 (number)
|
|
at A (liftoff) (0:54):
|
|
- scope (global):
|
|
globals: "global#0": 42 (number)
|
|
- scope (local):
|
|
locals: "arg#0": 0 (number)
|
|
stack:
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
instance.exports.main(42)#
|
|
|
|
Scope:
|
|
at (anonymous) (0:25):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
exports.main returned. Test finished.
|