aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/Instruction.h
diff options
context:
space:
mode:
authorValentin Wüstholz <wuestholz@gmail.com>2017-01-23 03:49:12 +0800
committerchriseth <c@ethdev.com>2017-01-26 23:39:07 +0800
commit9bcbd93ac59a19320fd56e27c58a6283f2450666 (patch)
treecf102bce6745c1e771dcacbd83a6e850a09c0054 /libevmasm/Instruction.h
parent102fd7ee5daeb7d7a7bb1254cf0ce71a23ad1220 (diff)
downloaddexon-solidity-9bcbd93ac59a19320fd56e27c58a6283f2450666.tar
dexon-solidity-9bcbd93ac59a19320fd56e27c58a6283f2450666.tar.gz
dexon-solidity-9bcbd93ac59a19320fd56e27c58a6283f2450666.tar.bz2
dexon-solidity-9bcbd93ac59a19320fd56e27c58a6283f2450666.tar.lz
dexon-solidity-9bcbd93ac59a19320fd56e27c58a6283f2450666.tar.xz
dexon-solidity-9bcbd93ac59a19320fd56e27c58a6283f2450666.tar.zst
dexon-solidity-9bcbd93ac59a19320fd56e27c58a6283f2450666.zip
Change translation of implicit throws (issue #1589).
This adds a new invalid instruction that is used for encoding implicit throws that are emitted by the compiler. This makes it possible to distinguish such runtime errors from user-provided, explicit throws.
Diffstat (limited to 'libevmasm/Instruction.h')
-rw-r--r--libevmasm/Instruction.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libevmasm/Instruction.h b/libevmasm/Instruction.h
index 2dd451cd..7432f04d 100644
--- a/libevmasm/Instruction.h
+++ b/libevmasm/Instruction.h
@@ -171,6 +171,8 @@ enum class Instruction: uint8_t
LOG3, ///< Makes a log entry; 3 topics.
LOG4, ///< Makes a log entry; 4 topics.
+ INVALID = 0xef, ///< invalid instruction for expressing runtime errors (e.g., division-by-zero)
+
CREATE = 0xf0, ///< create a new account with associated code
CALL, ///< message-call into an account
CALLCODE, ///< message-call with another account's code only