Changeset 95484 in webkit for trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
- Timestamp:
- Sep 19, 2011, 3:27:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
r95134 r95484 1985 1985 #endif 1986 1986 1987 #if ENABLE(VALUE_PROFILER) 1988 void CodeBlock::resetRareCaseProfiles() 1989 { 1990 for (unsigned i = 0; i < numberOfSlowCaseProfiles(); ++i) 1991 slowCaseProfile(i)->m_counter = 0; 1992 for (unsigned i = 0; i < numberOfSpecialFastCaseProfiles(); ++i) 1993 specialFastCaseProfile(i)->m_counter = 0; 1994 } 1995 #endif 1996 1987 1997 #if ENABLE(VERBOSE_VALUE_PROFILE) 1988 1998 void CodeBlock::dumpValueProfiles() … … 2003 2013 fprintf(stderr, "\n"); 2004 2014 } 2015 fprintf(stderr, "SlowCaseProfile for %p:\n", this); 2016 for (unsigned i = 0; i < numberOfSlowCaseProfiles(); ++i) { 2017 SlowCaseProfile* profile = slowCaseProfile(i); 2018 fprintf(stderr, " bc = %d: %u\n", profile->m_bytecodeOffset, profile->m_counter); 2019 } 2005 2020 } 2006 2021 #endif
Note:
See TracChangeset
for help on using the changeset viewer.