c573bdebb5
This is a reland of bc8ad334cd
.
The CL was innocent, thus unmodified reland with TBR.
Original change's description:
> [wasm][debug] Report global scope also for compiled frames
>
> The global scope (containing global values and the memory) can be
> produced from the instance alone, hence we can also report it for
> compiled frames.
>
> R=mstarzinger@chromium.org, jgruber@chromium.org
>
> Bug: v8:9676
> Change-Id: I20fbb74a98b00b128b6ed305b92fb56ad7dc7558
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1876816
> Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
> Reviewed-by: Jakob Gruber <jgruber@chromium.org>
> Commit-Queue: Clemens Backes <clemensb@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#64547}
TBR=mstarzinger@chromium.org
Bug: v8:9676
Change-Id: I2486a007156b7197d523f62ca3c30e29e7650b63
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1879929
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64558}
337 lines
7.7 KiB
Plaintext
337 lines
7.7 KiB
Plaintext
Test retrieving scope information when pausing in wasm functions
|
|
Installing code and global variable.
|
|
Calling instantiate function.
|
|
Waiting for two wasm scripts to be parsed.
|
|
Got wasm script!
|
|
Got wasm script!
|
|
Setting breakpoint on line 2 (first instruction) of second function
|
|
{
|
|
columnNumber : 2
|
|
lineNumber : 2
|
|
scriptId : <scriptId>
|
|
}
|
|
Paused:
|
|
(local i32 i64 f64)
|
|
#i32.const 11
|
|
local.set 0
|
|
|
|
Scope:
|
|
at func (2:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "i32Arg": 4 (number), "local#1": 0 (number), "i64_local": 0 (number), "unicode☼f64": 0 (number)
|
|
stack:
|
|
at call_func (5:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
i32.const 11
|
|
#local.set 0
|
|
i32.const 47
|
|
|
|
Scope:
|
|
at func (3:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "i32Arg": 4 (number), "local#1": 0 (number), "i64_local": 0 (number), "unicode☼f64": 0 (number)
|
|
stack: "0": 11 (number)
|
|
at call_func (5:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
local.set 0
|
|
#i32.const 47
|
|
local.set 1
|
|
|
|
Scope:
|
|
at func (4:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "i32Arg": 11 (number), "local#1": 0 (number), "i64_local": 0 (number), "unicode☼f64": 0 (number)
|
|
stack:
|
|
at call_func (5:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
i32.const 47
|
|
#local.set 1
|
|
i64.const 9223372036854775807
|
|
|
|
Scope:
|
|
at func (5:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "i32Arg": 11 (number), "local#1": 0 (number), "i64_local": 0 (number), "unicode☼f64": 0 (number)
|
|
stack: "0": 47 (number)
|
|
at call_func (5:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
local.set 1
|
|
#i64.const 9223372036854775807
|
|
local.set 2
|
|
|
|
Scope:
|
|
at func (6:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "i32Arg": 11 (number), "local#1": 47 (number), "i64_local": 0 (number), "unicode☼f64": 0 (number)
|
|
stack:
|
|
at call_func (5:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
i64.const 9223372036854775807
|
|
#local.set 2
|
|
i64.const -9223372036854775808
|
|
|
|
Scope:
|
|
at func (7:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "i32Arg": 11 (number), "local#1": 47 (number), "i64_local": 0 (number), "unicode☼f64": 0 (number)
|
|
stack: "0": 9223372036854775807 (string)
|
|
at call_func (5:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
local.set 2
|
|
#i64.const -9223372036854775808
|
|
local.set 2
|
|
|
|
Scope:
|
|
at func (8:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "i32Arg": 11 (number), "local#1": 47 (number), "i64_local": 9223372036854775807 (string), "unicode☼f64": 0 (number)
|
|
stack:
|
|
at call_func (5:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
i64.const -9223372036854775808
|
|
#local.set 2
|
|
i32.const 1
|
|
|
|
Scope:
|
|
at func (9:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "i32Arg": 11 (number), "local#1": 47 (number), "i64_local": 9223372036854775807 (string), "unicode☼f64": 0 (number)
|
|
stack: "0": -9223372036854775808 (string)
|
|
at call_func (5:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
local.set 2
|
|
#i32.const 1
|
|
f64.convert_i32_u
|
|
|
|
Scope:
|
|
at func (10:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "i32Arg": 11 (number), "local#1": 47 (number), "i64_local": -9223372036854775808 (string), "unicode☼f64": 0 (number)
|
|
stack:
|
|
at call_func (5:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
i32.const 1
|
|
#f64.convert_i32_u
|
|
i32.const 7
|
|
|
|
Scope:
|
|
at func (11:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "i32Arg": 11 (number), "local#1": 47 (number), "i64_local": -9223372036854775808 (string), "unicode☼f64": 0 (number)
|
|
stack: "0": 1 (number)
|
|
at call_func (5:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
f64.convert_i32_u
|
|
#i32.const 7
|
|
f64.convert_i32_u
|
|
|
|
Scope:
|
|
at func (12:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "i32Arg": 11 (number), "local#1": 47 (number), "i64_local": -9223372036854775808 (string), "unicode☼f64": 0 (number)
|
|
stack: "0": 1 (number)
|
|
at call_func (5:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
i32.const 7
|
|
#f64.convert_i32_u
|
|
f64.div
|
|
|
|
Scope:
|
|
at func (13:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "i32Arg": 11 (number), "local#1": 47 (number), "i64_local": -9223372036854775808 (string), "unicode☼f64": 0 (number)
|
|
stack: "0": 1 (number), "1": 7 (number)
|
|
at call_func (5:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
f64.convert_i32_u
|
|
#f64.div
|
|
local.set 3
|
|
|
|
Scope:
|
|
at func (14:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "i32Arg": 11 (number), "local#1": 47 (number), "i64_local": -9223372036854775808 (string), "unicode☼f64": 0 (number)
|
|
stack: "0": 1 (number), "1": 7 (number)
|
|
at call_func (5:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
f64.div
|
|
#local.set 3
|
|
i32.const 15
|
|
|
|
Scope:
|
|
at func (15:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "i32Arg": 11 (number), "local#1": 47 (number), "i64_local": -9223372036854775808 (string), "unicode☼f64": 0 (number)
|
|
stack: "0": 0.14285714285714285 (number)
|
|
at call_func (5:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
local.set 3
|
|
#i32.const 15
|
|
global.set 0
|
|
|
|
Scope:
|
|
at func (16:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "i32Arg": 11 (number), "local#1": 47 (number), "i64_local": -9223372036854775808 (string), "unicode☼f64": 0.14285714285714285 (number)
|
|
stack:
|
|
at call_func (5:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
i32.const 15
|
|
#global.set 0
|
|
end
|
|
|
|
Scope:
|
|
at func (17:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
- scope (local):
|
|
locals: "i32Arg": 11 (number), "local#1": 47 (number), "i64_local": -9223372036854775808 (string), "unicode☼f64": 0.14285714285714285 (number)
|
|
stack: "0": 15 (number)
|
|
at call_func (5:2):
|
|
- scope (global):
|
|
globals: "global#0": 0 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
Paused:
|
|
global.set 0
|
|
#end
|
|
|
|
|
|
Scope:
|
|
at func (18:0):
|
|
- scope (global):
|
|
globals: "global#0": 15 (number)
|
|
- scope (local):
|
|
locals: "i32Arg": 11 (number), "local#1": 47 (number), "i64_local": -9223372036854775808 (string), "unicode☼f64": 0.14285714285714285 (number)
|
|
stack:
|
|
at call_func (5:2):
|
|
- scope (global):
|
|
globals: "global#0": 15 (number)
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped globals
|
|
|
|
exports.main returned. Test finished.
|