MCPcopy Create free account
hub / github.com/argotorg/solidity / popAndJump

Method popAndJump

libsolidity/codegen/CompilerUtils.cpp:1495–1502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1493}
1494
1495void CompilerUtils::popAndJump(unsigned _toHeight, evmasm::AssemblyItem const& _jumpTo)
1496{
1497 solAssert(m_context.stackHeight() >= _toHeight);
1498 unsigned amount = m_context.stackHeight() - _toHeight;
1499 popStackSlots(amount);
1500 m_context.appendJumpTo(_jumpTo);
1501 m_context.adjustStackOffset(static_cast<int>(amount));
1502}
1503
1504unsigned CompilerUtils::sizeOnStack(std::vector<Type const*> const& _variableTypes)
1505{

Callers 1

visitMethod · 0.80

Calls 3

adjustStackOffsetMethod · 0.80
stackHeightMethod · 0.45
appendJumpToMethod · 0.45

Tested by

no test coverage detected