diff options
author | Gav Wood <i@gavwood.com> | 2014-05-27 20:02:15 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-05-27 20:02:15 +0800 |
commit | 52fbe7dbfd57f4e884992b6596d54aadb070bd41 (patch) | |
tree | 18f203ef24b0d73072a316e0e51f240d8fe90d99 /Assembly.h | |
parent | 8a0dcc26c45c29b86fc4c9ea5195b44c8fe4b493 (diff) | |
download | dexon-solidity-52fbe7dbfd57f4e884992b6596d54aadb070bd41.tar.gz dexon-solidity-52fbe7dbfd57f4e884992b6596d54aadb070bd41.tar.zst dexon-solidity-52fbe7dbfd57f4e884992b6596d54aadb070bd41.zip |
Start of pinhole optimiser. Minor fix for debugger.
Diffstat (limited to 'Assembly.h')
-rw-r--r-- | Assembly.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -51,11 +51,15 @@ public: int deposit() const; + bool operator==(int _mask) const { return -_mask == (int)m_type || (m_type == Operation && _mask == (int)m_data); } + private: AssemblyItemType m_type; u256 m_data; }; +inline bool operator==(int _i, AssemblyItem _ai) { return _ai.operator==(_i); } + class Assembly { public: |