runtime.hpp revision 3863
579N/A * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 0N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 431N/A//------------------------------OptoRuntime------------------------------------ 431N/A// Opto compiler runtime routines 431N/A// These are all generated from Ideal graphs. They are called with the 431N/A// Java calling convention. Internally they call C++. They are made once at 0N/A// startup time and Opto compiles calls to them later. 0N/A// Things are broken up into quads: the signature they will be called with, 0N/A// the address of the generated code, the corresponding C++ code and an 0N/A// The signature (returned by "xxx_Type()") is used at startup time by the 0N/A// Generator to make the generated code "xxx_Java". Opto compiles calls 0N/A// to the generated code "xxx_Java". When the compiled code gets executed, 0N/A// it calls the C++ code "xxx_C". The generated nmethod is saved in the 0N/A// CodeCache. Exception handlers use the nmethod to get the callee-save 0N/A// NamedCounters are tagged counters which can be used for profiling 0N/A// code in various ways. Currently they are used by the lock coarsening code 0N/A friend class Matcher;
// allow access to stub names 0N/A // References to generated stubs 0N/A // Implementation of runtime methods 0N/A // ================================= 0N/A // Allocate storage for a Java instance. 0N/A // Allocate storage for a objArray or typeArray 0N/A // Post-slow-path-allocation, pre-initializing-stores step for 0N/A // implementing ReduceInitialCardMarks 0N/A // Allocate storage for a multi-dimensional arrays 0N/A // Note: needs to be fixed for arbitrary number of dimensions 0N/A // Slow-path Locking and Unlocking 0N/A // Implicit exception support 0N/A // Exception handling 0N/A // =================================================================== 0N/A // zaping dead locals, either from Java frames or from native frames 0N/A // One time only generate runtime code stubs 0N/A // Returns the name of a stub 0N/A // access to runtime stubs entry points for java code 0N/A // Leaf routines helping with method data update 0N/A // Implicit exception support 0N/A // Exception handling 0N/A // ====================================================== 0N/A // leaf on stack replacement interpreter accessor types 1059N/A // leaf methodData routine types 1059N/A // leaf on stack replacement interpreter accessor types 0N/A // helper function which creates a named counter labeled with the 0N/A // if they are available 0N/A // dumps all the named counters 0N/A#
endif // SHARE_VM_OPTO_RUNTIME_HPP