Title: [291649] branches/safari-613-branch/Source/_javascript_Core
Revision
291649
Author
[email protected]
Date
2022-03-22 10:55:37 -0700 (Tue, 22 Mar 2022)

Log Message

Cherry-pick r290873. rdar://problem/89770507

    Fix JITOperationList::addPointers() to support JIT_OPERATION_VALIDATION_ASSERT_ENABLED.
    https://bugs.webkit.org/show_bug.cgi?id=237504
    <rdar://problem/89770507>

    Reviewed by Saam Barati.

    According to tagJSCCodePtrImpl(), we will only use an operation's validation entry
    if Options::useJITCage().  Make JITOperationList::addPointers() conform to this.

    * assembler/JITOperationList.cpp:
    (JSC::JITOperationList::addPointers):

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

Modified Paths

Diff

Modified: branches/safari-613-branch/Source/_javascript_Core/ChangeLog (291648 => 291649)


--- branches/safari-613-branch/Source/_javascript_Core/ChangeLog	2022-03-22 17:55:34 UTC (rev 291648)
+++ branches/safari-613-branch/Source/_javascript_Core/ChangeLog	2022-03-22 17:55:37 UTC (rev 291649)
@@ -1,5 +1,38 @@
 2022-03-21  Alan Coon  <[email protected]>
 
+        Cherry-pick r290873. rdar://problem/89770507
+
+    Fix JITOperationList::addPointers() to support JIT_OPERATION_VALIDATION_ASSERT_ENABLED.
+    https://bugs.webkit.org/show_bug.cgi?id=237504
+    <rdar://problem/89770507>
+    
+    Reviewed by Saam Barati.
+    
+    According to tagJSCCodePtrImpl(), we will only use an operation's validation entry
+    if Options::useJITCage().  Make JITOperationList::addPointers() conform to this.
+    
+    * assembler/JITOperationList.cpp:
+    (JSC::JITOperationList::addPointers):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@290873 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-03-05  Mark Lam  <[email protected]>
+
+            Fix JITOperationList::addPointers() to support JIT_OPERATION_VALIDATION_ASSERT_ENABLED.
+            https://bugs.webkit.org/show_bug.cgi?id=237504
+            <rdar://problem/89770507>
+
+            Reviewed by Saam Barati.
+
+            According to tagJSCCodePtrImpl(), we will only use an operation's validation entry
+            if Options::useJITCage().  Make JITOperationList::addPointers() conform to this.
+
+            * assembler/JITOperationList.cpp:
+            (JSC::JITOperationList::addPointers):
+
+2022-03-21  Alan Coon  <[email protected]>
+
         Cherry-pick r290517. rdar://problem/89428235
 
     operationMaterializeObjectInOSR should DeferTerminationForAWhile instead of just DeferTermination.

Modified: branches/safari-613-branch/Source/_javascript_Core/assembler/JITOperationList.cpp (291648 => 291649)


--- branches/safari-613-branch/Source/_javascript_Core/assembler/JITOperationList.cpp	2022-03-22 17:55:34 UTC (rev 291648)
+++ branches/safari-613-branch/Source/_javascript_Core/assembler/JITOperationList.cpp	2022-03-22 17:55:37 UTC (rev 291649)
@@ -66,11 +66,11 @@
         return;
     }
 #endif
-    if constexpr (ASSERT_ENABLED) {
+    if constexpr (JIT_OPERATION_VALIDATION_ASSERT_ENABLED) {
         for (const auto* current = begin; current != end; ++current) {
             void* operation = removeCodePtrTag(current->operation);
             if (operation) {
-                void* validator = removeCodePtrTag(current->operationWithValidation);
+                void* validator = removeCodePtrTag(Options::useJITCage() ? current->operationWithValidation : current->operation);
                 validator = WTF::tagNativeCodePtrImpl<OperationPtrTag>(validator);
                 map.add(operation, validator);
                 JSC_REGISTER_INVERSE_JIT_CAGED_POINTER_FOR_DEBUG(validator, operation);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to