src/share/vm/interpreter/templateInterpreterGenerator.hpp

Tue, 28 Jul 2009 12:12:40 -0700

author
xdono
date
Tue, 28 Jul 2009 12:12:40 -0700
changeset 1279
bd02caa94611
parent 1161
be93aad57795
child 1494
389049f3f393
permissions
-rw-r--r--

6862919: Update copyright year
Summary: Update copyright for files that have been modified in 2009, up to 07/09
Reviewed-by: tbell, ohair

duke@435 1 /*
jrose@1145 2 * Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved.
duke@435 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@435 4 *
duke@435 5 * This code is free software; you can redistribute it and/or modify it
duke@435 6 * under the terms of the GNU General Public License version 2 only, as
duke@435 7 * published by the Free Software Foundation.
duke@435 8 *
duke@435 9 * This code is distributed in the hope that it will be useful, but WITHOUT
duke@435 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@435 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@435 12 * version 2 for more details (a copy is included in the LICENSE file that
duke@435 13 * accompanied this code).
duke@435 14 *
duke@435 15 * You should have received a copy of the GNU General Public License version
duke@435 16 * 2 along with this work; if not, write to the Free Software Foundation,
duke@435 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@435 18 *
duke@435 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
duke@435 20 * CA 95054 USA or visit www.sun.com if you need additional information or
duke@435 21 * have any questions.
duke@435 22 *
duke@435 23 */
duke@435 24
twisti@1040 25 // This file contains the platform-independent parts
duke@435 26 // of the template interpreter generator.
duke@435 27
duke@435 28 #ifndef CC_INTERP
duke@435 29
duke@435 30 class TemplateInterpreterGenerator: public AbstractInterpreterGenerator {
duke@435 31 protected:
duke@435 32
duke@435 33 // entry points for shared code sequence
duke@435 34 address _unimplemented_bytecode;
duke@435 35 address _illegal_bytecode_sequence;
duke@435 36
duke@435 37 // shared code sequences
duke@435 38 // Converter for native abi result to tosca result
duke@435 39 address generate_result_handler_for(BasicType type);
duke@435 40 address generate_slow_signature_handler();
duke@435 41 address generate_error_exit(const char* msg);
duke@435 42 address generate_StackOverflowError_handler();
duke@435 43 address generate_exception_handler(const char* name, const char* message) {
duke@435 44 return generate_exception_handler_common(name, message, false);
duke@435 45 }
duke@435 46 address generate_klass_exception_handler(const char* name) {
duke@435 47 return generate_exception_handler_common(name, NULL, true);
duke@435 48 }
duke@435 49 address generate_exception_handler_common(const char* name, const char* message, bool pass_oop);
duke@435 50 address generate_ClassCastException_handler();
jrose@1145 51 address generate_WrongMethodType_handler();
duke@435 52 address generate_ArrayIndexOutOfBounds_handler(const char* name);
duke@435 53 address generate_continuation_for(TosState state);
jrose@1161 54 address generate_return_entry_for(TosState state, int step, bool unbox = false);
jrose@1161 55 address generate_return_unbox_entry_for(TosState state, int step) {
jrose@1161 56 return generate_return_entry_for(state, step, true);
jrose@1161 57 }
duke@435 58 address generate_earlyret_entry_for(TosState state);
duke@435 59 address generate_deopt_entry_for(TosState state, int step);
duke@435 60 address generate_safept_entry_for(TosState state, address runtime_entry);
duke@435 61 void generate_throw_exception();
duke@435 62
duke@435 63 // entry point generator
duke@435 64 // address generate_method_entry(AbstractInterpreter::MethodKind kind);
duke@435 65
duke@435 66 // Instruction generation
duke@435 67 void generate_and_dispatch (Template* t, TosState tos_out = ilgl);
duke@435 68 void set_vtos_entry_points (Template* t, address& bep, address& cep, address& sep, address& aep, address& iep, address& lep, address& fep, address& dep, address& vep);
duke@435 69 void set_short_entry_points(Template* t, address& bep, address& cep, address& sep, address& aep, address& iep, address& lep, address& fep, address& dep, address& vep);
duke@435 70 void set_wide_entry_point (Template* t, address& wep);
duke@435 71
duke@435 72 void set_entry_points(Bytecodes::Code code);
duke@435 73 void set_unimplemented(int i);
duke@435 74 void set_entry_points_for_all_bytes();
duke@435 75 void set_safepoints_for_all_bytes();
duke@435 76
duke@435 77 // Helpers for generate_and_dispatch
duke@435 78 address generate_trace_code(TosState state) PRODUCT_RETURN0;
duke@435 79 void count_bytecode() PRODUCT_RETURN;
duke@435 80 void histogram_bytecode(Template* t) PRODUCT_RETURN;
duke@435 81 void histogram_bytecode_pair(Template* t) PRODUCT_RETURN;
duke@435 82 void trace_bytecode(Template* t) PRODUCT_RETURN;
duke@435 83 void stop_interpreter_at() PRODUCT_RETURN;
duke@435 84
duke@435 85 void generate_all();
duke@435 86
duke@435 87 public:
duke@435 88 TemplateInterpreterGenerator(StubQueue* _code);
duke@435 89
duke@435 90 #include "incls/_templateInterpreterGenerator_pd.hpp.incl"
duke@435 91
duke@435 92 };
duke@435 93
duke@435 94 #endif // !CC_INTERP

mercurial