XCache is a fast, stable PHP opcode cacher that has been proven and is now running on production servers under high load. https://xcache.lighttpd.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
724 B

  1. #include "optimizer.h"
  2. #include "utils.h"
  3. static int xc_optimize_op_array(zend_op_array *op_array TSRMLS_DC) /* {{{ */
  4. {
  5. if (op_array->type != ZEND_USER_FUNCTION) {
  6. return 0;
  7. }
  8. //xc_undo_pass_two(op_array TSRMLS_CC);
  9. //xc_redo_pass_two(op_array TSRMLS_CC);
  10. //xc_dprint_zend_op_array(op_array, 0);
  11. return 0;
  12. }
  13. /* }}} */
  14. void xc_optimize(zend_op_array *op_array TSRMLS_DC) /* {{{ */
  15. {
  16. xc_compile_result_t cr;
  17. xc_compile_result_init_cur(&cr, op_array TSRMLS_CC);
  18. xc_apply_op_array(&cr, (apply_func_t) xc_undo_pass_two TSRMLS_CC);
  19. xc_apply_op_array(&cr, (apply_func_t) xc_optimize_op_array TSRMLS_CC);
  20. xc_apply_op_array(&cr, (apply_func_t) xc_redo_pass_two TSRMLS_CC);
  21. xc_compile_result_free(&cr);
  22. }
  23. /* }}} */