Mercurial > hg > truffle
annotate src/cpu/sparc/vm/c1_MacroAssembler_sparc.hpp @ 1932:e6500c6c5e24
Removed launch configuration.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Tue, 21 Dec 2010 17:09:37 +0100 |
parents | c18cbe5936b8 |
children | f95d63e2154a |
rev | line source |
---|---|
0 | 1 /* |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
2 * Copyright (c) 1999, 2005, Oracle and/or its affiliates. All rights reserved. |
0 | 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 * | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
0
diff
changeset
|
21 * questions. |
0 | 22 * |
23 */ | |
24 | |
25 void pd_init() { /* nothing to do */ } | |
26 | |
27 public: | |
28 void try_allocate( | |
29 Register obj, // result: pointer to object after successful allocation | |
30 Register var_size_in_bytes, // object size in bytes if unknown at compile time; invalid otherwise | |
31 int con_size_in_bytes, // object size in bytes if known at compile time | |
32 Register t1, // temp register | |
33 Register t2, // temp register | |
34 Label& slow_case // continuation point if fast allocation fails | |
35 ); | |
36 | |
37 void initialize_header(Register obj, Register klass, Register len, Register t1, Register t2); | |
38 void initialize_body(Register base, Register index); | |
39 | |
40 // locking/unlocking | |
41 void lock_object (Register Rmark, Register Roop, Register Rbox, Register Rscratch, Label& slow_case); | |
42 void unlock_object(Register Rmark, Register Roop, Register Rbox, Label& slow_case); | |
43 | |
44 void initialize_object( | |
45 Register obj, // result: pointer to object after successful allocation | |
46 Register klass, // object klass | |
47 Register var_size_in_bytes, // object size in bytes if unknown at compile time; invalid otherwise | |
48 int con_size_in_bytes, // object size in bytes if known at compile time | |
49 Register t1, // temp register | |
50 Register t2 // temp register | |
51 ); | |
52 | |
53 // allocation of fixed-size objects | |
54 // (can also be used to allocate fixed-size arrays, by setting | |
55 // hdr_size correctly and storing the array length afterwards) | |
56 void allocate_object( | |
57 Register obj, // result: pointer to object after successful allocation | |
58 Register t1, // temp register | |
59 Register t2, // temp register | |
60 Register t3, // temp register | |
61 int hdr_size, // object header size in words | |
62 int obj_size, // object size in words | |
63 Register klass, // object klass | |
64 Label& slow_case // continuation point if fast allocation fails | |
65 ); | |
66 | |
67 enum { | |
68 max_array_allocation_length = 0x01000000 // sparc friendly value, requires sethi only | |
69 }; | |
70 | |
71 // allocation of arrays | |
72 void allocate_array( | |
73 Register obj, // result: pointer to array after successful allocation | |
74 Register len, // array length | |
75 Register t1, // temp register | |
76 Register t2, // temp register | |
77 Register t3, // temp register | |
78 int hdr_size, // object header size in words | |
79 int elt_size, // element size in bytes | |
80 Register klass, // object klass | |
81 Label& slow_case // continuation point if fast allocation fails | |
82 ); | |
83 | |
84 // invalidates registers in this window | |
85 void invalidate_registers(bool iregisters, bool lregisters, bool oregisters, | |
86 Register preserve1 = noreg, Register preserve2 = noreg); |