Index: zend_vm_gen.php =================================================================== RCS file: /repository/ZendEngine2/zend_vm_gen.php,v retrieving revision 1.12.2.5.2.3 diff -u -r1.12.2.5.2.3 zend_vm_gen.php --- zend_vm_gen.php 18 Sep 2006 12:03:10 -0000 1.12.2.5.2.3 +++ zend_vm_gen.php 28 Sep 2006 16:16:05 -0000 @@ -1126,6 +1126,7 @@ } // Generate zend_vm_get_opcode_handler() function +out($f, "\nstatic const char* op_to_str(int op) { switch(op) { case IS_CONST: return \"IS_CONST\"; case IS_TMP_VAR: return \"IS_TMP_VAR\"; case IS_VAR: return \"IS_VAR\"; case IS_CV: return \"IS_CV\"; case IS_UNUSED: return \"IS_UNUSED\";} return \"UNKNOWN\";}\n\n"); out($f, "static opcode_handler_t zend_vm_get_opcode_handler(zend_uchar opcode, zend_op* op)\n"); out($f, "{\n"); if (!ZEND_VM_SPEC) { @@ -1155,6 +1156,7 @@ out($f, "\t\t\t_UNUSED_CODE, /* 15 */\n"); out($f, "\t\t\t_CV_CODE /* 16 = IS_CV */\n"); out($f, "\t\t};\n"); + out($f, "if (1) {printf(\"calling opcode:%d, op1.type: %s op2.type: %s\\n\", opcode, op_to_str(op->op1.op_type), op_to_str(op->op2.op_type));}\n"); out($f, "\t\treturn zend_opcode_handlers[opcode * 25 + zend_vm_decode[op->op1.op_type] * 5 + zend_vm_decode[op->op2.op_type]];\n"); if (ZEND_VM_OLD_EXECUTOR) { out($f, "\t}\n");