author | roland |
Thu, 21 Mar 2013 09:27:54 +0100 | |
changeset 16611 | 6807a703dd6b |
parent 14626 | 0cf4eccf130f |
child 24018 | 77b156916bab |
permissions | -rw-r--r-- |
1 | 1 |
/* |
13728
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
8921
diff
changeset
|
2 |
* Copyright (c) 2000, 2012, 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:
5046
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
5046
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:
5046
diff
changeset
|
21 |
* questions. |
1 | 22 |
* |
23 |
*/ |
|
24 |
||
7397 | 25 |
#ifndef SHARE_VM_C1_C1_MACROASSEMBLER_HPP |
26 |
#define SHARE_VM_C1_C1_MACROASSEMBLER_HPP |
|
27 |
||
14626
0cf4eccf130f
8003240: x86: move MacroAssembler into separate file
twisti
parents:
13728
diff
changeset
|
28 |
#include "asm/macroAssembler.hpp" |
0cf4eccf130f
8003240: x86: move MacroAssembler into separate file
twisti
parents:
13728
diff
changeset
|
29 |
#include "asm/macroAssembler.inline.hpp" |
7397 | 30 |
|
1 | 31 |
class CodeEmitInfo; |
32 |
||
33 |
class C1_MacroAssembler: public MacroAssembler { |
|
34 |
public: |
|
35 |
// creation |
|
36 |
C1_MacroAssembler(CodeBuffer* code) : MacroAssembler(code) { pd_init(); } |
|
37 |
||
38 |
//---------------------------------------------------- |
|
39 |
void explicit_null_check(Register base); |
|
40 |
||
41 |
void inline_cache_check(Register receiver, Register iCache); |
|
42 |
void build_frame(int frame_size_in_bytes); |
|
5046 | 43 |
void remove_frame(int frame_size_in_bytes); |
1 | 44 |
|
45 |
void unverified_entry(Register receiver, Register ic_klass); |
|
46 |
void verified_entry(); |
|
47 |
void verify_stack_oop(int offset) PRODUCT_RETURN; |
|
48 |
void verify_not_null_oop(Register r) PRODUCT_RETURN; |
|
49 |
||
7397 | 50 |
#ifdef TARGET_ARCH_x86 |
51 |
# include "c1_MacroAssembler_x86.hpp" |
|
52 |
#endif |
|
53 |
#ifdef TARGET_ARCH_sparc |
|
54 |
# include "c1_MacroAssembler_sparc.hpp" |
|
55 |
#endif |
|
8107
78e5bd944384
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
7397
diff
changeset
|
56 |
#ifdef TARGET_ARCH_arm |
78e5bd944384
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
7397
diff
changeset
|
57 |
# include "c1_MacroAssembler_arm.hpp" |
78e5bd944384
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
7397
diff
changeset
|
58 |
#endif |
78e5bd944384
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
7397
diff
changeset
|
59 |
#ifdef TARGET_ARCH_ppc |
78e5bd944384
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
7397
diff
changeset
|
60 |
# include "c1_MacroAssembler_ppc.hpp" |
78e5bd944384
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
7397
diff
changeset
|
61 |
#endif |
7397 | 62 |
|
1 | 63 |
}; |
64 |
||
65 |
||
66 |
||
67 |
// A StubAssembler is a MacroAssembler w/ extra functionality for runtime |
|
68 |
// stubs. Currently it 'knows' some stub info. Eventually, the information |
|
69 |
// may be set automatically or can be asserted when using specialised |
|
70 |
// StubAssembler functions. |
|
71 |
||
72 |
class StubAssembler: public C1_MacroAssembler { |
|
73 |
private: |
|
74 |
const char* _name; |
|
75 |
bool _must_gc_arguments; |
|
76 |
int _frame_size; |
|
77 |
int _num_rt_args; |
|
78 |
int _stub_id; |
|
79 |
||
80 |
public: |
|
81 |
// creation |
|
82 |
StubAssembler(CodeBuffer* code, const char * name, int stub_id); |
|
83 |
void set_info(const char* name, bool must_gc_arguments); |
|
84 |
||
85 |
void set_frame_size(int size); |
|
86 |
void set_num_rt_args(int args); |
|
87 |
||
88 |
// accessors |
|
89 |
const char* name() const { return _name; } |
|
90 |
bool must_gc_arguments() const { return _must_gc_arguments; } |
|
91 |
int frame_size() const { return _frame_size; } |
|
92 |
int num_rt_args() const { return _num_rt_args; } |
|
93 |
int stub_id() const { return _stub_id; } |
|
94 |
||
95 |
// runtime calls (return offset of call to be used by GC map) |
|
13728
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
8921
diff
changeset
|
96 |
int call_RT(Register oop_result1, Register metadata_result, address entry, int args_size = 0); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
8921
diff
changeset
|
97 |
int call_RT(Register oop_result1, Register metadata_result, address entry, Register arg1); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
8921
diff
changeset
|
98 |
int call_RT(Register oop_result1, Register metadata_result, address entry, Register arg1, Register arg2); |
882756847a04
6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
8921
diff
changeset
|
99 |
int call_RT(Register oop_result1, Register metadata_result, address entry, Register arg1, Register arg2, Register arg3); |
1 | 100 |
}; |
7397 | 101 |
|
102 |
#endif // SHARE_VM_C1_C1_MACROASSEMBLER_HPP |