diff options
author | chriseth <c@ethdev.com> | 2016-11-11 18:41:50 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-11-16 21:37:18 +0800 |
commit | e51f852504556f952ae1350c070409e3c4981cc0 (patch) | |
tree | 245a5605753ceca004513945a88f33fbc8fed81b /libevmasm/AssemblyItem.cpp | |
parent | e543bd34c0b4884b5a27555f698f50af6a1c0b81 (diff) | |
download | dexon-solidity-e51f852504556f952ae1350c070409e3c4981cc0.tar dexon-solidity-e51f852504556f952ae1350c070409e3c4981cc0.tar.gz dexon-solidity-e51f852504556f952ae1350c070409e3c4981cc0.tar.bz2 dexon-solidity-e51f852504556f952ae1350c070409e3c4981cc0.tar.lz dexon-solidity-e51f852504556f952ae1350c070409e3c4981cc0.tar.xz dexon-solidity-e51f852504556f952ae1350c070409e3c4981cc0.tar.zst dexon-solidity-e51f852504556f952ae1350c070409e3c4981cc0.zip |
Converted sub assembly to smart pointer.
Diffstat (limited to 'libevmasm/AssemblyItem.cpp')
-rw-r--r-- | libevmasm/AssemblyItem.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libevmasm/AssemblyItem.cpp b/libevmasm/AssemblyItem.cpp index 2eae20af..bc8c87aa 100644 --- a/libevmasm/AssemblyItem.cpp +++ b/libevmasm/AssemblyItem.cpp @@ -127,8 +127,14 @@ ostream& dev::eth::operator<<(ostream& _out, AssemblyItem const& _item) _out << " PushString" << hex << (unsigned)_item.data(); break; case PushTag: - _out << " PushTag " << _item.data(); + { + size_t subId = _item.splitForeignPushTag().first; + if (subId == size_t(-1)) + _out << " PushTag " << _item.splitForeignPushTag().second; + else + _out << " PushTag " << subId << ":" << _item.splitForeignPushTag().second; break; + } case Tag: _out << " Tag " << _item.data(); break; @@ -136,10 +142,10 @@ ostream& dev::eth::operator<<(ostream& _out, AssemblyItem const& _item) _out << " PushData " << hex << (unsigned)_item.data(); break; case PushSub: - _out << " PushSub " << hex << h256(_item.data()).abridgedMiddle(); + _out << " PushSub " << hex << size_t(_item.data()); break; case PushSubSize: - _out << " PushSubSize " << hex << h256(_item.data()).abridgedMiddle(); + _out << " PushSubSize " << hex << size_t(_item.data()); break; case PushProgramSize: _out << " PushProgramSize"; |