MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / popFrame

Method popFrame

include/runtime/stackmgr.h:127–138  ·  view source on GitHub ↗

Unsafe pop top frame.

Source from the content-addressed store, hash-verified

125
126 /// Unsafe pop top frame.
127 AST::InstrView::iterator popFrame() noexcept {
128 assuming(!FrameStack.empty());
129 assuming(FrameStack.back().VPos >= FrameStack.back().Locals);
130 assuming(FrameStack.back().VPos - FrameStack.back().Locals <=
131 ValueStack.size() - FrameStack.back().Arity);
132 ValueStack.erase(ValueStack.begin() + FrameStack.back().VPos -
133 FrameStack.back().Locals,
134 ValueStack.end() - FrameStack.back().Arity);
135 auto From = FrameStack.back().From;
136 FrameStack.pop_back();
137 return From;
138 }
139
140 // Get all frames
141 Span<const Frame> getFramesSpan() const { return FrameStack; }

Callers 4

enterFunctionMethod · 0.80
instantiateMethod · 0.80
instantiateMethod · 0.80
runReturnOpMethod · 0.80

Calls 6

backMethod · 0.80
eraseMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected