Lines Matching refs:stack
102 let stack = caller.debug_exit_frames().next().unwrap(); in stack_values_two_frames() localVariable
104 stack in stack_values_two_frames()
112 stack in stack_values_two_frames()
120 assert_eq!(stack.num_locals(&mut caller)?, 2); in stack_values_two_frames()
121 assert_eq!(stack.num_stacks(&mut caller)?, 2); in stack_values_two_frames()
122 assert_eq!(stack.local(&mut caller, 0)?.unwrap_i32(), 1); in stack_values_two_frames()
123 assert_eq!(stack.local(&mut caller, 1)?.unwrap_i32(), 2); in stack_values_two_frames()
124 assert_eq!(stack.stack(&mut caller, 0)?.unwrap_i32(), 1); in stack_values_two_frames()
125 assert_eq!(stack.stack(&mut caller, 1)?.unwrap_i32(), 2); in stack_values_two_frames()
127 let stack = stack.parent(&mut caller)?.unwrap(); in stack_values_two_frames() localVariable
129 stack in stack_values_two_frames()
137 stack in stack_values_two_frames()
145 let stack = stack.parent(&mut caller)?; in stack_values_two_frames() localVariable
146 assert!(stack.is_none()); in stack_values_two_frames()
172 let stack = caller.debug_exit_frames().next().unwrap(); in stack_values_exceptions() localVariable
173 assert_eq!(stack.num_stacks(&mut caller)?, 1); in stack_values_exceptions()
174 assert_eq!(stack.stack(&mut caller, 0)?.unwrap_i32(), 42); in stack_values_exceptions()
175 let stack = stack.parent(&mut caller)?; in stack_values_exceptions() localVariable
176 assert!(stack.is_none()); in stack_values_exceptions()
199 let stack = caller.debug_exit_frames().next().unwrap(); in stack_values_dead_gc_ref() localVariable
200 assert_eq!(stack.num_stacks(&mut caller)?, 1); in stack_values_dead_gc_ref()
201 assert!(stack.stack(&mut caller, 0)?.unwrap_anyref().is_some()); in stack_values_dead_gc_ref()
202 let stack = stack.parent(&mut caller)?; in stack_values_dead_gc_ref() localVariable
203 assert!(stack.is_none()); in stack_values_dead_gc_ref()
226 let stack = caller.debug_exit_frames().next().unwrap(); in gc_access_during_call() localVariable
231 assert_eq!(stack.num_stacks(&mut caller)?, 0); in gc_access_during_call()
232 assert_eq!(stack.num_locals(&mut caller)?, 1); in gc_access_during_call()
238 let s = stack in gc_access_during_call()
245 let stack = stack.parent(&mut caller)?; in gc_access_during_call() localVariable
246 assert!(stack.is_none()); in gc_access_during_call()
291 let stack = exits[0].clone(); in stack_values_two_activations() localVariable
293 stack in stack_values_two_activations()
301 stack in stack_values_two_activations()
309 stack.module(&mut caller)?.unwrap(), in stack_values_two_activations()
312 assert_eq!(stack.num_locals(&mut caller)?, 2); in stack_values_two_activations()
313 assert_eq!(stack.num_stacks(&mut caller)?, 2); in stack_values_two_activations()
314 assert_eq!(stack.local(&mut caller, 0)?.unwrap_i32(), 1); in stack_values_two_activations()
315 assert_eq!(stack.local(&mut caller, 1)?.unwrap_i32(), 2); in stack_values_two_activations()
316 assert_eq!(stack.stack(&mut caller, 0)?.unwrap_i32(), 1); in stack_values_two_activations()
317 assert_eq!(stack.stack(&mut caller, 1)?.unwrap_i32(), 2); in stack_values_two_activations()
318 let inner_instance = stack.instance(&mut caller)?; in stack_values_two_activations()
320 let stack = stack.parent(&mut caller)?; in stack_values_two_activations() localVariable
321 assert!(stack.is_none()); in stack_values_two_activations()
323 let stack = exits[1].clone(); in stack_values_two_activations() localVariable
325 stack in stack_values_two_activations()
333 stack in stack_values_two_activations()
341 stack.module(&mut caller)?.unwrap(), in stack_values_two_activations()
344 assert_eq!(stack.num_locals(&mut caller)?, 0); in stack_values_two_activations()
345 assert_eq!(stack.num_stacks(&mut caller)?, 2); in stack_values_two_activations()
346 assert_eq!(stack.stack(&mut caller, 0)?.unwrap_i32(), 1); in stack_values_two_activations()
347 assert_eq!(stack.stack(&mut caller, 1)?.unwrap_i32(), 2); in stack_values_two_activations()
348 let outer_instance = stack.instance(&mut caller)?; in stack_values_two_activations()
351 let stack = stack.parent(&mut caller)?; in stack_values_two_activations() localVariable
352 assert!(stack.is_none()); in stack_values_two_activations()
628 let stack = store.debug_exit_frames().next().unwrap(); in uncaught_exception_events() localVariable
629 assert_eq!(stack.num_locals(&mut store).unwrap(), 1); in uncaught_exception_events()
630 assert_eq!(stack.local(&mut store, 0).unwrap().unwrap_i32(), 100); in uncaught_exception_events()
631 let stack = stack.parent(&mut store).unwrap().unwrap(); in uncaught_exception_events() localVariable
632 let stack = stack.parent(&mut store).unwrap(); in uncaught_exception_events() localVariable
633 assert!(stack.is_none()); in uncaught_exception_events()
681 let stack = store.debug_exit_frames().next().unwrap(); in caught_exception_events() localVariable
682 assert_eq!(stack.num_locals(&mut store).unwrap(), 1); in caught_exception_events()
683 assert_eq!(stack.local(&mut store, 0).unwrap().unwrap_i32(), 100); in caught_exception_events()
684 let stack = stack.parent(&mut store).unwrap().unwrap(); in caught_exception_events() localVariable
685 let stack = stack.parent(&mut store).unwrap(); in caught_exception_events() localVariable
686 assert!(stack.is_none()); in caught_exception_events()
813 let stack = store.debug_exit_frames().next().unwrap(); in breakpoint_events() localVariable
814 assert_eq!(stack.num_locals(&mut store).unwrap(), 2); in breakpoint_events()
815 assert_eq!(stack.local(&mut store, 0).unwrap().unwrap_i32(), 1); in breakpoint_events()
816 assert_eq!(stack.local(&mut store, 1).unwrap().unwrap_i32(), 2); in breakpoint_events()
817 let (func, pc) = stack.wasm_function_index_and_pc(&mut store).unwrap().unwrap(); in breakpoint_events()
820 let stack = stack.parent(&mut store).unwrap(); in breakpoint_events() localVariable
821 assert!(stack.is_none()); in breakpoint_events()
864 let stack = store.debug_exit_frames().next().unwrap(); in breakpoint_events() localVariable
865 let (_, pc) = stack.wasm_function_index_and_pc(&mut store).unwrap().unwrap(); in breakpoint_events()
872 let stack = store.debug_exit_frames().next().unwrap(); in breakpoint_events() localVariable
873 let (_, pc) = stack.wasm_function_index_and_pc(&mut store).unwrap().unwrap(); in breakpoint_events()
880 let stack = store.debug_exit_frames().next().unwrap(); in breakpoint_events() localVariable
881 let (_, pc) = stack.wasm_function_index_and_pc(&mut store).unwrap().unwrap(); in breakpoint_events()
888 let stack = store.debug_exit_frames().next().unwrap(); in breakpoint_events() localVariable
889 let (_, pc) = stack.wasm_function_index_and_pc(&mut store).unwrap().unwrap(); in breakpoint_events()
1484 let stack = store.debug_exit_frames().next().unwrap(); in breakpoint_slips_to_first_opcode() localVariable
1485 let (func, pc) = stack.wasm_function_index_and_pc(&mut store).unwrap().unwrap(); in breakpoint_slips_to_first_opcode()