MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / top

Method top

pulley/src/interp.rs:790–793  ·  view source on GitHub ↗

Returns a pointer to the top of the stack (the highest address). Note that the returned pointer has provenance for the entire stack allocation, however, not just the top.

(&mut self)

Source from the content-addressed store, hash-verified

788 /// Note that the returned pointer has provenance for the entire stack
789 /// allocation, however, not just the top.
790 fn top(&mut self) -> *mut u8 {
791 let len = self.len();
792 unsafe { self.base().add(len) }
793 }
794
795 /// Returns a pointer to the base of the stack (the lowest address).
796 ///

Callers 1

with_stackMethod · 0.45

Calls 3

lenMethod · 0.45
addMethod · 0.45
baseMethod · 0.45

Tested by

no test coverage detected