author | mgronlun |
Tue, 29 Oct 2019 11:33:25 +0100 | |
changeset 58836 | 31ec3e55fa3d |
parent 53244 | 9807daeb47c4 |
permissions | -rw-r--r-- |
1 | 1 |
/* |
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
49480
diff
changeset
|
2 |
* Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved. |
1 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1
diff
changeset
|
21 |
* questions. |
1 | 22 |
* |
23 |
*/ |
|
24 |
||
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
49480
diff
changeset
|
25 |
#ifndef CPU_X86_INTERPRETERRT_X86_HPP |
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
49480
diff
changeset
|
26 |
#define CPU_X86_INTERPRETERRT_X86_HPP |
7397 | 27 |
|
49480
d7df2dd501ce
8199809: Don't include frame.inline.hpp and other.inline.hpp from .hpp files
coleenp
parents:
47216
diff
changeset
|
28 |
// This is included in the middle of class Interpreter. |
d7df2dd501ce
8199809: Don't include frame.inline.hpp and other.inline.hpp from .hpp files
coleenp
parents:
47216
diff
changeset
|
29 |
// Do not include files here. |
7397 | 30 |
|
1 | 31 |
// native method calls |
32 |
||
33 |
class SignatureHandlerGenerator: public NativeSignatureIterator { |
|
34 |
private: |
|
35 |
MacroAssembler* _masm; |
|
36 |
#ifdef AMD64 |
|
37 |
#ifdef _WIN64 |
|
38 |
unsigned int _num_args; |
|
39 |
#else |
|
40 |
unsigned int _num_fp_args; |
|
41 |
unsigned int _num_int_args; |
|
42 |
#endif // _WIN64 |
|
43 |
int _stack_offset; |
|
44 |
#else |
|
45 |
void move(int from_offset, int to_offset); |
|
46 |
void box(int from_offset, int to_offset); |
|
47 |
#endif // AMD64 |
|
48 |
||
49 |
void pass_int(); |
|
50 |
void pass_long(); |
|
51 |
void pass_float(); |
|
52 |
#ifdef AMD64 |
|
53 |
void pass_double(); |
|
54 |
#endif // AMD64 |
|
55 |
void pass_object(); |
|
56 |
||
57 |
public: |
|
58 |
// Creation |
|
49480
d7df2dd501ce
8199809: Don't include frame.inline.hpp and other.inline.hpp from .hpp files
coleenp
parents:
47216
diff
changeset
|
59 |
SignatureHandlerGenerator(const methodHandle& method, CodeBuffer* buffer); |
1 | 60 |
|
61 |
// Code generation |
|
62 |
void generate(uint64_t fingerprint); |
|
63 |
||
64 |
// Code generation support |
|
65 |
static Register from(); |
|
66 |
static Register to(); |
|
67 |
static Register temp(); |
|
68 |
}; |
|
7397 | 69 |
|
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
49480
diff
changeset
|
70 |
#endif // CPU_X86_INTERPRETERRT_X86_HPP |