summaryrefslogtreecommitdiff
path: root/Zend/zend_vm_opcodes.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2020-11-30 17:56:08 +0300
committerDmitry Stogov <dmitry@zend.com>2020-11-30 17:56:08 +0300
commit841b00f641d448f037c69f0910ec4fb54cd64b20 (patch)
treef00d621f62b6318cf8772180cb2934339dd31763 /Zend/zend_vm_opcodes.h
parent5f36d0497f48ea442785115c51b75dc460734889 (diff)
downloadphp-git-841b00f641d448f037c69f0910ec4fb54cd64b20.tar.gz
Preallocate stack space for JIT in execute_ex() to eliminate JIT prologue/epilogue.
Diffstat (limited to 'Zend/zend_vm_opcodes.h')
-rw-r--r--Zend/zend_vm_opcodes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Zend/zend_vm_opcodes.h b/Zend/zend_vm_opcodes.h
index df5a147999..584a44f5ae 100644
--- a/Zend/zend_vm_opcodes.h
+++ b/Zend/zend_vm_opcodes.h
@@ -34,6 +34,12 @@
# define ZEND_VM_KIND ZEND_VM_KIND_CALL
#endif
+#if (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID) && !defined(__SANITIZE_ADDRESS__)
+# if (defined(i386) || defined(__x86_64__) || defined(_M_X64))
+# define ZEND_VM_HYBRID_JIT_RED_ZONE_SIZE 16
+# endif
+#endif
+
#define ZEND_VM_OP_SPEC 0x00000001
#define ZEND_VM_OP_CONST 0x00000002
#define ZEND_VM_OP_TMPVAR 0x00000004