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

Method allocateUnboundedFunction

libsolidity/codegen/YulUtilFunctions.cpp:3241–3254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3239}
3240
3241std::string YulUtilFunctions::allocateUnboundedFunction()
3242{
3243 std::string functionName = "allocate_unbounded";
3244 return m_functionCollector.createFunction(functionName, [&]() {
3245 return Whiskers(R"(
3246 function <functionName>() -> memPtr {
3247 memPtr := mload(<freeMemoryPointer>)
3248 }
3249 )")
3250 ("freeMemoryPointer", std::to_string(CompilerUtils::freeMemoryPointer))
3251 ("functionName", functionName)
3252 .render();
3253 });
3254}
3255
3256std::string YulUtilFunctions::finalizeAllocationFunction()
3257{

Callers 5

endVisitMethod · 0.80
appendBareCallMethod · 0.80
deployCodeMethod · 0.80

Calls 4

WhiskersClass · 0.85
renderMethod · 0.80
to_stringFunction · 0.50
createFunctionMethod · 0.45

Tested by

no test coverage detected