Split encodeToMemory to packedEncode and abiEncode

This commit is contained in:
Alex Beregszaszi
2017-09-27 11:32:19 +01:00
parent a657d3b1a1
commit 204214f070
4 changed files with 41 additions and 18 deletions
+1 -1
View File
@@ -421,7 +421,7 @@ void ContractCompiler::appendReturnValuePacker(TypePointers const& _typeParamete
utils.fetchFreeMemoryPointer();
//@todo optimization: if we return a single memory array, there should be enough space before
// its data to add the needed parts and we avoid a memory copy.
utils.encodeToMemory(_typeParameters, _typeParameters, true, false, _isLibrary);
utils.abiEncode(_typeParameters, _typeParameters, _isLibrary);
utils.toSizeAfterFreeMemoryPointer();
m_context << Instruction::RETURN;
}