Changeset 252216 in webkit


Ignore:
Timestamp:
Nov 7, 2019 4:37:52 PM (4 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):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r252202 r252216  
     12019-11-07  Tadeu Zagallo  <tzagallo@apple.com>
     2
     3        [WebAssembly] Inspector's DebuggerCallFrame should be aware of Wasm frames
     4        https://bugs.webkit.org/show_bug.cgi?id=203925
     5
     6        Reviewed by Mark Lam.
     7
     8        The DebuggerCallFrame checks for CallFrame::codeBlock to determine if it the current frame is a
     9        valid JS frame, but since the Wasm interpreter stores the Wasm::FunctionCodeBlock to this slot,
     10        that check is not sufficient. Add an extra check for CalleeBits::isWasm.
     11
     12        * debugger/DebuggerCallFrame.cpp:
     13        (JSC::DebuggerCallFrame::sourceIDForCallFrame):
     14
    1152019-11-07  Devin Rousso  <drousso@apple.com>
    216
  • 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.