wasm-stepping-liftoff-expected.txt 2.63 KB
Newer Older
1 2
Tests stepping through wasm scripts by byte offsets
Setting up global instance variable.
3 4
Got wasm script: wasm://wasm/42af3c82
Setting breakpoint on offset 72 (should be propagated to 73, the offset of the call), url wasm://wasm/42af3c82
5
{
6
    columnNumber : 73
7 8 9
    lineNumber : 0
    scriptId : <scriptId>
}
10
Script wasm://wasm/42af3c82 byte offset 73: Wasm opcode 0x10
11
Debugger.stepInto called
12
Script wasm://wasm/42af3c82 byte offset 52: Wasm opcode 0x01
13
Debugger.stepOver called
14
Script wasm://wasm/42af3c82 byte offset 53: Wasm opcode 0x01
15
Debugger.stepOut called
16
Script wasm://wasm/42af3c82 byte offset 75: Wasm opcode 0x0c
17
Debugger.stepOut called
18
Script wasm://wasm/42af3c82 byte offset 73: Wasm opcode 0x10
19
Debugger.stepOver called
20
Script wasm://wasm/42af3c82 byte offset 75: Wasm opcode 0x0c
21
Debugger.stepInto called
22
Script wasm://wasm/42af3c82 byte offset 59: Wasm opcode 0x20
23
Debugger.resume called
24
Script wasm://wasm/42af3c82 byte offset 73: Wasm opcode 0x10
25
Debugger.stepInto called
26
Script wasm://wasm/42af3c82 byte offset 52: Wasm opcode 0x01
27
Debugger.stepOut called
28
Script wasm://wasm/42af3c82 byte offset 75: Wasm opcode 0x0c
29
Debugger.stepInto called
30
Script wasm://wasm/42af3c82 byte offset 59: Wasm opcode 0x20
31
Debugger.stepInto called
32
Script wasm://wasm/42af3c82 byte offset 61: Wasm opcode 0x04
33
Debugger.stepInto called
34
Script wasm://wasm/42af3c82 byte offset 63: Wasm opcode 0x20
35
Debugger.stepInto called
36
Script wasm://wasm/42af3c82 byte offset 65: Wasm opcode 0x41
37
Debugger.stepInto called
38
Script wasm://wasm/42af3c82 byte offset 67: Wasm opcode 0x6b
39
Debugger.stepInto called
40
Script wasm://wasm/42af3c82 byte offset 68: Wasm opcode 0x21
41
Debugger.stepInto called
42
Script wasm://wasm/42af3c82 byte offset 70: Wasm opcode 0x41
43
Debugger.stepInto called
44
Script wasm://wasm/42af3c82 byte offset 73: Wasm opcode 0x10
45
Debugger.stepInto called
46
Script wasm://wasm/42af3c82 byte offset 52: Wasm opcode 0x01
47
Debugger.stepInto called
48
Script wasm://wasm/42af3c82 byte offset 53: Wasm opcode 0x01
49
Debugger.stepInto called
50
Script wasm://wasm/42af3c82 byte offset 54: Wasm opcode 0x0b
51
Debugger.stepInto called
52
Script wasm://wasm/42af3c82 byte offset 75: Wasm opcode 0x0c
53
Debugger.stepInto called
54
Script wasm://wasm/42af3c82 byte offset 59: Wasm opcode 0x20
55 56
Debugger.resume called
exports.main returned!
57 58 59 60 61 62 63
Test stepping over a recursive call
Setting breakpoint on the recursive call instruction @+93, url wasm://wasm/42af3c82
{
    columnNumber : 93
    lineNumber : 0
    scriptId : <scriptId>
}
64
Script wasm://wasm/42af3c82 byte offset 93: Wasm opcode 0x10
65 66
Removing breakpoint
Debugger.stepOver called
67
Script wasm://wasm/42af3c82 byte offset 95: Wasm opcode 0x20
68
Debugger.resume called
69
Finished!