author | ihse |
Mon, 26 Nov 2018 14:18:22 +0100 | |
branch | ihse-manpages-branch |
changeset 57043 | 23d7457ca4c6 |
parent 49906 | 4bb58f644e4e |
child 53244 | 9807daeb47c4 |
permissions | -rw-r--r-- |
1 | 1 |
/* |
49906 | 2 |
* Copyright (c) 1999, 2018, 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 |
||
7397 | 25 |
#ifndef CPU_SPARC_VM_C1_MACROASSEMBLER_SPARC_HPP |
26 |
#define CPU_SPARC_VM_C1_MACROASSEMBLER_SPARC_HPP |
|
27 |
||
1 | 28 |
void pd_init() { /* nothing to do */ } |
29 |
||
30 |
public: |
|
31 |
void try_allocate( |
|
32 |
Register obj, // result: pointer to object after successful allocation |
|
33 |
Register var_size_in_bytes, // object size in bytes if unknown at compile time; invalid otherwise |
|
34 |
int con_size_in_bytes, // object size in bytes if known at compile time |
|
35 |
Register t1, // temp register |
|
36 |
Register t2, // temp register |
|
37 |
Label& slow_case // continuation point if fast allocation fails |
|
38 |
); |
|
39 |
||
40 |
void initialize_header(Register obj, Register klass, Register len, Register t1, Register t2); |
|
41 |
void initialize_body(Register base, Register index); |
|
42 |
||
43 |
// locking/unlocking |
|
44 |
void lock_object (Register Rmark, Register Roop, Register Rbox, Register Rscratch, Label& slow_case); |
|
45 |
void unlock_object(Register Rmark, Register Roop, Register Rbox, Label& slow_case); |
|
46 |
||
47 |
void initialize_object( |
|
48 |
Register obj, // result: pointer to object after successful allocation |
|
49 |
Register klass, // object klass |
|
50 |
Register var_size_in_bytes, // object size in bytes if unknown at compile time; invalid otherwise |
|
51 |
int con_size_in_bytes, // object size in bytes if known at compile time |
|
52 |
Register t1, // temp register |
|
35548
8d3afe96ffea
8086053: Address inconsistencies regarding ZeroTLAB
zmajo
parents:
34220
diff
changeset
|
53 |
Register t2, // temp register |
8d3afe96ffea
8086053: Address inconsistencies regarding ZeroTLAB
zmajo
parents:
34220
diff
changeset
|
54 |
bool is_tlab_allocated // the object was allocated in a TLAB; relevant for the implementation of ZeroTLAB |
1 | 55 |
); |
56 |
||
57 |
// allocation of fixed-size objects |
|
58 |
// (can also be used to allocate fixed-size arrays, by setting |
|
59 |
// hdr_size correctly and storing the array length afterwards) |
|
60 |
void allocate_object( |
|
61 |
Register obj, // result: pointer to object after successful allocation |
|
62 |
Register t1, // temp register |
|
63 |
Register t2, // temp register |
|
64 |
Register t3, // temp register |
|
65 |
int hdr_size, // object header size in words |
|
66 |
int obj_size, // object size in words |
|
67 |
Register klass, // object klass |
|
68 |
Label& slow_case // continuation point if fast allocation fails |
|
69 |
); |
|
70 |
||
71 |
enum { |
|
72 |
max_array_allocation_length = 0x01000000 // sparc friendly value, requires sethi only |
|
73 |
}; |
|
74 |
||
75 |
// allocation of arrays |
|
76 |
void allocate_array( |
|
77 |
Register obj, // result: pointer to array after successful allocation |
|
78 |
Register len, // array length |
|
79 |
Register t1, // temp register |
|
80 |
Register t2, // temp register |
|
81 |
Register t3, // temp register |
|
82 |
int hdr_size, // object header size in words |
|
83 |
int elt_size, // element size in bytes |
|
84 |
Register klass, // object klass |
|
85 |
Label& slow_case // continuation point if fast allocation fails |
|
86 |
); |
|
87 |
||
88 |
// invalidates registers in this window |
|
89 |
void invalidate_registers(bool iregisters, bool lregisters, bool oregisters, |
|
90 |
Register preserve1 = noreg, Register preserve2 = noreg); |
|
7397 | 91 |
|
34220 | 92 |
// This platform only uses signal-based null checks. The Label is not needed. |
93 |
void null_check(Register r, Label *Lnull = NULL) { MacroAssembler::null_check(r); } |
|
94 |
||
49906 | 95 |
void save_live_registers_no_oop_map(bool save_fpu_registers); |
96 |
void restore_live_registers(bool restore_fpu_registers); |
|
97 |
||
7397 | 98 |
#endif // CPU_SPARC_VM_C1_MACROASSEMBLER_SPARC_HPP |