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

Method appendDataOffset

libyul/backends/evm/EthAssemblyAdapter.cpp:183–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183void EthAssemblyAdapter::appendDataOffset(std::vector<AbstractAssembly::SubID> const& _subPath)
184{
185 if (auto it = m_dataHashBySubId.find(_subPath[0]); it != m_dataHashBySubId.end())
186 {
187 yulAssert(_subPath.size() == 1, "");
188 m_assembly << evmasm::AssemblyItem(evmasm::PushData, it->second);
189 return;
190 }
191
192 m_assembly.pushSubroutineOffset(m_assembly.encodeSubPath(_subPath));
193}
194
195void EthAssemblyAdapter::appendDataSize(std::vector<AbstractAssembly::SubID> const& _subPath)
196{

Callers

nothing calls this directly

Calls 6

encodeSubPathMethod · 0.80
AssemblyItemClass · 0.70
findMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
pushSubroutineOffsetMethod · 0.45

Tested by

no test coverage detected