c203163d1f
This is useful for the upcoming "huge TypedArrays" support, to be able to quickly decide in stubs/generated code whether a string used as the key for a property load/store can possibly be an exotic integer index. Bug: v8:4153 Change-Id: I50ce655d2f78fb36e5615fd580f22c9290216c84 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1821460 Commit-Queue: Jakob Kummerow <jkummerow@chromium.org> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Cr-Commit-Position: refs/heads/master@{#64165}
309 lines
6.3 KiB
Plaintext
309 lines
6.3 KiB
Plaintext
Tests stepping through wasm scripts with source maps
|
|
Installing code an global variable and instantiate.
|
|
Got wasm script: wasm://wasm/wasm-3697f0fe
|
|
Script sourceMapURL: abc
|
|
Requesting source for wasm://wasm/wasm-3697f0fe...
|
|
Source retrieved without error: true
|
|
Setting breakpoint on offset 54 (on the setlocal before the call), url wasm://wasm/wasm-3697f0fe
|
|
{
|
|
columnNumber : 54
|
|
lineNumber : 0
|
|
scriptId : <scriptId>
|
|
}
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:54
|
|
at wasm_B (0:54):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":4}
|
|
stack: {"0":3}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:56
|
|
at wasm_B (0:56):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":3}
|
|
stack: {}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:38
|
|
at wasm_A (0:38):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
stack: {}
|
|
at wasm_B (0:56):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":3}
|
|
stack: {}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepOver called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:39
|
|
at wasm_A (0:39):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
stack: {}
|
|
at wasm_B (0:56):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":3}
|
|
stack: {}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepOut called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:58
|
|
at wasm_B (0:58):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":3}
|
|
stack: {}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepOut called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:54
|
|
at wasm_B (0:54):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":3}
|
|
stack: {"0":2}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepOver called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:56
|
|
at wasm_B (0:56):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":2}
|
|
stack: {}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepOver called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:58
|
|
at wasm_B (0:58):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":2}
|
|
stack: {}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.resume called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:54
|
|
at wasm_B (0:54):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":2}
|
|
stack: {"0":1}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:56
|
|
at wasm_B (0:56):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":1}
|
|
stack: {}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:38
|
|
at wasm_A (0:38):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
stack: {}
|
|
at wasm_B (0:56):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":1}
|
|
stack: {}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepOut called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:58
|
|
at wasm_B (0:58):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":1}
|
|
stack: {}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:43
|
|
at wasm_B (0:43):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":1}
|
|
stack: {}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:45
|
|
at wasm_B (0:45):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":1}
|
|
stack: {}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:47
|
|
at wasm_B (0:47):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":1}
|
|
stack: {"0":1}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:49
|
|
at wasm_B (0:49):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":1}
|
|
stack: {}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:51
|
|
at wasm_B (0:51):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":1}
|
|
stack: {"0":1}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:53
|
|
at wasm_B (0:53):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":1}
|
|
stack: {"0":1,"1":1}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:54
|
|
at wasm_B (0:54):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":1}
|
|
stack: {"0":0}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:56
|
|
at wasm_B (0:56):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":0}
|
|
stack: {}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:38
|
|
at wasm_A (0:38):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
stack: {}
|
|
at wasm_B (0:56):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":0}
|
|
stack: {}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:39
|
|
at wasm_A (0:39):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
stack: {}
|
|
at wasm_B (0:56):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":0}
|
|
stack: {}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:40
|
|
at wasm_A (0:40):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
stack: {}
|
|
at wasm_B (0:56):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":0}
|
|
stack: {}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.stepInto called
|
|
Paused at wasm://wasm/wasm-3697f0fe:0:58
|
|
at wasm_B (0:58):
|
|
- scope (global):
|
|
-- skipped
|
|
- scope (local):
|
|
locals: {"arg#0":0}
|
|
stack: {}
|
|
at (anonymous) (0:17):
|
|
- scope (global):
|
|
-- skipped
|
|
Debugger.resume called
|
|
exports.main returned!
|
|
Finished!
|