summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/dfg/DFGMinifiedID.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/dfg/DFGMinifiedID.h')
-rw-r--r--Source/JavaScriptCore/dfg/DFGMinifiedID.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/Source/JavaScriptCore/dfg/DFGMinifiedID.h b/Source/JavaScriptCore/dfg/DFGMinifiedID.h
index 24ea25645..f741e7e1f 100644
--- a/Source/JavaScriptCore/dfg/DFGMinifiedID.h
+++ b/Source/JavaScriptCore/dfg/DFGMinifiedID.h
@@ -23,12 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DFGMinifiedID_h
-#define DFGMinifiedID_h
-
-#include <wtf/Platform.h>
-
-#if ENABLE(DFG_JIT)
+#pragma once
#include "DFGCommon.h"
#include <wtf/HashMap.h>
@@ -39,6 +34,7 @@ namespace JSC { namespace DFG {
class Graph;
class MinifiedNode;
class ValueSource;
+struct Node;
class MinifiedID {
public:
@@ -100,11 +96,8 @@ template<> struct DefaultHash<JSC::DFG::MinifiedID> {
};
template<typename T> struct HashTraits;
-template<> struct HashTraits<JSC::DFG::MinifiedID> : SimpleClassHashTraits<JSC::DFG::MinifiedID> { };
+template<> struct HashTraits<JSC::DFG::MinifiedID> : SimpleClassHashTraits<JSC::DFG::MinifiedID> {
+ static const bool emptyValueIsZero = false;
+};
} // namespace WTF
-
-#endif // ENABLE(DFG_JIT)
-
-#endif // DFGMinifiedID_h
-