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

Method pushCombinedFunctionEntryLabel

libsolidity/codegen/CompilerUtils.cpp:743–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741}
742
743void CompilerUtils::pushCombinedFunctionEntryLabel(Declaration const& _function, bool _runtimeOnly)
744{
745 m_context << m_context.functionEntryLabel(_function).pushTag();
746 // If there is a runtime context, we have to merge both labels into the same
747 // stack slot in case we store it in storage.
748 if (CompilerContext* rtc = m_context.runtimeContext())
749 {
750 leftShiftNumberOnStack(32);
751 if (_runtimeOnly)
752 m_context <<
753 rtc->functionEntryLabel(_function).toSubAssemblyTag(m_context.runtimeSub()) <<
754 Instruction::OR;
755 }
756}
757
758void CompilerUtils::convertType(
759 Type const& _typeOnStack,

Callers 2

visitMethod · 0.80
endVisitMethod · 0.80

Calls 5

pushTagMethod · 0.80
functionEntryLabelMethod · 0.80
runtimeContextMethod · 0.80
toSubAssemblyTagMethod · 0.80
runtimeSubMethod · 0.80

Tested by

no test coverage detected