diff options
| author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-05-24 08:28:08 +0000 |
|---|---|---|
| committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-05-24 08:28:08 +0000 |
| commit | a4e969f4965059196ca948db781e52f7cfebf19e (patch) | |
| tree | 6ca352808c8fdc52006a0f33f6ae3c593b23867d /Source/JavaScriptCore/ftl/FTLExitArgument.h | |
| parent | 41386e9cb918eed93b3f13648cbef387e371e451 (diff) | |
| download | WebKitGtk-tarball-a4e969f4965059196ca948db781e52f7cfebf19e.tar.gz | |
webkitgtk-2.12.3webkitgtk-2.12.3
Diffstat (limited to 'Source/JavaScriptCore/ftl/FTLExitArgument.h')
| -rw-r--r-- | Source/JavaScriptCore/ftl/FTLExitArgument.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/Source/JavaScriptCore/ftl/FTLExitArgument.h b/Source/JavaScriptCore/ftl/FTLExitArgument.h index ae292c69e..74c27d9d3 100644 --- a/Source/JavaScriptCore/ftl/FTLExitArgument.h +++ b/Source/JavaScriptCore/ftl/FTLExitArgument.h @@ -26,17 +26,15 @@ #ifndef FTLExitArgument_h #define FTLExitArgument_h -#include <wtf/Platform.h> - #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 +42,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 +56,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 +70,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; |
