Changeset 159886 in webkit for trunk/Source/JavaScriptCore/dfg/DFGCommon.h
- Timestamp:
- Nov 30, 2013, 9:23:32 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGCommon.h
r156984 r159886 35 35 #include "VirtualRegister.h" 36 36 37 /* DFG_ENABLE() - turn on a specific features in the DFG JIT */38 #define DFG_ENABLE(DFG_FEATURE) (defined DFG_ENABLE_##DFG_FEATURE && DFG_ENABLE_##DFG_FEATURE)39 40 // Emit various logging information for debugging, including dumping the dataflow graphs.41 #define DFG_ENABLE_DEBUG_VERBOSE 042 // Emit dumps during propagation, in addition to just after.43 #define DFG_ENABLE_DEBUG_PROPAGATION_VERBOSE 044 // Emit logging for OSR exit value recoveries at every node, not just nodes that45 // actually has speculation checks.46 #define DFG_ENABLE_VERBOSE_VALUE_RECOVERIES 047 // Enable generation of dynamic checks into the instruction stream.48 #if !ASSERT_DISABLED49 #define DFG_ENABLE_JIT_ASSERT 150 #else51 #define DFG_ENABLE_JIT_ASSERT 052 #endif53 // Consistency check contents compiler data structures.54 #define DFG_ENABLE_CONSISTENCY_CHECK 055 // Emit a breakpoint into the head of every generated function, to aid debugging in GDB.56 #define DFG_ENABLE_JIT_BREAK_ON_EVERY_FUNCTION 057 // Emit a breakpoint into the head of every generated block, to aid debugging in GDB.58 #define DFG_ENABLE_JIT_BREAK_ON_EVERY_BLOCK 059 // Emit a breakpoint into the head of every generated node, to aid debugging in GDB.60 #define DFG_ENABLE_JIT_BREAK_ON_EVERY_NODE 061 // Emit a pair of xorPtr()'s on regT0 with the node index to make it easy to spot node boundaries in disassembled code.62 #define DFG_ENABLE_XOR_DEBUG_AID 063 // Emit a breakpoint into the speculation failure code.64 #define DFG_ENABLE_JIT_BREAK_ON_SPECULATION_FAILURE 065 // Disable the DFG JIT without having to touch Platform.h66 #define DFG_DEBUG_LOCAL_DISBALE 067 // Generate stats on how successful we were in making use of the DFG jit, and remaining on the hot path.68 #define DFG_ENABLE_SUCCESS_STATS 069 70 37 namespace JSC { namespace DFG { 71 38 … … 99 66 inline bool verboseCompilationEnabled() 100 67 { 101 #if DFG_ENABLE(DEBUG_VERBOSE)102 return true;103 #else104 68 return Options::verboseCompilation() || Options::dumpGraphAtEachPhase(); 105 #endif106 69 } 107 70 108 71 inline bool logCompilationChanges() 109 72 { 110 #if DFG_ENABLE(DEBUG_VERBOSE)111 return true;112 #else113 73 return verboseCompilationEnabled() || Options::logCompilationChanges(); 114 #endif115 74 } 116 75 117 76 inline bool shouldDumpGraphAtEachPhase() 118 77 { 119 #if DFG_ENABLE(DEBUG_PROPAGATION_VERBOSE)120 return true;121 #else122 78 return Options::dumpGraphAtEachPhase(); 123 #endif124 79 } 125 80
Note:
See TracChangeset
for help on using the changeset viewer.