summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/ftl/FTLExitArgument.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/JavaScriptCore/ftl/FTLExitArgument.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
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
-