aboutsummaryrefslogtreecommitdiffstats
path: root/ExpressionCompiler.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-02-10 21:57:01 +0800
committerChristian <c@ethdev.com>2015-02-12 18:33:09 +0800
commit79aec95228f5c766daaa9d04a3800be99ded8015 (patch)
treed1b36cff889710ea9d895722a28d6aeb67fe3761 /ExpressionCompiler.h
parent20b4c6900982302fd07df12e2a1f6f0e15886834 (diff)
downloaddexon-solidity-79aec95228f5c766daaa9d04a3800be99ded8015.tar.gz
dexon-solidity-79aec95228f5c766daaa9d04a3800be99ded8015.tar.zst
dexon-solidity-79aec95228f5c766daaa9d04a3800be99ded8015.zip
Simple copy of bytes to storage.
Diffstat (limited to 'ExpressionCompiler.h')
-rw-r--r--ExpressionCompiler.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ExpressionCompiler.h b/ExpressionCompiler.h
index 3c94d74c..bd45e067 100644
--- a/ExpressionCompiler.h
+++ b/ExpressionCompiler.h
@@ -148,7 +148,8 @@ private:
/// be on the top of the stack, if any) in the lvalue and removes the reference.
/// Also removes the stored value from the stack if @a _move is
/// true. @a _expression is the current expression, used for error reporting.
- void storeValue(Expression const& _expression, bool _move = false) const;
+ /// @a _sourceType is the type of the expression that is assigned.
+ void storeValue(Expression const& _expression, Type const& _sourceType, bool _move = false) const;
/// Stores zero in the lvalue.
/// @a _expression is the current expression, used for error reporting.
void setToZero(Expression const& _expression) const;
@@ -159,6 +160,8 @@ private:
private:
/// Convenience function to retrieve Value from Storage. Specific version of @ref retrieveValue
void retrieveValueFromStorage(TypePointer const& _type, bool _remove = false) const;
+ /// Copies from a byte array to a byte array in storage, both references on the stack.
+ void copyByteArrayToStorage(ByteArrayType const& _targetType, ByteArrayType const& _sourceType) const;
CompilerContext* m_context;
LValueType m_type = LValueType::None;