From dd6ec9bc9ba7017f10538fd61abd9b89d7a5d8a3 Mon Sep 17 00:00:00 2001 From: Gaith Hallak Date: Fri, 23 Dec 2022 20:11:43 +0300 Subject: [PATCH] Rename DBGDEF and DBGUNDEF to DBG_DEF and DBG_UNDEF --- include/aeb_opcodes.hrl | 4 ++-- src/aeb_fate_generate_ops.erl | 4 ++-- src/aeb_opcodes.erl | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/aeb_opcodes.hrl b/include/aeb_opcodes.hrl index 4eab4e2..f3d84e9 100644 --- a/include/aeb_opcodes.hrl +++ b/include/aeb_opcodes.hrl @@ -144,8 +144,8 @@ -define( 'DELEGATECALL', 16#f4). -define( 'DBGLOC', 16#b1). --define( 'DBGDEF', 16#b2). --define( 'DBGUNDEF', 16#b3). +-define( 'DBG_DEF', 16#b2). +-define( 'DBG_UNDEF', 16#b3). -define( 'STATICCALL', 16#fa). diff --git a/src/aeb_fate_generate_ops.erl b/src/aeb_fate_generate_ops.erl index 6594cce..3cdbcae 100644 --- a/src/aeb_fate_generate_ops.erl +++ b/src/aeb_fate_generate_ops.erl @@ -243,8 +243,8 @@ ops_defs() -> , { 'BSR', 16#b0, false, true, true, ?GAS(10), [a, a, a], bin_sr, {integer, integer}, integer, "Arg0 := Arg1 >> Arg2"} , { 'DBGLOC', 16#b1, false, true, true, ?GAS(0), [a, a, a], dbgloc, {string, integer, integer}, none, "Arg" } - , { 'DBGDEF', 16#b2, false, true, true, ?GAS(0), [a, a], dbgdef, {string, any}, none, "Arg" } - , { 'DBGUNDEF', 16#b3, false, true, true, ?GAS(0), [a, a], dbgundef, {string, any}, none, "Arg" } + , { 'DBG_DEF', 16#b2, false, true, true, ?GAS(0), [a, a], dbg_def, {string, any}, none, "Arg" } + , { 'DBG_UNDEF', 16#b3, false, true, true, ?GAS(0), [a, a], dbg_undef, {string, any}, none, "Arg" } , { 'DEACTIVATE', 16#fa, false, true, true, ?GAS(10), [], deactivate, {}, none, "Mark the current contract for deactivation."} , { 'ABORT', 16#fb, true, true, true, ?GAS(10), [a], abort, {string}, none, "Abort execution (dont use all gas) with error message in Arg0."} diff --git a/src/aeb_opcodes.erl b/src/aeb_opcodes.erl index eb5d127..44b073b 100644 --- a/src/aeb_opcodes.erl +++ b/src/aeb_opcodes.erl @@ -163,8 +163,8 @@ opcode(?STATICCALL) -> ?STATICCALL; %% TODO opcode(?REVERT) -> ?REVERT; opcode({comment,X}) -> ?COMMENT(X); opcode(?DBGLOC) -> ?DBGLOC; -opcode(?DBGDEF) -> ?DBGDEF; -opcode(?DBGUNDEF) -> ?DBGUNDEF; +opcode(?DBG_DEF) -> ?DBG_DEF; +opcode(?DBG_UNDEF) -> ?DBG_UNDEF; opcode(?SUICIDE) -> ?SUICIDE. @@ -307,8 +307,8 @@ mnemonic(?STATICCALL) -> 'STATICCALL' ; mnemonic(?REVERT) -> 'REVERT' ; mnemonic({comment,_}) -> 'COMMENT' ; mnemonic(?DBGLOC) -> 'DBGLOC' ; -mnemonic(?DBGDEF) -> 'DBGDEF' ; -mnemonic(?DBGUNDEF) -> 'DBGUNDEF' ; +mnemonic(?DBG_DEF) -> 'DBG_DEF' ; +mnemonic(?DBG_UNDEF) -> 'DBG_UNDEF' ; mnemonic(?SUICIDE) -> 'SUICIDE' . @@ -453,8 +453,8 @@ m_to_op('REVERT') -> ?REVERT ; m_to_op('COMMENT') -> ?COMMENT("") ; m_to_op('SUICIDE') -> ?SUICIDE ; m_to_op('DBGLOC') -> ?DBGLOC ; -m_to_op('DBGDEF') -> ?DBGDEF ; -m_to_op('DBGUNDEF') -> ?DBGUNDEF ; +m_to_op('DBG_DEF') -> ?DBG_DEF ; +m_to_op('DBG_UNDEF') -> ?DBG_UNDEF ; m_to_op(Data) when 0= Data .