From dc7a7c7d6f2ccac74572e3fe6f917b348849a83f Mon Sep 17 00:00:00 2001 From: Gaith Hallak Date: Sun, 25 Dec 2022 10:30:55 +0300 Subject: [PATCH] Rename DBGLOC to DBG_LOC --- include/aeb_opcodes.hrl | 2 +- src/aeb_fate_generate_ops.erl | 2 +- src/aeb_opcodes.erl | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/aeb_opcodes.hrl b/include/aeb_opcodes.hrl index f3d84e9..9d0638c 100644 --- a/include/aeb_opcodes.hrl +++ b/include/aeb_opcodes.hrl @@ -143,7 +143,7 @@ -define( 'RETURN', 16#f3). -define( 'DELEGATECALL', 16#f4). --define( 'DBGLOC', 16#b1). +-define( 'DBG_LOC', 16#b1). -define( 'DBG_DEF', 16#b2). -define( 'DBG_UNDEF', 16#b3). diff --git a/src/aeb_fate_generate_ops.erl b/src/aeb_fate_generate_ops.erl index 3cdbcae..c2a9bf8 100644 --- a/src/aeb_fate_generate_ops.erl +++ b/src/aeb_fate_generate_ops.erl @@ -242,7 +242,7 @@ ops_defs() -> , { 'BSL', 16#af, false, true, true, ?GAS(10), [a, a, a], bin_sl, {integer, integer}, integer, "Arg0 := Arg1 << Arg2"} , { '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" } + , { 'DBG_LOC', 16#b1, false, true, true, ?GAS(0), [a, a, a], dbg_loc, {string, integer, integer}, 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" } diff --git a/src/aeb_opcodes.erl b/src/aeb_opcodes.erl index 44b073b..417abfe 100644 --- a/src/aeb_opcodes.erl +++ b/src/aeb_opcodes.erl @@ -162,7 +162,7 @@ opcode(?DELEGATECALL) -> ?DELEGATECALL; opcode(?STATICCALL) -> ?STATICCALL; %% TODO opcode(?REVERT) -> ?REVERT; opcode({comment,X}) -> ?COMMENT(X); -opcode(?DBGLOC) -> ?DBGLOC; +opcode(?DBG_LOC) -> ?DBG_LOC; opcode(?DBG_DEF) -> ?DBG_DEF; opcode(?DBG_UNDEF) -> ?DBG_UNDEF; opcode(?SUICIDE) -> ?SUICIDE. @@ -306,9 +306,9 @@ mnemonic(?DELEGATECALL) -> 'DELEGATECALL' ; mnemonic(?STATICCALL) -> 'STATICCALL' ; mnemonic(?REVERT) -> 'REVERT' ; mnemonic({comment,_}) -> 'COMMENT' ; -mnemonic(?DBGLOC) -> 'DBGLOC' ; -mnemonic(?DBG_DEF) -> 'DBG_DEF' ; -mnemonic(?DBG_UNDEF) -> 'DBG_UNDEF' ; +mnemonic(?DBG_LOC) -> 'DBG_LOC' ; +mnemonic(?DBG_DEF) -> 'DBG_DEF' ; +mnemonic(?DBG_UNDEF) -> 'DBG_UNDEF' ; mnemonic(?SUICIDE) -> 'SUICIDE' . @@ -452,9 +452,9 @@ m_to_op('STATICCALL') -> ?STATICCALL ; m_to_op('REVERT') -> ?REVERT ; m_to_op('COMMENT') -> ?COMMENT("") ; m_to_op('SUICIDE') -> ?SUICIDE ; -m_to_op('DBGLOC') -> ?DBGLOC ; -m_to_op('DBG_DEF') -> ?DBG_DEF ; -m_to_op('DBG_UNDEF') -> ?DBG_UNDEF ; +m_to_op('DBG_LOC') -> ?DBG_LOC ; +m_to_op('DBG_DEF') -> ?DBG_DEF ; +m_to_op('DBG_UNDEF') -> ?DBG_UNDEF ; m_to_op(Data) when 0= Data .