summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/dfg/DFGValueSource.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2013-09-13 12:51:20 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-19 20:50:05 +0200
commitd441d6f39bb846989d95bcf5caf387b42414718d (patch)
treee367e64a75991c554930278175d403c072de6bb8 /Source/JavaScriptCore/dfg/DFGValueSource.cpp
parent0060b2994c07842f4c59de64b5e3e430525c4b90 (diff)
downloadqtwebkit-d441d6f39bb846989d95bcf5caf387b42414718d.tar.gz
Import Qt5x2 branch of QtWebkit for Qt 5.2
Importing a new snapshot of webkit. Change-Id: I2d01ad12cdc8af8cb015387641120a9d7ea5f10c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Source/JavaScriptCore/dfg/DFGValueSource.cpp')
-rw-r--r--Source/JavaScriptCore/dfg/DFGValueSource.cpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/Source/JavaScriptCore/dfg/DFGValueSource.cpp b/Source/JavaScriptCore/dfg/DFGValueSource.cpp
index d59e4842f..879aa3025 100644
--- a/Source/JavaScriptCore/dfg/DFGValueSource.cpp
+++ b/Source/JavaScriptCore/dfg/DFGValueSource.cpp
@@ -30,35 +30,38 @@
namespace JSC { namespace DFG {
-void ValueSource::dump(FILE* out) const
+void ValueSource::dump(PrintStream& out) const
{
switch (kind()) {
case SourceNotSet:
- fprintf(out, "NotSet");
+ out.print("NotSet");
break;
case SourceIsDead:
- fprintf(out, "IsDead");
+ out.print("IsDead");
break;
case ValueInJSStack:
- fprintf(out, "InStack");
+ out.print("InStack");
break;
case Int32InJSStack:
- fprintf(out, "Int32");
+ out.print("Int32");
break;
case CellInJSStack:
- fprintf(out, "Cell");
+ out.print("Cell");
break;
case BooleanInJSStack:
- fprintf(out, "Bool");
+ out.print("Bool");
break;
case DoubleInJSStack:
- fprintf(out, "Double");
+ out.print("Double");
break;
case ArgumentsSource:
- fprintf(out, "Arguments");
+ out.print("Arguments");
break;
case HaveNode:
- fprintf(out, "Node(%d)", m_nodeIndex);
+ out.print("Node(", m_value, ")");
+ break;
+ default:
+ RELEASE_ASSERT_NOT_REACHED();
break;
}
}