diff options
Diffstat (limited to 'Source/JavaScriptCore/dfg/DFGArithMode.cpp')
-rw-r--r-- | Source/JavaScriptCore/dfg/DFGArithMode.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/JavaScriptCore/dfg/DFGArithMode.cpp b/Source/JavaScriptCore/dfg/DFGArithMode.cpp index cc9699a02..84ddae192 100644 --- a/Source/JavaScriptCore/dfg/DFGArithMode.cpp +++ b/Source/JavaScriptCore/dfg/DFGArithMode.cpp @@ -28,6 +28,7 @@ #if ENABLE(DFG_JIT) +#include "JSCInlines.h" #include <wtf/PrintStream.h> namespace WTF { @@ -54,6 +55,22 @@ void printInternal(PrintStream& out, JSC::DFG::Arith::Mode mode) RELEASE_ASSERT_NOT_REACHED(); } +void printInternal(PrintStream& out, JSC::DFG::Arith::RoundingMode mode) +{ + switch (mode) { + case JSC::DFG::Arith::RoundingMode::Int32: + out.print("Int32"); + return; + case JSC::DFG::Arith::RoundingMode::Int32WithNegativeZeroCheck: + out.print("Int32WithNegativeZeroCheck"); + return; + case JSC::DFG::Arith::RoundingMode::Double: + out.print("Double"); + return; + } + RELEASE_ASSERT_NOT_REACHED(); +} + } // namespace WTF #endif // ENABLE(DFG_JIT) |