/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* 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.
*
*/
#ifndef SHARE_VM_C1_C1_RUNTIME1_HPP
#define SHARE_VM_C1_C1_RUNTIME1_HPP
#include "c1/c1_FrameMap.hpp"
#include "interpreter/interpreter.hpp"
#include "memory/allocation.hpp"
#include "runtime/deoptimization.hpp"
class StubAssembler;
// The Runtime1 holds all assembly stubs and VM
// runtime routines needed by code code generated
// by the Compiler1.
stub(new_instance) \
stub(monitorenter) \
stub(monitorexit) \
stub(deoptimize) \
#define DECLARE_LAST_STUB_ID(x) x
friend class VMStructs;
friend class ArrayCopyStub;
public:
enum StubID {
};
// statistics
#ifndef PRODUCT
static int _resolve_invoke_cnt;
static int _handle_wrong_method_cnt;
static int _ic_miss_cnt;
static int _generic_arraycopy_cnt;
static int _primitive_arraycopy_cnt;
static int _oop_arraycopy_cnt;
static int _generic_arraycopystub_cnt;
static int _arraycopy_slowcase_cnt;
static int _arraycopy_checkcast_cnt;
static int _arraycopy_checkcast_attempt_cnt;
static int _new_type_array_slowcase_cnt;
static int _new_object_array_slowcase_cnt;
static int _new_instance_slowcase_cnt;
static int _new_multi_array_slowcase_cnt;
static int _monitorenter_slowcase_cnt;
static int _monitorexit_slowcase_cnt;
static int _patch_code_slowcase_cnt;
static int _throw_range_check_exception_count;
static int _throw_index_exception_count;
static int _throw_div0_exception_count;
static int _throw_null_pointer_exception_count;
static int _throw_class_cast_exception_count;
static int _throw_incompatible_class_change_error_count;
static int _throw_array_store_exception_count;
static int _throw_count;
#endif
private:
static const char* _blob_names[];
// stub generation
// runtime entry points
public:
// initialization
static void initialize_pd();
// stubs
// platform might add runtime names.
// method tracing
#ifndef PRODUCT
#endif
// directly accessible leaf routine
};
#endif // SHARE_VM_C1_C1_RUNTIME1_HPP