b50dea24b1
Currently, when debugging wasm, the internal script URL is shown, which has the form wasm://wasm/wasm-<hex-script-id>. With this change, if the module specifies a module name, it would report the URL as wasm://wasm/<module-name>-<hex-script-id>, as this will help the user identify what they are debugging. Bug: chromium:1017678 Change-Id: I26ff6249bd1e832d62402619a68b61c115c24640 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1888810 Commit-Queue: Z Nguyen-Huu <duongn@microsoft.com> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Reviewed-by: Clemens Backes <clemensb@chromium.org> Cr-Commit-Position: refs/heads/master@{#64703}
73 lines
4.7 KiB
Plaintext
73 lines
4.7 KiB
Plaintext
Tests how wasm scripts are reported
|
|
Check that each inspector gets two wasm scripts at module creation time.
|
|
Session #1: Script #0 parsed. URL: wasm://wasm/f608ae1e/f608ae1e-0. Source map URL:
|
|
Session #1: Script #1 parsed. URL: wasm://wasm/f608ae1e/f608ae1e-1. Source map URL:
|
|
Session #2: Script #0 parsed. URL: wasm://wasm/f608ae1e/f608ae1e-0. Source map URL:
|
|
Session #2: Script #1 parsed. URL: wasm://wasm/f608ae1e/f608ae1e-1. Source map URL:
|
|
Session #1: Script #2 parsed. URL: wasm://wasm/74f86b7e. Source map URL: wasm://dwarf
|
|
Session #2: Script #2 parsed. URL: wasm://wasm/74f86b7e. Source map URL: wasm://dwarf
|
|
Session #1: Script #3 parsed. URL: wasm://wasm/3754e3fe. Source map URL: abc
|
|
Session #2: Script #3 parsed. URL: wasm://wasm/3754e3fe. Source map URL: abc
|
|
Session #1: Script #4 parsed. URL: wasm://wasm/2bd2e40e. Source map URL: abc
|
|
Session #2: Script #4 parsed. URL: wasm://wasm/2bd2e40e. Source map URL: abc
|
|
Session #1: Script #5 parsed. URL: wasm://wasm/f568e726. Source map URL: abc
|
|
Session #2: Script #5 parsed. URL: wasm://wasm/f568e726. Source map URL: abc
|
|
Session #1: Source for wasm://wasm/f608ae1e/f608ae1e-0:
|
|
func $nopFunction
|
|
nop
|
|
end
|
|
|
|
Session #1: Source for wasm://wasm/f608ae1e/f608ae1e-1:
|
|
func $main
|
|
block
|
|
i32.const 2
|
|
drop
|
|
end
|
|
end
|
|
|
|
Session #2: Source for wasm://wasm/f608ae1e/f608ae1e-0:
|
|
func $nopFunction
|
|
nop
|
|
end
|
|
|
|
Session #2: Source for wasm://wasm/f608ae1e/f608ae1e-1:
|
|
func $main
|
|
block
|
|
i32.const 2
|
|
drop
|
|
end
|
|
end
|
|
|
|
Session #1: Source for wasm://wasm/74f86b7e:
|
|
Raw: 00 61 73 6d 01 00 00 00 01 07 02 60 00 00 60 00 00 03 03 02 00 01 07 08 01 04 6d 61 69 6e 00 01 0a 0e 02 03 00 01 0b 08 00 02 40 41 02 1a 0b 0b 00 11 0b 2e 64 65 62 75 67 5f 69 6e 66 6f 01 02 03 04 05 00 1b 04 6e 61 6d 65 01 14 02 00 0b 6e 6f 70 46 75 6e 63 74 69 6f 6e 01 04 6d 61 69 6e
|
|
Imports: []
|
|
Exports: [main: function]
|
|
Session #2: Source for wasm://wasm/74f86b7e:
|
|
Raw: 00 61 73 6d 01 00 00 00 01 07 02 60 00 00 60 00 00 03 03 02 00 01 07 08 01 04 6d 61 69 6e 00 01 0a 0e 02 03 00 01 0b 08 00 02 40 41 02 1a 0b 0b 00 11 0b 2e 64 65 62 75 67 5f 69 6e 66 6f 01 02 03 04 05 00 1b 04 6e 61 6d 65 01 14 02 00 0b 6e 6f 70 46 75 6e 63 74 69 6f 6e 01 04 6d 61 69 6e
|
|
Imports: []
|
|
Exports: [main: function]
|
|
Session #1: Source for wasm://wasm/3754e3fe:
|
|
Raw: 00 61 73 6d 01 00 00 00 01 07 02 60 00 00 60 00 00 03 03 02 00 01 07 08 01 04 6d 61 69 6e 00 01 0a 0e 02 03 00 01 0b 08 00 02 40 41 02 1a 0b 0b 00 15 10 73 6f 75 72 63 65 4d 61 70 70 69 6e 67 55 52 4c 03 61 62 63 00 1b 04 6e 61 6d 65 01 14 02 00 0b 6e 6f 70 46 75 6e 63 74 69 6f 6e 01 04 6d 61 69 6e
|
|
Imports: []
|
|
Exports: [main: function]
|
|
Session #2: Source for wasm://wasm/3754e3fe:
|
|
Raw: 00 61 73 6d 01 00 00 00 01 07 02 60 00 00 60 00 00 03 03 02 00 01 07 08 01 04 6d 61 69 6e 00 01 0a 0e 02 03 00 01 0b 08 00 02 40 41 02 1a 0b 0b 00 15 10 73 6f 75 72 63 65 4d 61 70 70 69 6e 67 55 52 4c 03 61 62 63 00 1b 04 6e 61 6d 65 01 14 02 00 0b 6e 6f 70 46 75 6e 63 74 69 6f 6e 01 04 6d 61 69 6e
|
|
Imports: []
|
|
Exports: [main: function]
|
|
Session #1: Source for wasm://wasm/2bd2e40e:
|
|
Raw: 00 61 73 6d 01 00 00 00 01 07 02 60 00 00 60 00 00 03 03 02 00 01 07 08 01 04 6d 61 69 6e 00 01 0a 0e 02 03 00 01 0b 08 00 02 40 41 02 1a 0b 0b 00 11 0b 2e 64 65 62 75 67 5f 69 6e 66 6f 01 02 03 04 05 00 15 10 73 6f 75 72 63 65 4d 61 70 70 69 6e 67 55 52 4c 03 61 62 63 00 1b 04 6e 61 6d 65 01 14 02 00 0b 6e 6f 70 46 75 6e 63 74 69 6f 6e 01 04 6d 61 69 6e
|
|
Imports: []
|
|
Exports: [main: function]
|
|
Session #2: Source for wasm://wasm/2bd2e40e:
|
|
Raw: 00 61 73 6d 01 00 00 00 01 07 02 60 00 00 60 00 00 03 03 02 00 01 07 08 01 04 6d 61 69 6e 00 01 0a 0e 02 03 00 01 0b 08 00 02 40 41 02 1a 0b 0b 00 11 0b 2e 64 65 62 75 67 5f 69 6e 66 6f 01 02 03 04 05 00 15 10 73 6f 75 72 63 65 4d 61 70 70 69 6e 67 55 52 4c 03 61 62 63 00 1b 04 6e 61 6d 65 01 14 02 00 0b 6e 6f 70 46 75 6e 63 74 69 6f 6e 01 04 6d 61 69 6e
|
|
Imports: []
|
|
Exports: [main: function]
|
|
Session #1: Source for wasm://wasm/f568e726:
|
|
Raw: 00 61 73 6d 01 00 00 00 01 07 02 60 00 00 60 00 00 03 03 02 00 01 07 08 01 04 6d 61 69 6e 00 01 0a 0e 02 03 00 01 0b 08 00 02 40 41 02 1a 0b 0b 00 15 10 73 6f 75 72 63 65 4d 61 70 70 69 6e 67 55 52 4c 03 61 62 63 00 11 0b 2e 64 65 62 75 67 5f 69 6e 66 6f 01 02 03 04 05 00 1b 04 6e 61 6d 65 01 14 02 00 0b 6e 6f 70 46 75 6e 63 74 69 6f 6e 01 04 6d 61 69 6e
|
|
Imports: []
|
|
Exports: [main: function]
|
|
Session #2: Source for wasm://wasm/f568e726:
|
|
Raw: 00 61 73 6d 01 00 00 00 01 07 02 60 00 00 60 00 00 03 03 02 00 01 07 08 01 04 6d 61 69 6e 00 01 0a 0e 02 03 00 01 0b 08 00 02 40 41 02 1a 0b 0b 00 15 10 73 6f 75 72 63 65 4d 61 70 70 69 6e 67 55 52 4c 03 61 62 63 00 11 0b 2e 64 65 62 75 67 5f 69 6e 66 6f 01 02 03 04 05 00 1b 04 6e 61 6d 65 01 14 02 00 0b 6e 6f 70 46 75 6e 63 74 69 6f 6e 01 04 6d 61 69 6e
|
|
Imports: []
|
|
Exports: [main: function]
|