mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Mention RETURNDATACOPY in GasMeter and SemanticInformation
This commit is contained in:
parent
55737213d1
commit
9ff3064d03
@ -103,6 +103,7 @@ GasMeter::GasConsumption GasMeter::estimateMax(AssemblyItem const& _item, bool _
|
||||
break;
|
||||
case Instruction::CALLDATACOPY:
|
||||
case Instruction::CODECOPY:
|
||||
case Instruction::RETURNDATACOPY:
|
||||
gas += memoryGas(0, -2);
|
||||
gas += wordGas(GasCosts::copyGas, m_state->relativeStackElement(-2));
|
||||
break;
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user