[php-src] PR #18576: Do not exit to VM when setting undefined prop in constructor

From: Date: Fri, 16 May 2025 20:05:49 +0000
Subject: [php-src] PR #18576: Do not exit to VM when setting undefined prop in constructor
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-31695@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/18576 Author: arnaud-lb JIT'ed ASSIGN_OBJ expressions will exit to VM when the prop is undef. However, in a constructor it's very likely the case. Therefore most traces with new expressions will exit to VM. Here I ensure that we don't exit to VM when it's likely that the prop will be undef. In the function JIT we compile a slow path to handle such properties. Here I enable compilation of the slow path when it's likely the prop will be undef. Quite conveniently we already record the prop type during tracing, so I use that to make the decision. This results in a 1.20% wall time improvement on the symfony demo benchmark with 20 warmup requests.

« previous php.git-pulls (#31695) next »