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

Method moveIntoStack

libsolidity/codegen/CompilerUtils.cpp:1452–1460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1450}
1451
1452void CompilerUtils::moveIntoStack(unsigned _stackDepth, unsigned _itemSize)
1453{
1454 if (_stackDepth <= _itemSize)
1455 for (unsigned i = 0; i < _stackDepth; ++i)
1456 rotateStackDown(_stackDepth + _itemSize);
1457 else
1458 for (unsigned i = 0; i < _itemSize; ++i)
1459 rotateStackUp(_stackDepth + _itemSize);
1460}
1461
1462void CompilerUtils::rotateStackUp(unsigned _items)
1463{

Callers 4

storeValueMethod · 0.80
callLowLevelFunctionMethod · 0.80
callYulFunctionMethod · 0.80
visitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected