summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/ftl/FTLExitArgument.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/ftl/FTLExitArgument.h')
-rw-r--r--Source/JavaScriptCore/ftl/FTLExitArgument.h24
1 files changed, 9 insertions, 15 deletions
diff --git a/Source/JavaScriptCore/ftl/FTLExitArgument.h b/Source/JavaScriptCore/ftl/FTLExitArgument.h
index ae292c69e..833b3b1eb 100644
--- a/Source/JavaScriptCore/ftl/FTLExitArgument.h
+++ b/Source/JavaScriptCore/ftl/FTLExitArgument.h
@@ -23,20 +23,17 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef FTLExitArgument_h
-#define FTLExitArgument_h
-
-#include <wtf/Platform.h>
+#pragma once
#if ENABLE(FTL_JIT)
-#include "FTLValueFormat.h"
+#include "DataFormat.h"
#include <wtf/PrintStream.h>
namespace JSC { namespace FTL {
struct ExitArgumentRepresentation {
- ValueFormat format;
+ DataFormat format;
unsigned argument;
};
@@ -44,10 +41,10 @@ class ExitArgument {
public:
ExitArgument()
{
- m_representation.format = InvalidValueFormat;
+ m_representation.format = DataFormatNone;
}
- ExitArgument(ValueFormat format, unsigned argument)
+ ExitArgument(DataFormat format, unsigned argument)
{
m_representation.format = format;
m_representation.argument = argument;
@@ -58,9 +55,9 @@ public:
m_representation = representation;
}
- bool operator!() const { return m_representation.format == InvalidValueFormat; }
+ bool operator!() const { return m_representation.format == DataFormatNone; }
- ValueFormat format() const
+ DataFormat format() const
{
ASSERT(*this);
return m_representation.format;
@@ -72,11 +69,11 @@ public:
return m_representation.argument;
}
- ExitArgument withFormat(ValueFormat format)
+ ExitArgument withFormat(DataFormat format)
{
return ExitArgument(format, argument());
}
-
+
ExitArgumentRepresentation representation() const { return m_representation; }
void dump(PrintStream&) const;
@@ -88,6 +85,3 @@ private:
} } // namespace JSC::FTL
#endif // ENABLE(FTL_JIT)
-
-#endif // FTLExitArgument_h
-