Title: [284805] branches/safari-612-branch/Source/_javascript_Core
Revision
284805
Author
[email protected]
Date
2021-10-25 12:09:50 -0700 (Mon, 25 Oct 2021)

Log Message

Cherry-pick r284467. rdar://problem/84327812

    Wasm Table can take arbitrary default value
    https://bugs.webkit.org/show_bug.cgi?id=231933
    rdar://84327812

    Reviewed by Robin Morisset.

    * wasm/WasmTable.cpp:
    (JSC::Wasm::Table::grow):

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@284467 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-612-branch/Source/_javascript_Core/ChangeLog (284804 => 284805)


--- branches/safari-612-branch/Source/_javascript_Core/ChangeLog	2021-10-25 19:09:47 UTC (rev 284804)
+++ branches/safari-612-branch/Source/_javascript_Core/ChangeLog	2021-10-25 19:09:50 UTC (rev 284805)
@@ -1,5 +1,31 @@
 2021-10-25  Null  <[email protected]>
 
+        Cherry-pick r284467. rdar://problem/84327812
+
+    Wasm Table can take arbitrary default value
+    https://bugs.webkit.org/show_bug.cgi?id=231933
+    rdar://84327812
+    
+    Reviewed by Robin Morisset.
+    
+    * wasm/WasmTable.cpp:
+    (JSC::Wasm::Table::grow):
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@284467 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2021-10-18  Yusuke Suzuki  <[email protected]>
+
+            Wasm Table can take arbitrary default value
+            https://bugs.webkit.org/show_bug.cgi?id=231933
+            rdar://84327812
+
+            Reviewed by Robin Morisset.
+
+            * wasm/WasmTable.cpp:
+            (JSC::Wasm::Table::grow):
+
+2021-10-25  Null  <[email protected]>
+
         Cherry-pick r282984. rdar://problem/77587429
 
     Web Inspector: Graphics: add instrumentation for new `CanvasRenderingContext2DSettings`

Modified: branches/safari-612-branch/Source/_javascript_Core/wasm/WasmTable.cpp (284804 => 284805)


--- branches/safari-612-branch/Source/_javascript_Core/wasm/WasmTable.cpp	2021-10-25 19:09:47 UTC (rev 284804)
+++ branches/safari-612-branch/Source/_javascript_Core/wasm/WasmTable.cpp	2021-10-25 19:09:50 UTC (rev 284805)
@@ -115,13 +115,14 @@
     };
 
     if (auto* funcRefTable = asFuncrefTable()) {
-        if (!checkedGrow(funcRefTable->m_importableFunctions, [] (auto&) { }))
+        if (!checkedGrow(funcRefTable->m_importableFunctions, [](auto&) { }))
             return std::nullopt;
-        if (!checkedGrow(funcRefTable->m_instances, [] (auto&) { }))
+        if (!checkedGrow(funcRefTable->m_instances, [](auto&) { }))
             return std::nullopt;
     }
 
-    if (!checkedGrow(m_jsValues, [defaultValue] (WriteBarrier<Unknown>& slot) { slot.setStartingValue(defaultValue); }))
+    VM& vm = m_owner->vm();
+    if (!checkedGrow(m_jsValues, [&](WriteBarrier<Unknown>& slot) { slot.set(vm, m_owner, defaultValue); }))
         return std::nullopt;
 
     setLength(newLength);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to