aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/SemanticInformation.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-06-13 23:41:52 +0800
committerGitHub <noreply@github.com>2017-06-13 23:41:52 +0800
commit6b052249dac2bce9d3a87f21cbde3a6429428fc0 (patch)
treed114e3c9fddb70aee8bfe7855bcb56d7b41b3c36 /libevmasm/SemanticInformation.cpp
parent40f5690f68961130073028526f8b923ed0793c8a (diff)
parent8775e77305f84117827f1e6165c4d3776c51f667 (diff)
downloaddexon-solidity-6b052249dac2bce9d3a87f21cbde3a6429428fc0.tar
dexon-solidity-6b052249dac2bce9d3a87f21cbde3a6429428fc0.tar.gz
dexon-solidity-6b052249dac2bce9d3a87f21cbde3a6429428fc0.tar.bz2
dexon-solidity-6b052249dac2bce9d3a87f21cbde3a6429428fc0.tar.lz
dexon-solidity-6b052249dac2bce9d3a87f21cbde3a6429428fc0.tar.xz
dexon-solidity-6b052249dac2bce9d3a87f21cbde3a6429428fc0.tar.zst
dexon-solidity-6b052249dac2bce9d3a87f21cbde3a6429428fc0.zip
Merge pull request #2275 from ethereum/returndata_lll
Add RETURNDATACOPY and RETURNDATASIZE to assembly (and LLL)
Diffstat (limited to 'libevmasm/SemanticInformation.cpp')
-rw-r--r--libevmasm/SemanticInformation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libevmasm/SemanticInformation.cpp b/libevmasm/SemanticInformation.cpp
index 61586e7b..86feb1d2 100644
--- a/libevmasm/SemanticInformation.cpp
+++ b/libevmasm/SemanticInformation.cpp
@@ -143,6 +143,8 @@ bool SemanticInformation::isDeterministic(AssemblyItem const& _item)
case Instruction::MSIZE: // depends on previous writes and reads, not only on content
case Instruction::BALANCE: // depends on previous calls
case Instruction::EXTCODESIZE:
+ case Instruction::RETURNDATACOPY: // depends on previous calls
+ case Instruction::RETURNDATASIZE:
return false;
default:
return true;
@@ -156,6 +158,7 @@ bool SemanticInformation::invalidatesMemory(Instruction _instruction)
case Instruction::CALLDATACOPY:
case Instruction::CODECOPY:
case Instruction::EXTCODECOPY:
+ case Instruction::RETURNDATACOPY:
case Instruction::MSTORE:
case Instruction::MSTORE8:
case Instruction::CALL: