Home
last modified time | relevance | path

Searched refs:stack (Results 1 – 25 of 160) sorted by relevance

1234567

/wasmtime-44.0.1/crates/cranelift/src/translate/
H A Dstack.rs196 stack: &mut Vec<Value>, in truncate_value_stack_to_else_params()
208 stack: &mut Vec<Value>, in truncate_value_stack_to_original_size()
288 stack: Vec::new(), in new()
322 self.stack.push(val); in push1()
327 self.stack.push(val1); in push2()
328 self.stack.push(val2); in push2()
339 self.stack in pop1()
347 .stack in peek1()
398 self.stack.len() in ensure_length_is_at_least()
429 &self.stack[self.stack.len() - n..] in peekn()
[all …]
H A Dmod.rs17 mod stack; module
24 pub use self::stack::FuncTranslationStacks;
/wasmtime-44.0.1/tests/all/
H A Ddebug.rs127 let stack = stack.parent(&mut caller)?.unwrap(); in stack_values_two_frames() localVariable
145 let stack = stack.parent(&mut caller)?; in stack_values_two_frames() localVariable
175 let stack = stack.parent(&mut caller)?; in stack_values_exceptions() localVariable
202 let stack = stack.parent(&mut caller)?; in stack_values_dead_gc_ref() localVariable
245 let stack = stack.parent(&mut caller)?; in gc_access_during_call() localVariable
293 stack in stack_values_two_activations()
320 let stack = stack.parent(&mut caller)?; in stack_values_two_activations() localVariable
351 let stack = stack.parent(&mut caller)?; in stack_values_two_activations() localVariable
632 let stack = stack.parent(&mut store).unwrap(); in uncaught_exception_events() localVariable
685 let stack = stack.parent(&mut store).unwrap(); in caught_exception_events() localVariable
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/
H A Dconst_expr.rs20 stack: Vec<Val>, field
27 stack: Vec::new(), in default()
222 self.stack.clear(); in eval_loop()
303 self.stack.len() in eval_loop()
317 self.stack.push(s); in eval_loop()
325 self.stack.push( in eval_loop()
401 .stack in eval_loop()
440 if self.stack.len() == 1 { in eval_loop()
442 Ok(&self.stack[0]) in eval_loop()
446 self.stack.len() in eval_loop()
[all …]
H A Dstack_switching.rs4 mod stack; module
8 pub use stack::*;
210 pub stack: VMContinuationStack, field
238 &self.stack in fiber_stack()
242 core::mem::replace(&mut self.stack, VMContinuationStack::unallocated()) in detach_stack()
259 let stack = VMContinuationStack::unallocated(); in empty() localVariable
269 stack, in empty()
314 let tsp = contref.stack.top().unwrap(); in cont_new()
324 contref.stack.initialize( in cont_new()
334 let stack_pointer = contref.stack.control_context_stack_pointer(); in cont_new()
[all …]
/wasmtime-44.0.1/crates/environ/src/graphs/
H A Ddfs.rs5 stack: Vec<DfsEvent<Node>>, field
11 stack: Default::default(), in default()
26 self.stack.push(DfsEvent::Pre(root)); in add_root()
31 self.stack in add_roots()
61 let event = self.stack.pop()?; in next()
72 self.stack.reserve( in next()
79 self.stack.push(DfsEvent::Post(node)); in next()
81 self.stack.push(DfsEvent::AfterEdge(node, succ)); in next()
83 self.stack.push(DfsEvent::Pre(succ)); in next()
/wasmtime-44.0.1/winch/codegen/src/codegen/
H A Dcontext.rs40 pub stack: Stack, field
56 .stack in i32_shift()
62 .stack in i32_shift()
86 .stack in i64_shift()
91 .stack in i64_shift()
115 stack: Stack, in new()
121 stack, in new()
132 stack: self.stack, in for_emission()
443 .stack in pop_i32_const()
458 .stack in pop_i64_const()
[all …]
/wasmtime-44.0.1/winch/codegen/src/
H A Dstack.rs490 let mut stack = Stack::new(); in test_pop_i32_const() localVariable
491 stack.push(Val::i32(33i32)); in test_pop_i32_const()
495 assert!(stack.pop_i32_const().is_none()); in test_pop_i32_const()
500 let mut stack = Stack::new(); in test_pop_reg() localVariable
502 stack.push(Val::reg(reg, WasmValType::I32)); in test_pop_reg()
503 stack.push(Val::i32(4)); in test_pop_reg()
505 assert_eq!(None, stack.pop_reg()); in test_pop_reg()
506 let _ = stack.pop().unwrap(); in test_pop_reg()
512 let mut stack = Stack::new(); in test_pop_named_reg() localVariable
517 assert_eq!(None, stack.pop_named_reg(reg)); in test_pop_named_reg()
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/
H A Dunix_stack_pool.rs126 let stack = wasmtime_fiber::FiberStack::from_raw_parts( in allocate() localVariable
131 Ok(stack) in allocate()
152 stack: &mut wasmtime_fiber::FiberStack, in zero_stack()
155 assert!(stack.is_from_raw_parts()); in zero_stack()
166 let top = stack in zero_stack()
225 assert!(stack.is_from_raw_parts()); in deallocate()
227 let top = stack in deallocate()
294 let stack = pool.allocate().expect("allocation should succeed"); in test_stack_pool() localVariable
299 stacks.push(stack); in test_stack_pool()
306 for stack in stacks { in test_stack_pool()
[all …]
H A Dgeneric_stack_pool.rs65 Ok(stack) => Ok(stack), in allocate()
91 pub unsafe fn deallocate(&self, stack: wasmtime_fiber::FiberStack, _bytes_resident: usize) { in deallocate()
94 let _ = stack; in deallocate()
/wasmtime-44.0.1/crates/fiber/src/
H A Dunix.rs93 let stack = MmapFiberStack::new(size)?; in new() localVariable
100 len: stack.mapping_len - page_size, in new()
101 storage: FiberStackStorage::Mmap(stack), in new()
247 pub fn new<F, A, B, C>(stack: &FiberStack, func: F) -> Result<Self> in new()
273 asan::fiber_switch(stack.top().unwrap(), &mut asan::PreviousStack::new(stack)); in resume()
346 pub fn new(stack: &FiberStack) -> PreviousStack { in new()
347 let range = stack.range().unwrap(); in new()
457 let stack = AsanFiberStack { in new_fiber_stack() localVariable
458 mmap: ManuallyDrop::new(stack), in new_fiber_stack()
460 Ok(Box::new(stack)) in new_fiber_stack()
[all …]
H A Dlib.rs131 stack: Option<FiberStack>, field
175 stack: FiberStack, in new()
178 let inner = imp::Fiber::new(&stack.0, func)?; in new()
181 stack: Some(stack), in new()
206 self.inner.resume(&self.stack().0, &result); in resume()
228 pub fn stack(&self) -> &FiberStack { in stack() method
229 self.stack.as_ref().unwrap() in stack()
235 self.stack.take().unwrap() in into_stack()
H A Dnostd.rs131 pub fn new<F, A, B, C>(stack: &FiberStack, func: F) -> Result<Self> in new()
142 wasmtime_fiber_init(stack.top().unwrap(), fiber_start::<F, A, B, C>, data); in new()
148 pub(crate) fn resume<A, B, C>(&self, stack: &FiberStack, result: &Cell<RunResult<A, B, C>>) { in resume()
154 let addr = stack.top().unwrap().cast::<usize>().offset(-1); in resume()
158 wasmtime_fiber_switch(stack.top().unwrap()); in resume()
/wasmtime-44.0.1/tests/misc_testsuite/
H A Dstack_overflow.wast10 (assert_exhaustion (invoke "stack_overflow") "call stack exhausted")
11 (assert_exhaustion (invoke "stack_overflow") "call stack exhausted")
25 (assert_exhaustion (invoke "stack_overflow") "call stack exhausted")
26 (assert_exhaustion (invoke "stack_overflow") "call stack exhausted")
H A Dtraps-skip-catch-all.wast15 $stack-overflow
21 (func $stack-overflow call $stack-overflow)
45 (assert_trap (invoke "run" (i32.const 2)) "call stack exhausted")
/wasmtime-44.0.1/cranelift/filetests/src/
H A Dtest_domtree.rs130 let mut stack = Vec::new(); in filecheck_text() localVariable
131 stack.extend(func.layout.entry_block()); in filecheck_text()
132 while let Some(block) = stack.pop() { in filecheck_text()
134 let i = stack.len(); in filecheck_text()
137 stack.push(ch); in filecheck_text()
141 stack[i..].reverse(); in filecheck_text()
/wasmtime-44.0.1/crates/fuzzing/src/generators/gc_ops/
H A Dtypes.rs500 stack: &mut Vec<StackType>, in fixup()
507 if stack.is_empty() { in fixup()
510 stack.pop(); in fixup()
514 stack.pop(); in fixup()
518 stack.pop(); in fixup()
529 stack.pop(); in fixup()
540 stack.pop(); in fixup()
550 stack, in fixup()
555 stack.pop(); in fixup()
566 stack: &mut Vec<Self>, in emit()
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/store/
H A Dasync_.rs184 if let Some(stack) = self.async_state.last_fiber_stack().take() { in allocate_fiber_stack()
185 return Ok(stack); in allocate_fiber_stack()
190 pub(crate) fn deallocate_fiber_stack(&mut self, stack: wasmtime_fiber::FiberStack) { in deallocate_fiber_stack()
192 *self.async_state.last_fiber_stack() = Some(stack); in deallocate_fiber_stack()
198 if let Some(stack) = self.async_state.last_fiber_stack().take() { in flush_fiber_stack()
200 self.engine.allocator().deallocate_fiber_stack(stack); in flush_fiber_stack()
/wasmtime-44.0.1/tests/disas/
H A Dissue-12808.wat25 …Function(StaticModuleIndex(0), DefinedFuncIndex(0)), wasm PC 0x1f, slot at FP-0x30, locals , stack
29 …cModuleIndex(0), DefinedFuncIndex(0)), wasm PC 0x21, slot at FP-0x30, locals , stack I32 @ slot+0x8
33 …leIndex(0), DefinedFuncIndex(0)), wasm PC 0x23, slot at FP-0x30, locals , stack I32 @ slot+0x8, I3…
37 …leIndex(0), DefinedFuncIndex(0)), wasm PC 0x25, slot at FP-0x30, locals , stack I32 @ slot+0x8, I3…
41 …leIndex(0), DefinedFuncIndex(0)), wasm PC 0x27, slot at FP-0x30, locals , stack I32 @ slot+0x8, I3…
53 …leIndex(0), DefinedFuncIndex(0)), wasm PC 0x2b, slot at FP-0x30, locals , stack I32 @ slot+0x8, I3…
68 …leIndex(0), DefinedFuncIndex(0)), wasm PC 0x27, slot at FP-0x30, locals , stack I32 @ slot+0x8, I3…
75 …Function(StaticModuleIndex(0), DefinedFuncIndex(0)), wasm PC 0x1e, slot at FP-0x30, locals , stack
H A Ddebug-exceptions.wat38 …Function(StaticModuleIndex(0), DefinedFuncIndex(0)), wasm PC 0x35, slot at FP-0xc0, locals , stack
42 …Function(StaticModuleIndex(0), DefinedFuncIndex(0)), wasm PC 0x37, slot at FP-0xc0, locals , stack
46 …Function(StaticModuleIndex(0), DefinedFuncIndex(0)), wasm PC 0x3d, slot at FP-0xc0, locals , stack
51 …cModuleIndex(0), DefinedFuncIndex(0)), wasm PC 0x3f, slot at FP-0xc0, locals , stack I32 @ slot+0x8
54 …Function(StaticModuleIndex(0), DefinedFuncIndex(0)), wasm PC 0x40, slot at FP-0xc0, locals , stack
58 …cModuleIndex(0), DefinedFuncIndex(0)), wasm PC 0x42, slot at FP-0xc0, locals , stack I32 @ slot+0x8
92 …cModuleIndex(0), DefinedFuncIndex(0)), wasm PC 0x42, slot at FP-0xc0, locals , stack I32 @ slot+0x8
113 …cModuleIndex(0), DefinedFuncIndex(0)), wasm PC 0x48, slot at FP-0xc0, locals , stack I32 @ slot+0x8
120 …cModuleIndex(0), DefinedFuncIndex(0)), wasm PC 0x4a, slot at FP-0xc0, locals , stack I32 @ slot+0x8
126 …Function(StaticModuleIndex(0), DefinedFuncIndex(0)), wasm PC 0x4b, slot at FP-0xc0, locals , stack
[all …]
/wasmtime-44.0.1/tests/disas/gc/
H A Dtyped-select-and-stack-maps.wat10 ;; Select from two types, one of which requires inclusion in stack maps,
11 ;; resulting in a value that also requires inclusion in stack maps.
17 ;; Make a call, which is a safepoint and has stack maps.
25 ;; Select from two types that do not require inclusion in stack maps,
27 ;; shouldn't include the value in a stack map, because we know that the
29 ;; inclusion in stack maps.
35 ;; Make a call, which is a safepoint and has stack maps.
/wasmtime-44.0.1/cranelift/codegen/src/
H A Dtraversals.rs38 stack: Vec<(Event, ir::Block)>, field
57 self.stack.push((Event::Enter, e)); in iter()
78 let Dfs { stack, seen } = self; in clear()
79 stack.clear(); in clear()
96 let (event, block) = self.dfs.stack.pop()?; in next()
104 self.dfs.stack.push((Event::Exit, block)); in next()
105 self.dfs.stack.extend( in next()
H A Dloop_analysis.rs218 let mut stack: Vec<Block> = Vec::new(); in discover_loop_blocks() localVariable
223 stack.extend( in discover_loop_blocks()
231 while let Some(node) = stack.pop() { in discover_loop_blocks()
275 stack.extend(cfg.pred_iter(continue_dfs).map(|pred| pred.block)); in discover_loop_blocks()
282 let mut stack: SmallVec<[Loop; 8]> = SmallVec::new(); in assign_loop_levels() localVariable
285 stack.push(lp); in assign_loop_levels()
286 while let Some(&lp) = stack.last() { in assign_loop_levels()
290 stack.pop(); in assign_loop_levels()
292 stack.push(parent); in assign_loop_levels()
296 stack.pop(); in assign_loop_levels()
/wasmtime-44.0.1/cranelift/isle/isle/src/
H A Drecursion.rs49 let mut stack = Vec::from_iter(edges.keys().copied().map(Event::Enter)); in terms_in_cycles() localVariable
65 while let Some(event) = stack.pop() { in terms_in_cycles()
71 stack.push(Event::Exit(term_id)); in terms_in_cycles()
74 stack.push(Event::Enter(*dep)); in terms_in_cycles()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/
H A Don_demand.rs187 let stack = match &self.stack_creator { in allocate_fiber_stack() localVariable
189 let stack = stack_creator.new_stack(self.stack_size, self.stack_zeroing)?; in allocate_fiber_stack() localVariable
190 wasmtime_fiber::FiberStack::from_custom(stack) in allocate_fiber_stack()
194 Ok(stack) in allocate_fiber_stack()
198 unsafe fn deallocate_fiber_stack(&self, stack: wasmtime_fiber::FiberStack) { in deallocate_fiber_stack()
201 let _ = stack; in deallocate_fiber_stack()

1234567