diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-09-27 05:10:30 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-09-27 18:32:19 +0800 |
commit | 204214f0700179e3d8fa97c77d4f92acd349f015 (patch) | |
tree | 26838663fe5b2a890eceee50434db778c802ca13 /libsolidity/codegen/CompilerUtils.cpp | |
parent | a657d3b1a165d9ec14f9875db2380954f9ca37cf (diff) | |
download | dexon-solidity-204214f0700179e3d8fa97c77d4f92acd349f015.tar dexon-solidity-204214f0700179e3d8fa97c77d4f92acd349f015.tar.gz dexon-solidity-204214f0700179e3d8fa97c77d4f92acd349f015.tar.bz2 dexon-solidity-204214f0700179e3d8fa97c77d4f92acd349f015.tar.lz dexon-solidity-204214f0700179e3d8fa97c77d4f92acd349f015.tar.xz dexon-solidity-204214f0700179e3d8fa97c77d4f92acd349f015.tar.zst dexon-solidity-204214f0700179e3d8fa97c77d4f92acd349f015.zip |
Split encodeToMemory to packedEncode and abiEncode
Diffstat (limited to 'libsolidity/codegen/CompilerUtils.cpp')
-rw-r--r-- | libsolidity/codegen/CompilerUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/codegen/CompilerUtils.cpp b/libsolidity/codegen/CompilerUtils.cpp index ce97ed61..f9b181ae 100644 --- a/libsolidity/codegen/CompilerUtils.cpp +++ b/libsolidity/codegen/CompilerUtils.cpp @@ -191,7 +191,7 @@ void CompilerUtils::encodeToMemory( { // Use the new JULIA-based encoding function auto stackHeightBefore = m_context.stackHeight(); - abiEncode(_givenTypes, targetTypes, _encodeAsLibraryTypes); + abiEncodeV2(_givenTypes, targetTypes, _encodeAsLibraryTypes); solAssert(stackHeightBefore - m_context.stackHeight() == sizeOnStack(_givenTypes), ""); return; } @@ -302,7 +302,7 @@ void CompilerUtils::encodeToMemory( popStackSlots(argSize + dynPointers + 1); } -void CompilerUtils::abiEncode( +void CompilerUtils::abiEncodeV2( TypePointers const& _givenTypes, TypePointers const& _targetTypes, bool _encodeAsLibraryTypes |