Changeset 543
- Timestamp:
- 03/08/2008 04:55:59 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 5 modified
-
coverager.c (modified) (2 diffs)
-
mem.c (modified) (2 diffs)
-
optimizer.c (modified) (9 diffs)
-
utils.h (modified) (3 diffs)
-
xcache.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/coverager.c
r524 r543 1 #if 0 2 #define XCACHE_DEBUG 3 #endif 4 1 5 #include <stdio.h> 2 6 #include "xcache.h" … … 18 22 static char *xc_coveragedump_dir = NULL; 19 23 static zend_compile_file_t *old_compile_file = NULL; 20 21 #if 022 #define DEBUG23 #endif24 24 25 25 /* dumper */ -
trunk/mem.c
r393 r543 2 2 #include <limits.h> 3 3 #include <stdio.h> 4 # define XCACHE_DEBUG 4 5 #else 5 6 #include <php.h> 6 7 #endif 8 9 #ifdef XCACHE_DEBUG 10 # define ALLOC_DEBUG_BLOCK_CHECK 11 #endif 12 7 13 8 14 #include <assert.h> … … 14 20 #include "align.h" 15 21 #include "utils.h" 16 17 #ifdef TEST18 # define DEBUG19 #endif20 #ifdef DEBUG21 # define ALLOC_DEBUG_BLOCK_CHECK22 #endif23 22 24 23 #if 0 -
trunk/optimizer.c
r485 r543 1 1 #if 0 2 # define DEBUG2 # define XCACHE_DEBUG 3 3 #endif 4 4 … … 9 9 #include "xcache_globals.h" 10 10 11 #ifdef DEBUG11 #ifdef XCACHE_DEBUG 12 12 # include "processor.h" 13 13 # include "const_string.h" … … 181 181 } 182 182 /* }}} */ 183 #ifdef DEBUG183 #ifdef XCACHE_DEBUG 184 184 static void op_snprint(char *buf, int size, znode *op) /* {{{ */ 185 185 { … … 278 278 } 279 279 /* }}} */ 280 #ifdef DEBUG280 #ifdef XCACHE_DEBUG 281 281 static void bb_print(bb_t *bb, zend_op *opcodes) /* {{{ */ 282 282 { … … 320 320 } 321 321 /* }}} */ 322 #ifdef DEBUG322 #ifdef XCACHE_DEBUG 323 323 static void bbs_print(bbs_t *bbs, zend_op *opcodes) /* {{{ */ 324 324 { … … 408 408 } 409 409 } 410 #ifdef DEBUG410 #ifdef XCACHE_DEBUG 411 411 for (i = 0; i < count; i ++) { 412 412 TRACE("catchbbids[%d] = %d", i, catchbbids[i]); … … 522 522 } 523 523 524 #ifdef DEBUG524 #ifdef XCACHE_DEBUG 525 525 # if 0 526 526 TRACE("optimize file: %s", op_array->filename); … … 534 534 if (bbs_build_from(&bbs, op_array, op_array->last) == SUCCESS) { 535 535 int i; 536 #ifdef DEBUG536 #ifdef XCACHE_DEBUG 537 537 bbs_print(&bbs, op_array->opcodes); 538 538 #endif … … 547 547 } 548 548 549 #ifdef DEBUG549 #ifdef XCACHE_DEBUG 550 550 # if 0 551 551 TRACE("%s", "after compiles"); -
trunk/utils.h
r522 r543 2 2 #include "xcache.h" 3 3 4 #ifdef DEBUG4 #ifdef XCACHE_DEBUG 5 5 # define IFDEBUG(x) (x) 6 6 int xc_vtrace(const char *fmt, va_list args); … … 25 25 # undef inline 26 26 # define inline 27 #else /* DEBUG */27 #else /* XCACHE_DEBUG */ 28 28 29 29 # ifdef ZEND_WIN32 … … 41 41 # define NDEBUG 42 42 # endif 43 #endif /* DEBUG */43 #endif /* XCACHE_DEBUG */ 44 44 #include <assert.h> 45 45 -
trunk/xcache.c
r542 r543 1 1 2 2 #if 0 3 #define DEBUG3 #define XCACHE_DEBUG 4 4 #endif 5 5 … … 1029 1029 php->cache = xce->cache; 1030 1030 php->hvalue = (hv & php->cache->hphp->mask); 1031 #ifdef DEBUG1031 #ifdef XCACHE_DEBUG 1032 1032 { 1033 1033 char md5str[33];

