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

Method combineExternalFunctionType

libsolidity/codegen/CompilerUtils.cpp:731–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729}
730
731void CompilerUtils::combineExternalFunctionType(bool _leftAligned)
732{
733 // <address> <function_id>
734 m_context << u256(0xffffffffUL) << Instruction::AND << Instruction::SWAP1;
735 if (!_leftAligned)
736 m_context << ((u256(1) << 160) - 1) << Instruction::AND;
737 leftShiftNumberOnStack(32);
738 m_context << Instruction::OR;
739 if (_leftAligned)
740 leftShiftNumberOnStack(64);
741}
742
743void CompilerUtils::pushCombinedFunctionEntryLabel(Declaration const& _function, bool _runtimeOnly)
744{

Callers 2

storeValueMethod · 0.80
visitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected