summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/dfg/DFGVariableEvent.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
commit32761a6cee1d0dee366b885b7b9c777e67885688 (patch)
treed6bec92bebfb216f4126356e55518842c2f476a1 /Source/JavaScriptCore/dfg/DFGVariableEvent.h
parenta4e969f4965059196ca948db781e52f7cfebf19e (diff)
downloadWebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/JavaScriptCore/dfg/DFGVariableEvent.h')
-rw-r--r--Source/JavaScriptCore/dfg/DFGVariableEvent.h23
1 files changed, 8 insertions, 15 deletions
diff --git a/Source/JavaScriptCore/dfg/DFGVariableEvent.h b/Source/JavaScriptCore/dfg/DFGVariableEvent.h
index 5fa4bb686..24423ed2d 100644
--- a/Source/JavaScriptCore/dfg/DFGVariableEvent.h
+++ b/Source/JavaScriptCore/dfg/DFGVariableEvent.h
@@ -26,6 +26,8 @@
#ifndef DFGVariableEvent_h
#define DFGVariableEvent_h
+#include <wtf/Platform.h>
+
#if ENABLE(DFG_JIT)
#include "DFGCommon.h"
@@ -47,7 +49,6 @@ enum VariableEventKind {
// that we start to care about this node.
BirthToFill,
BirthToSpill,
- Birth,
// Events related to how a node is represented.
Fill,
@@ -134,14 +135,6 @@ public:
return event;
}
- static VariableEvent birth(MinifiedID id)
- {
- VariableEvent event;
- event.m_which.id = id.bits();
- event.m_kind = Birth;
- return event;
- }
-
static VariableEvent spill(VariableEventKind kind, MinifiedID id, VirtualRegister virtualRegister, DataFormat format)
{
ASSERT(kind == BirthToSpill || kind == Spill);
@@ -188,17 +181,17 @@ public:
MinifiedID id() const
{
- ASSERT(
- m_kind == BirthToFill || m_kind == Fill || m_kind == BirthToSpill || m_kind == Spill
- || m_kind == Death || m_kind == MovHintEvent || m_kind == Birth);
+ ASSERT(m_kind == BirthToFill || m_kind == Fill
+ || m_kind == BirthToSpill || m_kind == Spill
+ || m_kind == Death || m_kind == MovHintEvent);
return MinifiedID::fromBits(m_which.id);
}
DataFormat dataFormat() const
{
- ASSERT(
- m_kind == BirthToFill || m_kind == Fill || m_kind == BirthToSpill || m_kind == Spill
- || m_kind == SetLocalEvent);
+ ASSERT(m_kind == BirthToFill || m_kind == Fill
+ || m_kind == BirthToSpill || m_kind == Spill
+ || m_kind == SetLocalEvent);
return static_cast<DataFormat>(m_dataFormat);
}