//------------------------------OptoRuntime------------------------------------ // Opto compiler runtime routines // // These are all generated from Ideal graphs. They are called with the // Java calling convention. Internally they call C++. They are made once at // startup time and Opto compiles calls to them later. // Things are broken up into quads: the signature they will be called with, // the address of the generated code, the corresponding C++ code and an // nmethod.
// The signature (returned by "xxx_Type()") is used at startup time by the // Generator to make the generated code "xxx_Java". Opto compiles calls // to the generated code "xxx_Java". When the compiled code gets executed, // it calls the C++ code "xxx_C". The generated nmethod is saved in the // CodeCache. Exception handlers use the nmethod to get the callee-save // register OopMaps. class CallInfo;
// // NamedCounters are tagged counters which can be used for profiling // code in various ways. Currently they are used by the lock coarsening code //
class NamedCounter : public CHeapObj<mtCompiler> { public: enum CounterTag {
NoTag,
LockCounter,
EliminatedLockCounter,
RTMLockingCounter
};
private: constchar * _name; int _count;
CounterTag _tag;
NamedCounter* _next;
// // Implementation of runtime methods // =================================
// Allocate storage for a Java instance. staticvoid new_instance_C(Klass* instance_klass, JavaThread* current);
// Allocate storage for a objArray or typeArray staticvoid new_array_C(Klass* array_klass, int len, JavaThread* current); staticvoid new_array_nozero_C(Klass* array_klass, int len, JavaThread* current);
// Allocate storage for a multi-dimensional arrays // Note: needs to be fixed for arbitrary number of dimensions staticvoid multianewarray2_C(Klass* klass, int len1, int len2, JavaThread* current); staticvoid multianewarray3_C(Klass* klass, int len1, int len2, int len3, JavaThread* current); staticvoid multianewarray4_C(Klass* klass, int len1, int len2, int len3, int len4, JavaThread* current); staticvoid multianewarray5_C(Klass* klass, int len1, int len2, int len3, int len4, int len5, JavaThread* current); staticvoid multianewarrayN_C(Klass* klass, arrayOopDesc* dims, JavaThread* current);
// One time only generate runtime code stubs. Returns true // when runtime stubs have been generated successfully and // false otherwise. staticbool generate(ciEnv* env);
// Returns the name of a stub staticconstchar* stub_name(address entry);
public: // helper function which creates a named counter labeled with the // if they are available static NamedCounter* new_named_counter(JVMState* jvms, NamedCounter::CounterTag tag);
// dumps all the named counters staticvoid print_named_counters();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.