EVM-C: separate EXTCODESIZE from EXTCODE(COPY)

This commit is contained in:
Paweł Bylica 2016-12-06 13:47:57 +01:00
parent 915da0b984
commit 04cb34fb7d
1 changed files with 10 additions and 5 deletions

View File

@ -130,11 +130,12 @@ enum evm_query_key {
EVM_GAS_LIMIT = 7, ///< Current block gas limit for GASLIMIT. EVM_GAS_LIMIT = 7, ///< Current block gas limit for GASLIMIT.
EVM_NUMBER = 8, ///< Current block number for NUMBER. EVM_NUMBER = 8, ///< Current block number for NUMBER.
EVM_TIMESTAMP = 9, ///< Current block timestamp for TIMESTAMP. EVM_TIMESTAMP = 9, ///< Current block timestamp for TIMESTAMP.
EVM_CODE_BY_ADDRESS = 10, ///< Code by an address for EXTCODE/SIZE. EVM_CODE_BY_ADDRESS = 10, ///< Code by an address for EXTCODECOPY.
EVM_BALANCE = 11, ///< Balance of a given address for BALANCE. EVM_CODE_SIZE = 11, ///< Code size by an address for EXTCODESIZE.
EVM_BLOCKHASH = 12, ///< Block hash of by block number for BLOCKHASH. EVM_BALANCE = 12, ///< Balance of a given address for BALANCE.
EVM_ACCOUNT_EXISTS = 13, ///< Check if an account exists. EVM_BLOCKHASH = 13, ///< Block hash of by block number for BLOCKHASH.
EVM_CALL_DEPTH = 14, ///< Current call depth. EVM_ACCOUNT_EXISTS = 14, ///< Check if an account exists.
EVM_CALL_DEPTH = 15, ///< Current call depth.
}; };
@ -225,6 +226,10 @@ union evm_variant {
/// @param arg evm_variant::address The address to look up. /// @param arg evm_variant::address The address to look up.
/// @result evm_variant::data The appropriate code for the given address or NULL if not found. /// @result evm_variant::data The appropriate code for the given address or NULL if not found.
/// ///
/// - ::EVM_CODE_SIZE
/// @param arg evm_variant::address The address to look up.
/// @result evm_variant::data The appropriate code size for the given address or 0 if not found.
///
/// - ::EVM_BALANCE /// - ::EVM_BALANCE
/// @param arg evm_variant::address The address to look up. /// @param arg evm_variant::address The address to look up.
/// @result evm_variant::data The appropriate balance for the given address or 0 if not found. /// @result evm_variant::data The appropriate balance for the given address or 0 if not found.