Title: [253168] trunk/Source/_javascript_Core
Revision
253168
Author
[email protected]
Date
2019-12-05 13:05:45 -0800 (Thu, 05 Dec 2019)

Log Message

[WebAssembly] Fix bad assertion in LLIntPlan
https://bugs.webkit.org/show_bug.cgi?id=204893

Reviewed by Mark Lam.

Before landing r253140 I introduced an assertion in Wasm::LLIntPlan that the pointer to previously
compiled callees must be non-null. However, it's perfectly valid for the pointer to be null when the
module has no functions.

* wasm/WasmLLIntPlan.cpp:
(JSC::Wasm::LLIntPlan::LLIntPlan):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (253167 => 253168)


--- trunk/Source/_javascript_Core/ChangeLog	2019-12-05 21:03:17 UTC (rev 253167)
+++ trunk/Source/_javascript_Core/ChangeLog	2019-12-05 21:05:45 UTC (rev 253168)
@@ -1,3 +1,17 @@
+2019-12-05  Tadeu Zagallo  <[email protected]>
+
+        [WebAssembly] Fix bad assertion in LLIntPlan
+        https://bugs.webkit.org/show_bug.cgi?id=204893
+
+        Reviewed by Mark Lam.
+
+        Before landing r253140 I introduced an assertion in Wasm::LLIntPlan that the pointer to previously
+        compiled callees must be non-null. However, it's perfectly valid for the pointer to be null when the
+        module has no functions.
+
+        * wasm/WasmLLIntPlan.cpp:
+        (JSC::Wasm::LLIntPlan::LLIntPlan):
+
 2019-12-05  Mark Lam  <[email protected]>
 
         computeIfUsingFuzzerAgent() is called before parsing command line arguments.

Modified: trunk/Source/_javascript_Core/wasm/WasmLLIntPlan.cpp (253167 => 253168)


--- trunk/Source/_javascript_Core/wasm/WasmLLIntPlan.cpp	2019-12-05 21:03:17 UTC (rev 253167)
+++ trunk/Source/_javascript_Core/wasm/WasmLLIntPlan.cpp	2019-12-05 21:05:45 UTC (rev 253168)
@@ -56,7 +56,7 @@
     : Base(context, WTFMove(info), AsyncWork::FullCompile, WTFMove(task))
     , m_callees(callees)
 {
-    ASSERT(m_callees);
+    ASSERT(m_callees || !m_moduleInformation->functions.size());
     prepare();
     m_currentIndex = m_moduleInformation->functions.size();
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to