Replace JSValue::description() with JSValue::dump(PrintStream&)
https://bugs.webkit.org/show_bug.cgi?id=103866
Reviewed by Darin Adler.
Source/JavaScriptCore:
JSValue now has a dump() method. Anywhere that you would have wanted to use
description(), you can either do toCString(value).data(), or if the callee
is a print()/dataLog() method then you just pass the value directly.
- JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
- bytecode/CodeBlock.cpp:
(JSC::valueToSourceString):
(JSC::CodeBlock::finalizeUnconditionally):
(JSC::ValueProfileBase::dump):
- bytecode/ValueRecovery.h:
(JSC::ValueRecovery::dump):
(JSC::DFG::AbstractValue::dump):
(JSC::DFG::Graph::dump):
- interpreter/Interpreter.cpp:
(JSC::Interpreter::dumpRegisters):
(functionDescribe):
- llint/LLIntSlowPaths.cpp:
(JSC::LLInt::llint_trace_value):
(JSC::JSValue::dump):
Source/WTF:
Make it easier to get a String from a StringPrintStream.
- wtf/StringPrintStream.cpp:
(WTF::StringPrintStream::toString):
(StringPrintStream):
(WTF::toString):