wasm-stepping-expected.txt 7.79 KB
Newer Older
1
Tests stepping through wasm scripts
2 3 4 5
Installing code an global variable.
Calling instantiate function.
Waiting for two wasm scripts to be parsed.
Ignoring script with url v8://test/callInstantiate
6 7 8 9
Got wasm script: wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0
Requesting source for wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0...
Got wasm script: wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1
Requesting source for wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1...
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
func $wasm_A
  nop
  nop
end

func $wasm_B (param i32)
  loop
    get_local 0
    if
      get_local 0
      i32.const 1
      i32.sub
      set_local 0
      call 0
      br 1
    end
  end
end

29
Setting breakpoint on line 7 (on the setlocal before the call), url wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1
30 31 32 33 34
{
    columnNumber : 6
    lineNumber : 7
    scriptId : <scriptId>
}
35
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:7:6:       >set_local 0
36 37 38 39
at wasm_B (7:6):
 - scope (global):
   -- skipped
 - scope (local):
40
   locals: {"arg#0":4} (Object)
41 42 43 44 45
   stack: {"0":3} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepInto called
46
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:8:6:       >call 0
47 48 49 50
at wasm_B (8:6):
 - scope (global):
   -- skipped
 - scope (local):
51
   locals: {"arg#0":3} (Object)
52 53 54 55 56
   stack: {} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepInto called
57
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0:1:2:   >nop
58 59 60 61 62 63 64 65 66
at wasm_A (1:2):
 - scope (global):
   -- skipped
 - scope (local):
   stack: {} (Object)
at wasm_B (8:6):
 - scope (global):
   -- skipped
 - scope (local):
67
   locals: {"arg#0":3} (Object)
68 69 70 71 72
   stack: {} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepOver called
73
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0:2:2:   >nop
74 75 76 77 78 79 80 81 82
at wasm_A (2:2):
 - scope (global):
   -- skipped
 - scope (local):
   stack: {} (Object)
at wasm_B (8:6):
 - scope (global):
   -- skipped
 - scope (local):
83
   locals: {"arg#0":3} (Object)
84 85 86 87 88
   stack: {} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepOut called
89
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:9:6:       >br 1
90 91 92 93
at wasm_B (9:6):
 - scope (global):
   -- skipped
 - scope (local):
94
   locals: {"arg#0":3} (Object)
95 96 97 98 99
   stack: {} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepOut called
100
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:7:6:       >set_local 0
101 102 103 104
at wasm_B (7:6):
 - scope (global):
   -- skipped
 - scope (local):
105
   locals: {"arg#0":3} (Object)
106 107 108 109 110
   stack: {"0":2} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepOver called
111
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:8:6:       >call 0
112 113 114 115
at wasm_B (8:6):
 - scope (global):
   -- skipped
 - scope (local):
116
   locals: {"arg#0":2} (Object)
117 118 119 120 121
   stack: {} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepOver called
122
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:9:6:       >br 1
123 124 125 126
at wasm_B (9:6):
 - scope (global):
   -- skipped
 - scope (local):
127
   locals: {"arg#0":2} (Object)
128 129 130 131 132
   stack: {} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.resume called
133
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:7:6:       >set_local 0
134 135 136 137
at wasm_B (7:6):
 - scope (global):
   -- skipped
 - scope (local):
138
   locals: {"arg#0":2} (Object)
139 140 141 142 143
   stack: {"0":1} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepInto called
144
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:8:6:       >call 0
145 146 147 148
at wasm_B (8:6):
 - scope (global):
   -- skipped
 - scope (local):
149
   locals: {"arg#0":1} (Object)
150 151 152 153 154
   stack: {} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepInto called
155
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0:1:2:   >nop
156 157 158 159 160 161 162 163 164
at wasm_A (1:2):
 - scope (global):
   -- skipped
 - scope (local):
   stack: {} (Object)
at wasm_B (8:6):
 - scope (global):
   -- skipped
 - scope (local):
165
   locals: {"arg#0":1} (Object)
166 167 168 169 170
   stack: {} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepOut called
171
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:9:6:       >br 1
172 173 174 175
at wasm_B (9:6):
 - scope (global):
   -- skipped
 - scope (local):
176
   locals: {"arg#0":1} (Object)
177 178 179 180 181
   stack: {} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepInto called
182
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:1:2:   >loop
183 184 185 186
at wasm_B (1:2):
 - scope (global):
   -- skipped
 - scope (local):
187
   locals: {"arg#0":1} (Object)
188 189 190 191 192
   stack: {} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepInto called
193
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:2:4:     >get_local 0
194 195 196 197
at wasm_B (2:4):
 - scope (global):
   -- skipped
 - scope (local):
198
   locals: {"arg#0":1} (Object)
199 200 201 202 203
   stack: {} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepInto called
204
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:3:4:     >if
205 206 207 208
at wasm_B (3:4):
 - scope (global):
   -- skipped
 - scope (local):
209
   locals: {"arg#0":1} (Object)
210 211 212 213 214
   stack: {"0":1} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepInto called
215
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:4:6:       >get_local 0
216 217 218 219
at wasm_B (4:6):
 - scope (global):
   -- skipped
 - scope (local):
220
   locals: {"arg#0":1} (Object)
221 222 223 224 225
   stack: {} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepInto called
226
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:5:6:       >i32.const 1
227 228 229 230
at wasm_B (5:6):
 - scope (global):
   -- skipped
 - scope (local):
231
   locals: {"arg#0":1} (Object)
232 233 234 235 236
   stack: {"0":1} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepInto called
237
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:6:6:       >i32.sub
238 239 240 241
at wasm_B (6:6):
 - scope (global):
   -- skipped
 - scope (local):
242
   locals: {"arg#0":1} (Object)
243 244 245 246 247
   stack: {"0":1,"1":1} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepInto called
248
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:7:6:       >set_local 0
249 250 251 252
at wasm_B (7:6):
 - scope (global):
   -- skipped
 - scope (local):
253
   locals: {"arg#0":1} (Object)
254 255 256 257 258
   stack: {"0":0} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepInto called
259
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:8:6:       >call 0
260 261 262 263
at wasm_B (8:6):
 - scope (global):
   -- skipped
 - scope (local):
264
   locals: {"arg#0":0} (Object)
265 266 267 268 269
   stack: {} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepInto called
270
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0:1:2:   >nop
271 272 273 274 275 276 277 278 279
at wasm_A (1:2):
 - scope (global):
   -- skipped
 - scope (local):
   stack: {} (Object)
at wasm_B (8:6):
 - scope (global):
   -- skipped
 - scope (local):
280
   locals: {"arg#0":0} (Object)
281 282 283 284 285
   stack: {} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepInto called
286
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0:2:2:   >nop
287 288 289 290 291 292 293 294 295
at wasm_A (2:2):
 - scope (global):
   -- skipped
 - scope (local):
   stack: {} (Object)
at wasm_B (8:6):
 - scope (global):
   -- skipped
 - scope (local):
296
   locals: {"arg#0":0} (Object)
297 298 299 300 301
   stack: {} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepInto called
302
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0:3:0: >end
303 304 305 306 307 308 309 310 311
at wasm_A (3:0):
 - scope (global):
   -- skipped
 - scope (local):
   stack: {} (Object)
at wasm_B (8:6):
 - scope (global):
   -- skipped
 - scope (local):
312
   locals: {"arg#0":0} (Object)
313 314 315 316 317
   stack: {} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.stepInto called
318
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:9:6:       >br 1
319 320 321 322
at wasm_B (9:6):
 - scope (global):
   -- skipped
 - scope (local):
323
   locals: {"arg#0":0} (Object)
324 325 326 327 328
   stack: {} (Object)
at (anonymous) (0:17):
 - scope (global):
   -- skipped
Debugger.resume called
329 330
exports.main returned!
Finished!