Changeset 118278 in webkit for trunk/Source/JavaScriptCore/bytecode/DFGExitProfile.h
- Timestamp:
- May 23, 2012, 5:18:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/DFGExitProfile.h
r113552 r118278 40 40 NegativeZero, // We exited because we encountered negative zero. 41 41 InadequateCoverage, // We exited because we ended up in code that didn't have profiling coverage. 42 ArgumentsEscaped, // We exited because arguments escaped but we didn't expect them to. 42 43 Uncountable, // We exited for none of the above reasons, and we should not count it. Most uses of this should be viewed as a FIXME. 43 44 }; … … 97 98 } 98 99 100 // Use this constructor if you wish for the exit site to be counted globally within its 101 // code block. 102 explicit FrequentExitSite(ExitKind kind) 103 : m_bytecodeOffset(0) 104 , m_kind(kind) 105 { 106 ASSERT(exitKindIsCountable(kind)); 107 } 108 99 109 bool operator!() const 100 110 { … … 179 189 } 180 190 191 bool hasExitSite(ExitKind kind) const 192 { 193 return hasExitSite(FrequentExitSite(kind)); 194 } 195 181 196 bool hasExitSite(unsigned bytecodeIndex, ExitKind kind) const 182 197 {
Note:
See TracChangeset
for help on using the changeset viewer.