cvs: ZendEngine2 / zend_vm_def.h zend_vm_execute.h zend_vm_gen.php
| From: | Marcus Boerger | Date: | Sat, 20 May 2006 15:38:36 +0000 |
| Subject: | cvs: ZendEngine2 / zend_vm_def.h zend_vm_execute.h zend_vm_gen.php | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4910@lists.php.net to get a copy of this message | ||
helly Sat May 20 15:38:36 2006 UTC
Modified files:
/ZendEngine2 zend_vm_def.h zend_vm_execute.h zend_vm_gen.php
Log:
- Fix warning
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_vm_def.h?r1=1.113&r2=1.114&diff_format=u
Index: ZendEngine2/zend_vm_def.h
diff -u ZendEngine2/zend_vm_def.h:1.113 ZendEngine2/zend_vm_def.h:1.114
--- ZendEngine2/zend_vm_def.h:1.113 Mon May 15 15:31:49 2006
+++ ZendEngine2/zend_vm_def.h Sat May 20 15:38:36 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_vm_def.h,v 1.113 2006/05/15 15:31:49 dmitry Exp $ */
+/* $Id: zend_vm_def.h,v 1.114 2006/05/20 15:38:36 helly Exp $ */
/* If you change this file, please regenerate the zend_vm_execute.h and
* zend_vm_opcodes.h files by running:
@@ -3572,6 +3572,7 @@
ZEND_VM_HANDLER(79, ZEND_EXIT, CONST|TMP|VAR|UNUSED|CV, ANY)
{
+#ifdef ZEND_OP1_USED
zend_op *opline = EX(opline);
if (OP1_TYPE != IS_UNUSED) {
zend_free_op free_op1;
@@ -3584,6 +3585,7 @@
}
FREE_OP1();
}
+#endif
zend_bailout();
ZEND_VM_NEXT_OPCODE();
}
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_vm_execute.h?r1=1.117&r2=1.118&diff_format=u
Index: ZendEngine2/zend_vm_execute.h
diff -u ZendEngine2/zend_vm_execute.h:1.117 ZendEngine2/zend_vm_execute.h:1.118
--- ZendEngine2/zend_vm_execute.h:1.117 Mon May 15 15:31:50 2006
+++ ZendEngine2/zend_vm_execute.h Sat May 20 15:38:36 2006
@@ -2233,6 +2233,7 @@
static int ZEND_EXIT_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
{
+#if 1
zend_op *opline = EX(opline);
if (IS_CONST != IS_UNUSED) {
@@ -2245,6 +2246,7 @@
}
}
+#endif
zend_bailout();
ZEND_VM_NEXT_OPCODE();
}
@@ -4742,6 +4744,7 @@
static int ZEND_EXIT_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
{
+#if 1
zend_op *opline = EX(opline);
if (IS_TMP_VAR != IS_UNUSED) {
zend_free_op free_op1;
@@ -4754,6 +4757,7 @@
}
zval_dtor(free_op1.var);
}
+#endif
zend_bailout();
ZEND_VM_NEXT_OPCODE();
}
@@ -7998,6 +8002,7 @@
static int ZEND_EXIT_SPEC_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
{
+#if 1
zend_op *opline = EX(opline);
if (IS_VAR != IS_UNUSED) {
zend_free_op free_op1;
@@ -8010,6 +8015,7 @@
}
if (free_op1.var) {zval_ptr_dtor(&free_op1.var);};
}
+#endif
zend_bailout();
ZEND_VM_NEXT_OPCODE();
}
@@ -14541,6 +14547,7 @@
static int ZEND_EXIT_SPEC_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
{
+#if 0
zend_op *opline = EX(opline);
if (IS_UNUSED != IS_UNUSED) {
@@ -14553,6 +14560,7 @@
}
}
+#endif
zend_bailout();
ZEND_VM_NEXT_OPCODE();
}
@@ -20483,6 +20491,7 @@
static int ZEND_EXIT_SPEC_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
{
+#if 1
zend_op *opline = EX(opline);
if (IS_CV != IS_UNUSED) {
@@ -20495,6 +20504,7 @@
}
}
+#endif
zend_bailout();
ZEND_VM_NEXT_OPCODE();
}
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_vm_gen.php?r1=1.18&r2=1.19&diff_format=u
Index: ZendEngine2/zend_vm_gen.php
diff -u ZendEngine2/zend_vm_gen.php:1.18 ZendEngine2/zend_vm_gen.php:1.19
--- ZendEngine2/zend_vm_gen.php:1.18 Wed Mar 15 08:06:51 2006
+++ ZendEngine2/zend_vm_gen.php Sat May 20 15:38:36 2006
@@ -16,7 +16,7 @@
| Authors: Dmitry Stogov <dmitry@zend.com> |
+----------------------------------------------------------------------+
- $Id: zend_vm_gen.php,v 1.18 2006/03/15 08:06:51 dmitry Exp $
+ $Id: zend_vm_gen.php,v 1.19 2006/05/20 15:38:36 helly Exp $
*/
$header_text = <<< DATA
@@ -338,6 +338,7 @@
"/FREE_OP2_VAR_PTR\(\)/",
"/^#ifdef\s+ZEND_VM_SPEC\s*\n/m",
"/^#ifndef\s+ZEND_VM_SPEC\s*\n/m",
+ "/^#ifdef\s+ZEND_OP1_USED\s*\n/m",
"/ZEND_VM_C_LABEL\(\s*([A-Za-z_]*)\s*\)/m",
"/ZEND_VM_C_GOTO\(\s*([A-Za-z_]*)\s*\)/m",
),
@@ -364,6 +365,7 @@
$op2_free_op_var_ptr[$op2],
($op1!="ANY"||$op2!="ANY")?"#if 1\n":"#if 0\n",
($op1!="ANY"||$op2!="ANY")?"#if 0\n":"#if 1\n",
+ ($op1!="UNUSED")?"#if 1\n":"#if 0\n",
"\\1".(($spec && $kind !=
ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2]):""),
"goto \\1".(($spec && $kind !=
ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2]):""),
),