annotate src/hotspot/share/interpreter/cppInterpreterGenerator.hpp @ 54526:ee29b516a36a

revert changes
author jlaskey
date Wed, 23 Jan 2019 16:09:20 -0400
parents 71c04702a3d5
children
rev   line source
duke@1 1 /*
coleenp@54304 2 * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
duke@1 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@1 4 *
duke@1 5 * This code is free software; you can redistribute it and/or modify it
duke@1 6 * under the terms of the GNU General Public License version 2 only, as
duke@1 7 * published by the Free Software Foundation.
duke@1 8 *
duke@1 9 * This code is distributed in the hope that it will be useful, but WITHOUT
duke@1 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@1 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@1 12 * version 2 for more details (a copy is included in the LICENSE file that
duke@1 13 * accompanied this code).
duke@1 14 *
duke@1 15 * You should have received a copy of the GNU General Public License version
duke@1 16 * 2 along with this work; if not, write to the Free Software Foundation,
duke@1 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@1 18 *
trims@5547 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@5547 20 * or visit www.oracle.com if you need additional information or have any
trims@5547 21 * questions.
duke@1 22 *
duke@1 23 */
duke@1 24
coleenp@54304 25 #ifndef SHARE_INTERPRETER_CPPINTERPRETERGENERATOR_HPP
coleenp@54304 26 #define SHARE_INTERPRETER_CPPINTERPRETERGENERATOR_HPP
stefank@7397 27
twisti@2131 28 // This file contains the platform-independent parts
duke@1 29 // of the template interpreter generator.
duke@1 30
duke@1 31 #ifdef CC_INTERP
coleenp@35214 32 #ifdef ZERO
stuefe@30601 33 # include "entry_zero.hpp"
stuefe@30601 34 # include "interpreter/interp_masm.hpp"
stuefe@30601 35 #endif
duke@1 36
duke@1 37 class CppInterpreterGenerator: public AbstractInterpreterGenerator {
duke@1 38
coleenp@35214 39 private:
duke@1 40 void generate_all();
duke@1 41
coleenp@35479 42 address generate_slow_signature_handler();
coleenp@35479 43
coleenp@35214 44 address generate_method_entry(AbstractInterpreter::MethodKind kind);
coleenp@35214 45 address generate_normal_entry(bool synchronized);
coleenp@35214 46 address generate_native_entry(bool synchronized);
coleenp@35214 47 address generate_abstract_entry();
coleenp@35214 48 address generate_math_entry(AbstractInterpreter::MethodKind kind);
coleenp@35214 49 address generate_empty_entry();
coleenp@35214 50 address generate_accessor_entry();
coleenp@35214 51 address generate_Reference_get_entry();
coleenp@35214 52
duke@1 53 public:
duke@1 54 CppInterpreterGenerator(StubQueue* _code);
duke@1 55
coleenp@35214 56 #ifdef ZERO
coleenp@35214 57 protected:
coleenp@35214 58 MacroAssembler* assembler() const {
coleenp@35214 59 return _masm;
coleenp@35214 60 }
stefank@7397 61
coleenp@35214 62 public:
coleenp@35214 63 static address generate_entry_impl(MacroAssembler* masm, address entry_point) {
coleenp@35214 64 ZeroEntry *entry = (ZeroEntry *) masm->pc();
coleenp@35214 65 masm->advance(sizeof(ZeroEntry));
coleenp@35214 66 entry->set_entry_point(entry_point);
coleenp@35214 67 return (address) entry;
coleenp@35214 68 }
coleenp@35214 69
coleenp@35214 70 protected:
coleenp@35214 71 address generate_entry(address entry_point) {
coleenp@35214 72 return generate_entry_impl(assembler(), entry_point);
coleenp@35214 73 }
coleenp@35214 74 #endif // ZERO
duke@1 75 };
duke@1 76
duke@1 77 #endif // CC_INTERP
coleenp@54304 78 #endif // SHARE_INTERPRETER_CPPINTERPRETERGENERATOR_HPP