History log of /PHP-8.1/Zend/zend_vm_gen.php (Results 1 – 25 of 324)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
Revision tags: php-8.1.7RC1, php-8.1.4RC1, php-8.1.3, php-8.1.2RC1
# b63e4cf7 30-Dec-2021 Nikita Popov

Handle holes in zend_get_opcode_id()

Some opcodes may currently not be allocated.

# 9786eac9 01-Dec-2021 Dmitry Stogov

Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
Fix clobering of operand by error handler in assignment to string offset


# 09547c64 01-Dec-2021 Dmitry Stogov

Fix clobering of operand by error handler in assignment to string offset

In some cases new code requires two reallocations insead of one.

Fixes oss-fuzz #31716, #36196, #39739 and #

Fix clobering of operand by error handler in assignment to string offset

In some cases new code requires two reallocations insead of one.

Fixes oss-fuzz #31716, #36196, #39739 and #40002

show more ...

Revision tags: php-8.1.0, php-7.3.33
# 5d2f3d45 04-Nov-2021 Nikita Popov

Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
Suppress unused label warnings in SWITCH VM


# ee377744 04-Nov-2021 Nikita Popov

Suppress unused label warnings in SWITCH VM

While we avoid emitting labels for handlers that are not referenced
from anywhere else, we do not perform a fine-grained analysis on
used

Suppress unused label warnings in SWITCH VM

While we avoid emitting labels for handlers that are not referenced
from anywhere else, we do not perform a fine-grained analysis on
used specializations, so some of the specialization labels may not
be used. Use ATTRIBUTE_UNUSED_LABEL to suppress the warning. Drop
"cold" from the definition of this attribute, as it is completely
unrelated.

show more ...

Revision tags: php-7.3.32, php-7.3.31, php-7.3.30
# 60ea2cbf 29-Jul-2021 Hao Sun

Fix a typo in function execute_ex (#7315)

Revision tags: php-7.3.29
# 5fe20625 18-May-2021 Dmitry Stogov

Correct DWARF frame description.

Now GDB correctly shows backtraces that involves JIT-ed code for
functional/tracing JIT, HYBRID/CALL VM, x86/AArch64 CPU.
(opcache.jit_debug=0x100 sh

Correct DWARF frame description.

Now GDB correctly shows backtraces that involves JIT-ed code for
functional/tracing JIT, HYBRID/CALL VM, x86/AArch64 CPU.
(opcache.jit_debug=0x100 should be set).

show more ...

Revision tags: php-7.3.28
# 997374f4 26-Apr-2021 Dmitry Stogov

Disable "red zone" usage (it leads to crashes).

# 57f2fe44 26-Apr-2021 Dmitry Stogov

Use "red zone" for HYBRID VM.
Support for CALL VM and VM without global register variables.

# 57eb29f1 06-Apr-2021 Nikita Popov

Update zend_vm_gen.php with zend_vm_opcode.c/h changes

The generated files were modified directly, resulting in mysterious
build failures depending on exact build order.

# b86dfb0e 15-Feb-2021 Max Semenik

Fix E_DEPRECATED in zend_vm_gen.php

explode(): Passing null to parameter #2 ($string) of type string is
deprecated

Closes GH-6698.

# de5b4221 17-Feb-2021 Nikita Popov

Avoid writing zend_vm_opcodes.h if it did not change

Now that we track header changes, a change to zend_vm_opcodes.h
requires rebuilding essentially the whole tree. In most cases,
ch

Avoid writing zend_vm_opcodes.h if it did not change

Now that we track header changes, a change to zend_vm_opcodes.h
requires rebuilding essentially the whole tree. In most cases,
changes to zend_vm_def.h don't actually result in any header
changes though.

Avoid touching the file by first checking whether the to be written
contents are actually the same.

show more ...

# cbfdc1fd 17-Feb-2021 Alex Erohin

Coding style tweaks for zend_vm_gen.php

- fixed array style for $vm_kind_name and $op_types
- deleted unnecessary else statement for is_hot_helper function
- fixed concatenation styl

Coding style tweaks for zend_vm_gen.php

- fixed array style for $vm_kind_name and $op_types
- deleted unnecessary else statement for is_hot_helper function
- fixed concatenation style
- fixed style of using whitespace between "(" and switch/foreach - replaced !is_null with "!=="

Closes GH-6704.

show more ...

Revision tags: php-7.3.27, php-7.3.26, php-7.3.26RC1
# 8ad2b59e 01-Dec-2020 Dmitry Stogov

Disable stack reuse optimization for x86 PIC code. It may clobber local variable used for Global Offset Table.

# 841b00f6 30-Nov-2020 Dmitry Stogov

Preallocate stack space for JIT in execute_ex() to eliminate JIT prologue/epilogue.

Revision tags: php-7.3.25
# 58d41b8c 11-Nov-2020 Sammy Kaye Powers

Provide unused retvals to observers

Make sure that the return value is available to observers, even if
it is not used by the caller.

Closes GH-6422.

# 855d8fa6 11-Nov-2020 Dmitry Stogov

[Observer] Save opline before calling begin/end handlers

Revision tags: php-7.3.25RC1, php-7.3.24, php-7.3.24RC1, php-7.3.23
# d5d31ea3 18-Sep-2020 Dmitry Stogov

Cleanup observer API and add JIT support

# 9e94bcfd 17-Sep-2020 Sammy Kaye Powers

Remove specialization of SPEC(OBSERVER) handlers

Revision tags: php-7.3.23RC1
# 66c3e900 01-Sep-2020 Levi Morrison

Add zend_observer API

Closes GH-5857.

Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
Co-authored-by: Sammy Powers <sammyk@datadoghq.com>

Revision tags: php-7.3.22, php-7.3.22RC1
# 42eda516 11-Aug-2020 Nikita Popov

SAVE_OPLINE in NULL_HANDLER

Let's avoid crashing before the nice error message gets printed...

Revision tags: php-7.3.21, php-7.3.21RC1, php-7.3.20, php-7.3.20RC1, php-7.3.19, php-7.4.7RC1, php-7.3.19RC1, php-7.3.18RC1, php-7.2.30, php-7.3.17
# d92229d8 06-Apr-2020 Nikita Popov

Implement named parameters

From an engine perspective, named parameters mainly add three
concepts:

* The SEND_* opcodes now accept a CONST op2, which is the
argument nam

Implement named parameters

From an engine perspective, named parameters mainly add three
concepts:

* The SEND_* opcodes now accept a CONST op2, which is the
argument name. For now, it is looked up by linear scan and
runtime cached.
* This may leave UNDEF arguments on the stack. To avoid having
to deal with them in other places, a CHECK_UNDEF_ARGS opcode
is used to either replace them with defaults, or error.
* For variadic functions, EX(extra_named_params) are collected
and need to be freed based on ZEND_CALL_HAS_EXTRA_NAMED_PARAMS.

RFC: https://wiki.php.net/rfc/named_params

Closes GH-5357.

show more ...

# 613a56d1 09-Jul-2020 Nikita Popov

Remove FREE_UNFETCHED concept

In master normal FREE_OPs work like FREE_UNFETCHED_OP used to, so
there is no point in keeping this distinction anymore, it's just
confusing.

# 5d0687e8 07-Jul-2020 Nikita Popov

Assert exception set in HANDLE_EXCEPTION()

Some code paths were checking this manually, but we can turn this
into a general assertion to avoid surprises (functions returning
failure

Assert exception set in HANDLE_EXCEPTION()

Some code paths were checking this manually, but we can turn this
into a general assertion to avoid surprises (functions returning
failure without throwing).

show more ...

# fb916112 07-Jul-2020 Nikita Popov

Remove #undefs from vm_gen

Possibly these were needed for VM_EXPORT, but they don't serve a
purpose now.

12345678910>>...13