Browse Source

Remove unused return codes.

cl-refactor
Paweł Bylica 10 years ago
parent
commit
0e3629387a
  1. 3
      evmjit/include/evmjit/JIT-c.h
  2. 3
      evmjit/include/evmjit/JIT.h
  3. 4
      evmjit/libevmjit-cpp/JitVM.cpp

3
evmjit/include/evmjit/JIT-c.h

@ -39,9 +39,6 @@ typedef enum evmjit_return_code
// Standard error codes
OutOfGas = -1,
StackUnderflow = -2,
BadInstruction = -4,
Rejected = -5, ///< Input data (code, gas, block info, etc.) does not meet JIT requirement and execution request has been rejected
// Internal error codes
LLVMError = -101,

3
evmjit/include/evmjit/JIT.h

@ -101,9 +101,6 @@ enum class ReturnCode
// Standard error codes
OutOfGas = -1,
StackUnderflow = -2,
BadInstruction = -4,
Rejected = -5, ///< Input data (code, gas, block info, etc.) does not meet JIT requirement and execution request has been rejected
// Internal error codes
LLVMError = -101,

4
evmjit/libevmjit-cpp/JitVM.cpp

@ -62,10 +62,6 @@ bytesConstRef JitVM::execImpl(u256& io_gas, ExtVMFace& _ext, OnOpFunc const& _on
case evmjit::ReturnCode::OutOfGas:
BOOST_THROW_EXCEPTION(OutOfGas());
case evmjit::ReturnCode::StackUnderflow: // FIXME: Remove support for detail errors
BOOST_THROW_EXCEPTION(StackUnderflow());
case evmjit::ReturnCode::BadInstruction:
BOOST_THROW_EXCEPTION(BadInstruction());
case evmjit::ReturnCode::LinkerWorkaround: // never happens
env_sload(); // but forces linker to include env_* JIT callback functions
break;

Loading…
Cancel
Save