debug_prims.cpp File Reference

#include "incls/_precompiled.incl"
#include "incls/_debug_prims.cpp.incl"

Include dependency graph for debug_prims.cpp:

Go to the source code of this file.

Classes

class  ClearInvocationCounterClosure
class  CollectMethodClosure
class  SumMethodInvocationClosure
class  Counter
class  ObjectHistogram

Defines

#define FOR_ALL_NMETHOD(var)   for (nmethod *var = Universe::code->first_nm(); var; var = Universe::code->next_nm(var))

Functions

 PRIM_DECL_1 (debugPrimitives::boolAt, oop name)
 PRIM_DECL_2 (debugPrimitives::boolAtPut, oop name, oop value)
 PRIM_DECL_1 (debugPrimitives::smiAt, oop name)
 PRIM_DECL_2 (debugPrimitives::smiAtPut, oop name, oop value)
 PRIM_DECL_0 (debugPrimitives::clearLookupCache)
 PRIM_DECL_0 (debugPrimitives::clearLookupCacheStatistics)
 PRIM_DECL_0 (debugPrimitives::printLookupCacheStatistics)
 PRIM_DECL_0 (debugPrimitives::printMemoryLayout)
 PRIM_DECL_0 (debugPrimitives::decodeAllMethods)
 PRIM_DECL_2 (debugPrimitives::printMethodCodes, oop receiver, oop sel)
 PRIM_DECL_2 (debugPrimitives::generateIR, oop receiver, oop sel)
 PRIM_DECL_2 (debugPrimitives::optimizeMethod, oop receiver, oop sel)
 PRIM_DECL_2 (debugPrimitives::decodeMethod, oop receiver, oop sel)
 PRIM_DECL_0 (debugPrimitives::timerStart)
 PRIM_DECL_0 (debugPrimitives::timerStop)
 PRIM_DECL_0 (debugPrimitives::timerPrintBuffer)
 PRIM_DECL_0 (debugPrimitives::interpreterInvocationCounterLimit)
 PRIM_DECL_1 (debugPrimitives::setInterpreterInvocationCounterLimit, oop limit)
 PRIM_DECL_0 (debugPrimitives::clearInvocationCounters)
static int compare_method_counters (methodOop *a, methodOop *b)
 PRIM_DECL_1 (debugPrimitives::printInvocationCounterHistogram, oop size)
 PRIM_DECL_0 (debugPrimitives::clearInlineCaches)
 PRIM_DECL_0 (debugPrimitives::clearNMethodCounters)
static int compare_nmethod_counters (nmethod **a, nmethod **b)
 PRIM_DECL_1 (debugPrimitives::printNMethodCounterHistogram, oop size)
 PRIM_DECL_0 (debugPrimitives::numberOfMethodInvocations)
 PRIM_DECL_0 (debugPrimitives::numberOfNMethodInvocations)
 PRIM_DECL_0 (debugPrimitives::numberOfPrimaryLookupCacheHits)
 PRIM_DECL_0 (debugPrimitives::numberOfSecondaryLookupCacheHits)
 PRIM_DECL_0 (debugPrimitives::numberOfLookupCacheMisses)
 PRIM_DECL_0 (debugPrimitives::clearPrimitiveCounters)
 PRIM_DECL_0 (debugPrimitives::printPrimitiveCounters)
 PRIM_DECL_0 (debugPrimitives::printObjectHistogram)
 PRIM_DECL_0 (debugPrimitives::deoptimizeStacks)
 PRIM_DECL_0 (debugPrimitives::verify)


Define Documentation

#define FOR_ALL_NMETHOD ( var   )     for (nmethod *var = Universe::code->first_nm(); var; var = Universe::code->next_nm(var))

Definition at line 290 of file debug_prims.cpp.

Referenced by PRIM_DECL_0(), and PRIM_DECL_1().


Function Documentation

static int compare_method_counters ( methodOop a,
methodOop b 
) [static]

Definition at line 256 of file debug_prims.cpp.

Referenced by PRIM_DECL_1().

static int compare_nmethod_counters ( nmethod **  a,
nmethod **  b 
) [static]

Definition at line 299 of file debug_prims.cpp.

Referenced by PRIM_DECL_1().

PRIM_DECL_0 ( debugPrimitives::verify   ) 

Definition at line 516 of file debug_prims.cpp.

References PROLOGUE_0, trueObj, and Universe::verify().

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::deoptimizeStacks   ) 

Definition at line 508 of file debug_prims.cpp.

References VMProcess::execute(), PROLOGUE_0, and trueObj.

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::printObjectHistogram   ) 

Definition at line 499 of file debug_prims.cpp.

References Universe::object_iterate(), ObjectHistogram::print(), PROLOGUE_0, and trueObj.

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::printPrimitiveCounters   ) 

Definition at line 384 of file debug_prims.cpp.

References PRIMITIVE_RETURNS_TRUE_IN_PRODUCT, primitives::print_counters(), PROLOGUE_0, and trueObj.

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::clearPrimitiveCounters   ) 

Definition at line 377 of file debug_prims.cpp.

References primitives::clear_counters(), PRIMITIVE_RETURNS_TRUE_IN_PRODUCT, PROLOGUE_0, and trueObj.

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::numberOfLookupCacheMisses   ) 

Definition at line 370 of file debug_prims.cpp.

References as_smiOop(), lookupCache::number_of_misses, PRIMITIVE_RETURNS_ZERO_IN_PRODUCT, and PROLOGUE_0.

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::numberOfSecondaryLookupCacheHits   ) 

Definition at line 364 of file debug_prims.cpp.

References as_smiOop(), lookupCache::number_of_secondary_hits, PRIMITIVE_RETURNS_ZERO_IN_PRODUCT, and PROLOGUE_0.

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::numberOfPrimaryLookupCacheHits   ) 

Definition at line 358 of file debug_prims.cpp.

References as_smiOop(), lookupCache::number_of_primary_hits, PRIMITIVE_RETURNS_ZERO_IN_PRODUCT, and PROLOGUE_0.

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::numberOfNMethodInvocations   ) 

Definition at line 350 of file debug_prims.cpp.

References as_smiOop(), FOR_ALL_NMETHOD, PRIMITIVE_RETURNS_ZERO_IN_PRODUCT, and PROLOGUE_0.

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::numberOfMethodInvocations   ) 

Definition at line 342 of file debug_prims.cpp.

References as_smiOop(), Universe::object_iterate(), PRIMITIVE_RETURNS_ZERO_IN_PRODUCT, PROLOGUE_0, and SumMethodInvocationClosure::result().

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::clearNMethodCounters   ) 

Definition at line 293 of file debug_prims.cpp.

References FOR_ALL_NMETHOD, PROLOGUE_0, and trueObj.

PRIM_DECL_0 ( debugPrimitives::clearInlineCaches   ) 

Definition at line 282 of file debug_prims.cpp.

References Universe::flush_inline_caches_in_methods(), PROLOGUE_0, and trueObj.

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::clearInvocationCounters   ) 

Definition at line 233 of file debug_prims.cpp.

References Universe::object_iterate(), PROLOGUE_0, and trueObj.

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::interpreterInvocationCounterLimit   ) 

Definition at line 206 of file debug_prims.cpp.

References as_smiOop(), Interpreter::get_invocation_counter_limit(), PROLOGUE_0, smi_max, and smi_min.

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::timerPrintBuffer   ) 

Definition at line 200 of file debug_prims.cpp.

References PROLOGUE_0, os::timerPrintBuffer(), and trueObj.

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::timerStop   ) 

Definition at line 194 of file debug_prims.cpp.

References PROLOGUE_0, os::timerStop(), and trueObj.

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::timerStart   ) 

Definition at line 188 of file debug_prims.cpp.

References PROLOGUE_0, os::timerStart(), and trueObj.

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::decodeAllMethods   ) 

Definition at line 111 of file debug_prims.cpp.

References Universe::decode_methods(), PRIMITIVE_RETURNS_TRUE_IN_PRODUCT, PROLOGUE_0, and trueObj.

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::printMemoryLayout   ) 

Definition at line 104 of file debug_prims.cpp.

References PRIMITIVE_RETURNS_TRUE_IN_PRODUCT, Universe::print_layout(), PROLOGUE_0, and trueObj.

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::printLookupCacheStatistics   ) 

Definition at line 97 of file debug_prims.cpp.

References PRIMITIVE_RETURNS_TRUE_IN_PRODUCT, lookupCache::print_statistics(), PROLOGUE_0, and trueObj.

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::clearLookupCacheStatistics   ) 

Definition at line 91 of file debug_prims.cpp.

References lookupCache::clear_statistics(), PROLOGUE_0, and trueObj.

Here is the call graph for this function:

PRIM_DECL_0 ( debugPrimitives::clearLookupCache   ) 

Definition at line 85 of file debug_prims.cpp.

References lookupCache::flush(), PROLOGUE_0, and trueObj.

Here is the call graph for this function:

PRIM_DECL_1 ( debugPrimitives::printNMethodCounterHistogram  ,
oop  size 
)

Definition at line 303 of file debug_prims.cpp.

References GrowableArray< E >::at(), compare_nmethod_counters(), FOR_ALL_NMETHOD, oopDesc::is_smi(), GenericGrowableArray::length(), markSymbol(), PRIMITIVE_FAILS_IN_PRODUCT, outputStream::print(), outputStream::print_cr(), PROLOGUE_1, GrowableArray< E >::push(), GrowableArray< E >::sort(), std, trueObj, and smiOopDesc::value().

Here is the call graph for this function:

PRIM_DECL_1 ( debugPrimitives::printInvocationCounterHistogram  ,
oop  size 
)

Definition at line 260 of file debug_prims.cpp.

References GrowableArray< E >::at(), compare_method_counters(), oopDesc::is_smi(), GenericGrowableArray::length(), markSymbol(), Universe::object_iterate(), PRIMITIVE_FAILS_IN_PRODUCT, outputStream::print(), outputStream::print_cr(), PROLOGUE_1, GrowableArray< E >::sort(), std, and trueObj.

Here is the call graph for this function:

PRIM_DECL_1 ( debugPrimitives::setInterpreterInvocationCounterLimit  ,
oop  limit 
)

Definition at line 214 of file debug_prims.cpp.

References methodOopDesc::_invocation_count_max, oopDesc::is_smi(), markSymbol(), PROLOGUE_1, Interpreter::set_invocation_counter_limit(), Interpreter::set_loop_counter_limit(), and smiOopDesc::value().

Here is the call graph for this function:

PRIM_DECL_1 ( debugPrimitives::smiAt  ,
oop  name 
)

Definition at line 59 of file debug_prims.cpp.

References as_smiOop(), debugFlags::intAt(), oopDesc::is_byteArray(), markSymbol(), and PROLOGUE_1.

Here is the call graph for this function:

PRIM_DECL_1 ( debugPrimitives::boolAt  ,
oop  name 
)

Definition at line 31 of file debug_prims.cpp.

References debugFlags::boolAt(), falseObj, markSymbol(), PROLOGUE_1, and trueObj.

Here is the call graph for this function:

PRIM_DECL_2 ( debugPrimitives::decodeMethod  ,
oop  receiver,
oop  sel 
)

Definition at line 169 of file debug_prims.cpp.

References LookupResult::get_nmethod(), lookupCache::ic_normal_lookup(), LookupResult::is_empty(), LookupResult::is_method(), oopDesc::is_symbol(), oopDesc::klass(), markSymbol(), LookupResult::method(), PRIMITIVE_FAILS_IN_PRODUCT, methodOopDesc::print_codes(), and PROLOGUE_2.

Here is the call graph for this function:

PRIM_DECL_2 ( debugPrimitives::optimizeMethod  ,
oop  receiver,
oop  sel 
)

Definition at line 150 of file debug_prims.cpp.

References oopDesc::blueprint(), VMProcess::execute(), oopDesc::is_byteArray(), oopDesc::klass(), Klass::lookup(), markSymbol(), oopFactory::new_symbol(), PRIMITIVE_FAILS_IN_PRODUCT, and PROLOGUE_2.

Here is the call graph for this function:

PRIM_DECL_2 ( debugPrimitives::generateIR  ,
oop  receiver,
oop  sel 
)

Definition at line 133 of file debug_prims.cpp.

References oopDesc::blueprint(), VMProcess::execute(), oopDesc::is_byteArray(), oopDesc::klass(), Klass::lookup(), markSymbol(), oopFactory::new_symbol(), PRIMITIVE_FAILS_IN_PRODUCT, outputStream::print_cr(), PROLOGUE_2, and std.

Here is the call graph for this function:

PRIM_DECL_2 ( debugPrimitives::printMethodCodes  ,
oop  receiver,
oop  sel 
)

Definition at line 118 of file debug_prims.cpp.

References oopDesc::blueprint(), oopDesc::is_byteArray(), oopDesc::klass(), Klass::lookup(), markSymbol(), oopFactory::new_symbol(), PRIMITIVE_FAILS_IN_PRODUCT, prettyPrinter::print(), methodOopDesc::print_codes(), PROLOGUE_2, and WizardMode.

Here is the call graph for this function:

PRIM_DECL_2 ( debugPrimitives::smiAtPut  ,
oop  name,
oop  value 
)

Definition at line 71 of file debug_prims.cpp.

References as_smiOop(), debugFlags::intAtPut(), oopDesc::is_byteArray(), oopDesc::is_smi(), markSymbol(), PROLOGUE_2, and smiOopDesc::value().

Here is the call graph for this function:

PRIM_DECL_2 ( debugPrimitives::boolAtPut  ,
oop  name,
oop  value 
)

Definition at line 43 of file debug_prims.cpp.

References debugFlags::boolAtPut(), falseObj, oopDesc::is_byteArray(), markSymbol(), PROLOGUE_2, and trueObj.

Here is the call graph for this function:


Generated on Mon Oct 9 13:39:25 2006 for Strongtalk VM by  doxygen 1.4.7