Title: [252216] trunk/Source/_javascript_Core
Revision
252216
Author
[email protected]
Date
2019-11-07 16:37:52 -0800 (Thu, 07 Nov 2019)

Log 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):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (252215 => 252216)


--- trunk/Source/_javascript_Core/ChangeLog	2019-11-07 23:56:04 UTC (rev 252215)
+++ trunk/Source/_javascript_Core/ChangeLog	2019-11-08 00:37:52 UTC (rev 252216)
@@ -1,3 +1,17 @@
+2019-11-07  Tadeu Zagallo  <[email protected]>
+
+        [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):
+
 2019-11-07  Devin Rousso  <[email protected]>
 
         Web Inspector: REGRESSION(r250087): inspector/model/remote-object.html is timing out

Modified: trunk/Source/_javascript_Core/debugger/DebuggerCallFrame.cpp (252215 => 252216)


--- trunk/Source/_javascript_Core/debugger/DebuggerCallFrame.cpp	2019-11-07 23:56:04 UTC (rev 252215)
+++ trunk/Source/_javascript_Core/debugger/DebuggerCallFrame.cpp	2019-11-08 00:37:52 UTC (rev 252216)
@@ -320,7 +320,7 @@
     if (!callFrame)
         return noSourceID;
     CodeBlock* codeBlock = callFrame->codeBlock();
-    if (!codeBlock)
+    if (!codeBlock || callFrame->callee().isWasm())
         return noSourceID;
     return codeBlock->ownerExecutable()->sourceID();
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to