aboutsummaryrefslogtreecommitdiffstats
path: root/Assembly.h
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-05-27 20:02:15 +0800
committerGav Wood <i@gavwood.com>2014-05-27 20:02:15 +0800
commit52fbe7dbfd57f4e884992b6596d54aadb070bd41 (patch)
tree18f203ef24b0d73072a316e0e51f240d8fe90d99 /Assembly.h
parent8a0dcc26c45c29b86fc4c9ea5195b44c8fe4b493 (diff)
downloaddexon-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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Assembly.h b/Assembly.h
index 26392d14..5194d23f 100644
--- a/Assembly.h
+++ b/Assembly.h
@@ -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: