X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/93a3786624b2768d89bfa27e46598dc64e2fb70a..ed1e77d3adeb83d26fd1dfb16dd84cabdcefd250:/bytecode/CodeBlockHash.h diff --git a/bytecode/CodeBlockHash.h b/bytecode/CodeBlockHash.h index 20de8ed..4e33988 100644 --- a/bytecode/CodeBlockHash.h +++ b/bytecode/CodeBlockHash.h @@ -56,6 +56,9 @@ public: CodeBlockHash(const SourceCode&, CodeSpecializationKind); explicit CodeBlockHash(const char*); + + bool isSet() const { return !!m_hash; } + bool operator!() const { return !isSet(); } unsigned hash() const { return m_hash; }