Ignore:
Timestamp:
Nov 7, 2019, 4:37:52 PM (6 years ago)
Author:
Tadeu Zagallo
Message:

[WebAssembly] Inspector's DebuggerCallFrame should be aware of Wasm frames
https://bugs.webkit.org/show_bug.cgi?id=203925

Reviewed by Mark Lam.

The DebuggerCallFrame checks for CallFrame::codeBlock to determine if it the current frame is a
valid JS frame, but since the Wasm interpreter stores the Wasm::FunctionCodeBlock to this slot,
that check is not sufficient. Add an extra check for CalleeBits::isWasm.

  • debugger/DebuggerCallFrame.cpp:

(JSC::DebuggerCallFrame::sourceIDForCallFrame):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp

    r251529 r252216  
    321321        return noSourceID;
    322322    CodeBlock* codeBlock = callFrame->codeBlock();
    323     if (!codeBlock)
     323    if (!codeBlock || callFrame->callee().isWasm())
    324324        return noSourceID;
    325325    return codeBlock->ownerExecutable()->sourceID();
Note: See TracChangeset for help on using the changeset viewer.