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

Method callYulFunction

libsolidity/codegen/CompilerContext.cpp:139–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void CompilerContext::callYulFunction(
140 std::string const& _name,
141 unsigned _inArgs,
142 unsigned _outArgs
143)
144{
145 m_externallyUsedYulFunctions.insert(_name);
146 auto const retTag = pushNewTag();
147 CompilerUtils(*this).moveIntoStack(_inArgs);
148 appendJumpTo(namedTag(_name, _inArgs, _outArgs, {}), evmasm::AssemblyItem::JumpType::IntoFunction);
149 adjustStackOffset(static_cast<int>(_outArgs) - 1 - static_cast<int>(_inArgs));
150 *this << retTag.tag();
151}
152
153evmasm::AssemblyItem CompilerContext::lowLevelFunctionTag(
154 std::string const& _name,

Callers 13

handleCatchMethod · 0.80
copyArrayToStorageMethod · 0.80
retrieveLengthMethod · 0.80
accessCalldataTailMethod · 0.80
abiEncodeV2Method · 0.80
abiDecodeV2Method · 0.80
convertTypeMethod · 0.80
storeValueMethod · 0.80
visitMethod · 0.80

Calls 4

insertMethod · 0.80
moveIntoStackMethod · 0.80
tagMethod · 0.80
CompilerUtilsClass · 0.70

Tested by

no test coverage detected