Commit 1dcdf87
Add JIT support for generic constructor arg inference
Infers generic type arguments from constructor parameters in JIT-compiled
code paths. Adds zend_jit_infer_generic_ctor_args helper and hooks it
into both the IR backend and VM leave-func helpers to run before $this
is released.
Co-Authored-By: Llama <noreply@meta.com>1 parent 6ca9222 commit 1dcdf87
File tree
3 files changed
+28
-0
lines changed- ext/opcache/jit
3 files changed
+28
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2058 | 2058 | | |
2059 | 2059 | | |
2060 | 2060 | | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
2061 | 2071 | | |
2062 | 2072 | | |
2063 | 2073 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3137 | 3137 | | |
3138 | 3138 | | |
3139 | 3139 | | |
| 3140 | + | |
3140 | 3141 | | |
3141 | 3142 | | |
3142 | 3143 | | |
| |||
11286 | 11287 | | |
11287 | 11288 | | |
11288 | 11289 | | |
| 11290 | + | |
| 11291 | + | |
11289 | 11292 | | |
11290 | 11293 | | |
11291 | 11294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
62 | 70 | | |
63 | 71 | | |
64 | 72 | | |
| |||
110 | 118 | | |
111 | 119 | | |
112 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
113 | 128 | | |
114 | 129 | | |
115 | 130 | | |
| |||
0 commit comments