@@ -277,23 +277,32 @@ String CallFrame::friendlyFunctionName()
277277
278278void CallFrame::dump (PrintStream& out) const
279279{
280- if (!this ->isWasmFrame ()) {
281- if (CodeBlock* codeBlock = this ->codeBlock ()) {
282- out.print (codeBlock->inferredName (), " #" , codeBlock->hashAsStringIfPossible (), " [" , codeBlock->jitType (), " " , bytecodeIndex (), " ]" );
283-
284- out.print (" (" );
285- thisValue ().dumpForBacktrace (out);
280+ if (this ->isWasmFrame ()) {
281+ #if ENABLE(WEBASSEMBLY)
282+ Wasm::Callee* wasmCallee = callee ().asWasmCallee ();
283+ out.print (Wasm::makeString (wasmCallee->indexOrName ()), " [" , Wasm::makeString (wasmCallee->compilationMode ()), " ]" );
284+ out.print (" (Wasm::Instance: " , RawPointer (wasmInstance ()), " )" );
285+ #else
286+ out.print (RawPointer (returnPCForInspection ()));
287+ #endif
288+ return ;
289+ }
286290
287- for (size_t i = 0 ; i < argumentCount (); ++i) {
288- out.print (" , " );
289- JSValue value = argument (i);
290- value.dumpForBacktrace (out);
291- }
291+ if (CodeBlock* codeBlock = this ->codeBlock ()) {
292+ out.print (codeBlock->inferredName (), " #" , codeBlock->hashAsStringIfPossible (), " [" , codeBlock->jitType (), " " , bytecodeIndex (), " ]" );
292293
293- out.print (" )" );
294+ out.print (" (" );
295+ thisValue ().dumpForBacktrace (out);
294296
295- return ;
297+ for (size_t i = 0 ; i < argumentCount (); ++i) {
298+ out.print (" , " );
299+ JSValue value = argument (i);
300+ value.dumpForBacktrace (out);
296301 }
302+
303+ out.print (" )" );
304+
305+ return ;
297306 }
298307
299308 out.print (RawPointer (returnPCForInspection ()));
0 commit comments