diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-03 21:02:58 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-06 16:38:04 +0800 |
commit | 8c1d928c944b70cf7318d8277cdfbf2ef0421857 (patch) | |
tree | 6033cb8918ae2049b6b339e716067a7f3db82198 /ExpressionCompiler.h | |
parent | 59a390937637111ebdadf2d3af57122a10bdd012 (diff) | |
download | dexon-solidity-8c1d928c944b70cf7318d8277cdfbf2ef0421857.tar.gz dexon-solidity-8c1d928c944b70cf7318d8277cdfbf2ef0421857.tar.zst dexon-solidity-8c1d928c944b70cf7318d8277cdfbf2ef0421857.zip |
Solidity SHA3 can now take multiple arguments
Diffstat (limited to 'ExpressionCompiler.h')
-rw-r--r-- | ExpressionCompiler.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ExpressionCompiler.h b/ExpressionCompiler.h index 7de577e6..b977657b 100644 --- a/ExpressionCompiler.h +++ b/ExpressionCompiler.h @@ -97,10 +97,12 @@ private: unsigned appendArgumentCopyToMemory(TypePointers const& _types, std::vector<ASTPointer<Expression const>> const& _arguments, unsigned _memoryOffset = 0); - /// Appends code that copies a type to memory. + /// Appends code that copies the given arguments that should all have the + /// same @a _type to memory (with optional offset). /// @returns the number of bytes copied to memory - unsigned appendTypeConversionAndMoveToMemory(Type const& _expectedType, Type const& _type, - Location const& _location, unsigned _memoryOffset = 0); + unsigned appendSameTypeArgumentsCopyToMemory(TypePointer const& _type, + std::vector<ASTPointer<Expression const>> const& _arguments, + unsigned _memoryOffset = 0); /// Appends code that evaluates a single expression and copies it to memory (with optional offset). /// @returns the number of bytes copied to memory unsigned appendExpressionCopyToMemory(Type const& _expectedType, Expression const& _expression, |