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

Method toSubAssemblyTag

libevmasm/AssemblyItem.cpp:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53AssemblyItem AssemblyItem::toSubAssemblyTag(SubAssemblyID _subId) const
54{
55 assertThrow(data() < (u256(1) << 64), util::Exception, "Tag already has subassembly set.");
56 assertThrow(m_type == PushTag || m_type == Tag, util::Exception, "");
57 auto tag = static_cast<size_t>(u256(data()) & 0xffffffffffffffffULL);
58 AssemblyItem r = *this;
59 r.m_type = PushTag;
60 r.setPushTagSubIdAndTag(_subId, tag);
61 return r;
62}
63
64std::pair<SubAssemblyID, size_t> AssemblyItem::splitForeignPushTag() const
65{

Callers 3

Optimiser.cppFile · 0.80
pushZeroValueMethod · 0.80

Calls 1

setPushTagSubIdAndTagMethod · 0.80

Tested by

no test coverage detected