Add runtimeOnly option to pushCombinedFunctionEntryLabel

This commit is contained in:
Alex Beregszaszi
2018-03-27 04:00:12 +01:00
parent 0a58e57ceb
commit fab527c414
3 changed files with 8 additions and 8 deletions
+1 -3
View File
@@ -527,9 +527,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
// Do not directly visit the identifier, because this way, we can avoid
// the runtime entry label to be created at the creation time context.
CompilerContext::LocationSetter locationSetter2(m_context, *identifier);
m_context << m_context.functionEntryLabel(m_context.resolveVirtualFunction(*functionDef)).pushTag();
if (m_context.runtimeContext())
utils().leftShiftNumberOnStack(32);
utils().pushCombinedFunctionEntryLabel(m_context.resolveVirtualFunction(*functionDef), false);
shortcutTaken = true;
}