/* * Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. *
*/
//------------------------------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();
};
#endif// SHARE_OPTO_RUNTIME_HPP
Messung V0.5
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet)
¤
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.