Title: [216180] trunk/Source/_javascript_Core
Revision
216180
Author
[email protected]
Date
2017-05-04 05:20:59 -0700 (Thu, 04 May 2017)

Log Message

stress/call-apply-exponential-bytecode-size.js.no-llint failing on 32-bit debug for OOM on executable memory
https://bugs.webkit.org/show_bug.cgi?id=171008

Reviewed by Yusuke Suzuki.

This patch lowers the threshold for .call/.apply recursion
in an attempt to emit less code and not impact perf.
We're currently failing tests on x86-32 by running out
of executable memory. If perf gets impacted because of this,
then I'll apply a stricter change just to 32-bit platforms.
However, if this doesn't negatively impact perf, it's all around
better than all platforms emit less bytecode.

* bytecompiler/NodesCodegen.cpp:

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (216179 => 216180)


--- trunk/Source/_javascript_Core/ChangeLog	2017-05-04 11:57:08 UTC (rev 216179)
+++ trunk/Source/_javascript_Core/ChangeLog	2017-05-04 12:20:59 UTC (rev 216180)
@@ -1,3 +1,20 @@
+2017-05-04  Saam Barati  <[email protected]>
+
+        stress/call-apply-exponential-bytecode-size.js.no-llint failing on 32-bit debug for OOM on executable memory
+        https://bugs.webkit.org/show_bug.cgi?id=171008
+
+        Reviewed by Yusuke Suzuki.
+
+        This patch lowers the threshold for .call/.apply recursion
+        in an attempt to emit less code and not impact perf.
+        We're currently failing tests on x86-32 by running out
+        of executable memory. If perf gets impacted because of this,
+        then I'll apply a stricter change just to 32-bit platforms.
+        However, if this doesn't negatively impact perf, it's all around
+        better than all platforms emit less bytecode.
+
+        * bytecompiler/NodesCodegen.cpp:
+
 2017-05-04  Yusuke Suzuki  <[email protected]>
 
         [JSC] Math unary functions should be handled by DFG

Modified: trunk/Source/_javascript_Core/bytecompiler/NodesCodegen.cpp (216179 => 216180)


--- trunk/Source/_javascript_Core/bytecompiler/NodesCodegen.cpp	2017-05-04 11:57:08 UTC (rev 216179)
+++ trunk/Source/_javascript_Core/bytecompiler/NodesCodegen.cpp	2017-05-04 12:20:59 UTC (rev 216180)
@@ -1187,7 +1187,7 @@
     return ret;
 }
 
-static constexpr size_t maxDistanceToInnermostCallOrApply = 4;
+static constexpr size_t maxDistanceToInnermostCallOrApply = 2;
 
 RegisterID* CallFunctionCallDotNode::emitBytecode(BytecodeGenerator& generator, RegisterID* dst)
 {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to