Path: blob/master/src/hotspot/cpu/x86/interpreterRT_x86.hpp
41144 views
/*1* Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*22*/2324#ifndef CPU_X86_INTERPRETERRT_X86_HPP25#define CPU_X86_INTERPRETERRT_X86_HPP2627// This is included in the middle of class Interpreter.28// Do not include files here.2930// native method calls3132class SignatureHandlerGenerator: public NativeSignatureIterator {33private:34MacroAssembler* _masm;35#ifdef AMD6436#ifdef _WIN6437unsigned int _num_args;38#else39unsigned int _num_fp_args;40unsigned int _num_int_args;41#endif // _WIN6442int _stack_offset;43#else44void move(int from_offset, int to_offset);45void box(int from_offset, int to_offset);46#endif // AMD644748void pass_int();49void pass_long();50void pass_float();51#ifdef AMD6452void pass_double();53#endif // AMD6454void pass_object();5556public:57// Creation58SignatureHandlerGenerator(const methodHandle& method, CodeBuffer* buffer);5960// Code generation61void generate(uint64_t fingerprint);6263// Code generation support64static Register from();65static Register to();66static Register temp();67};6869#endif // CPU_X86_INTERPRETERRT_X86_HPP707172