Title: [285348] trunk
Revision
285348
Author
[email protected]
Date
2021-11-05 11:57:00 -0700 (Fri, 05 Nov 2021)

Log Message

Cherry-pick r284635. rdar://problem/85039977

    [JSC] Inserted GetTypedArrayLengthAsInt52 for PutByVal should have NodeResultInt52
    https://bugs.webkit.org/show_bug.cgi?id=232059

    Reviewed by Saam Barati.

    JSTests:

    * stress/inserted-gettypedarraylengthasint52-should-have-int52-result-for-put-by-val.js: Added.
    (foo.bar):
    (foo):

    Source/_javascript_Core:

    When inserting GetTypedArrayLengthAsInt52 after fixup phase, we must set NodeResultInt52.

    * dfg/DFGSSALoweringPhase.cpp:
    (JSC::DFG::SSALoweringPhase::handleNode):

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

Modified Paths

Diff

Modified: trunk/JSTests/ChangeLog (285347 => 285348)


--- trunk/JSTests/ChangeLog	2021-11-05 18:46:21 UTC (rev 285347)
+++ trunk/JSTests/ChangeLog	2021-11-05 18:57:00 UTC (rev 285348)
@@ -1,3 +1,39 @@
+2021-11-05  Russell Epstein  <[email protected]>
+
+        Cherry-pick r284635. rdar://problem/85039977
+
+    [JSC] Inserted GetTypedArrayLengthAsInt52 for PutByVal should have NodeResultInt52
+    https://bugs.webkit.org/show_bug.cgi?id=232059
+    
+    Reviewed by Saam Barati.
+    
+    JSTests:
+    
+    * stress/inserted-gettypedarraylengthasint52-should-have-int52-result-for-put-by-val.js: Added.
+    (foo.bar):
+    (foo):
+    
+    Source/_javascript_Core:
+    
+    When inserting GetTypedArrayLengthAsInt52 after fixup phase, we must set NodeResultInt52.
+    
+    * dfg/DFGSSALoweringPhase.cpp:
+    (JSC::DFG::SSALoweringPhase::handleNode):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@284635 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2021-10-21  Yusuke Suzuki  <[email protected]>
+
+            [JSC] Inserted GetTypedArrayLengthAsInt52 for PutByVal should have NodeResultInt52
+            https://bugs.webkit.org/show_bug.cgi?id=232059
+
+            Reviewed by Saam Barati.
+
+            * stress/inserted-gettypedarraylengthasint52-should-have-int52-result-for-put-by-val.js: Added.
+            (foo.bar):
+            (foo):
+
 2021-11-04  Alexey Shvayka  <[email protected]>
 
         We need to PreferNumber when calling toPrimitive for coercion to BigInt

Modified: trunk/Source/_javascript_Core/ChangeLog (285347 => 285348)


--- trunk/Source/_javascript_Core/ChangeLog	2021-11-05 18:46:21 UTC (rev 285347)
+++ trunk/Source/_javascript_Core/ChangeLog	2021-11-05 18:57:00 UTC (rev 285348)
@@ -1,3 +1,40 @@
+2021-11-05  Russell Epstein  <[email protected]>
+
+        Cherry-pick r284635. rdar://problem/85039977
+
+    [JSC] Inserted GetTypedArrayLengthAsInt52 for PutByVal should have NodeResultInt52
+    https://bugs.webkit.org/show_bug.cgi?id=232059
+    
+    Reviewed by Saam Barati.
+    
+    JSTests:
+    
+    * stress/inserted-gettypedarraylengthasint52-should-have-int52-result-for-put-by-val.js: Added.
+    (foo.bar):
+    (foo):
+    
+    Source/_javascript_Core:
+    
+    When inserting GetTypedArrayLengthAsInt52 after fixup phase, we must set NodeResultInt52.
+    
+    * dfg/DFGSSALoweringPhase.cpp:
+    (JSC::DFG::SSALoweringPhase::handleNode):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@284635 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2021-10-21  Yusuke Suzuki  <[email protected]>
+
+            [JSC] Inserted GetTypedArrayLengthAsInt52 for PutByVal should have NodeResultInt52
+            https://bugs.webkit.org/show_bug.cgi?id=232059
+
+            Reviewed by Saam Barati.
+
+            When inserting GetTypedArrayLengthAsInt52 after fixup phase, we must set NodeResultInt52.
+
+            * dfg/DFGSSALoweringPhase.cpp:
+            (JSC::DFG::SSALoweringPhase::handleNode):
+
 2021-11-04  Alexey Shvayka  <[email protected]>
 
         We need to PreferNumber when calling toPrimitive for coercion to BigInt

Modified: trunk/Source/_javascript_Core/dfg/DFGSSALoweringPhase.cpp (285347 => 285348)


--- trunk/Source/_javascript_Core/dfg/DFGSSALoweringPhase.cpp	2021-11-05 18:46:21 UTC (rev 285347)
+++ trunk/Source/_javascript_Core/dfg/DFGSSALoweringPhase.cpp	2021-11-05 18:57:00 UTC (rev 285348)
@@ -105,6 +105,7 @@
                     Node* length = m_insertionSet.insertNode(
                         m_nodeIndex, SpecInt52Any, GetTypedArrayLengthAsInt52, m_node->origin,
                         OpInfo(m_node->arrayMode().asWord()), base, storage);
+                    length->setResult(NodeResultInt52);
                     m_graph.varArgChild(m_node, 4) = Edge(length, Int52RepUse);
                 } else {
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to