author | avoitylov |
Mon, 24 Sep 2018 16:39:02 +0300 | |
changeset 51845 | f5daffd7ec7a |
parent 51620 | 4871c2d2e97e |
child 51846 | cc1a4a267798 |
permissions | -rw-r--r-- |
49950
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
1 |
/* |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
2 |
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
4 |
* |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
8 |
* |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
13 |
* accompanied this code). |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
14 |
* |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
18 |
* |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
21 |
* questions. |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
22 |
* |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
23 |
*/ |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
24 |
|
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
25 |
#include "precompiled.hpp" |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
26 |
#include "gc/shared/barrierSetAssembler.hpp" |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
27 |
|
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
28 |
#define __ masm-> |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
29 |
|
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
30 |
void BarrierSetAssembler::load_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type, |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
31 |
Register dst, Address src, Register tmp1, Register tmp2, Register tmp3) { |
50599
ecc2af326b5f
8204939: Change Access nomenclature: root to native
kbarrett
parents:
49950
diff
changeset
|
32 |
bool in_heap = (decorators & IN_HEAP) != 0; |
ecc2af326b5f
8204939: Change Access nomenclature: root to native
kbarrett
parents:
49950
diff
changeset
|
33 |
bool in_native = (decorators & IN_NATIVE) != 0; |
49950
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
34 |
switch (type) { |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
35 |
case T_OBJECT: |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
36 |
case T_ARRAY: { |
50599
ecc2af326b5f
8204939: Change Access nomenclature: root to native
kbarrett
parents:
49950
diff
changeset
|
37 |
if (in_heap) { |
49950
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
38 |
#ifdef AARCH64 |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
39 |
if (UseCompressedOops) { |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
40 |
__ ldr_w(dst, src); |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
41 |
__ decode_heap_oop(dst); |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
42 |
} else |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
43 |
#endif // AARCH64 |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
44 |
{ |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
45 |
__ ldr(dst, src); |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
46 |
} |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
47 |
} else { |
50599
ecc2af326b5f
8204939: Change Access nomenclature: root to native
kbarrett
parents:
49950
diff
changeset
|
48 |
assert(in_native, "why else?"); |
49950
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
49 |
__ ldr(dst, src); |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
50 |
} |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
51 |
break; |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
52 |
} |
51620
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
53 |
case T_BOOLEAN: __ ldrb (dst, src); break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
54 |
case T_BYTE: __ ldrsb (dst, src); break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
55 |
case T_CHAR: __ ldrh (dst, src); break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
56 |
case T_SHORT: __ ldrsh (dst, src); break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
57 |
case T_INT: __ ldr_s32 (dst, src); break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
58 |
case T_ADDRESS: __ ldr (dst, src); break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
59 |
case T_LONG: |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
60 |
#ifdef AARCH64 |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
61 |
__ ldr (dst, src); break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
62 |
#else |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
63 |
assert(dst == noreg, "only to ltos"); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
64 |
__ add (src.index(), src.index(), src.base()); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
65 |
__ ldmia (src.index(), RegisterSet(R0_tos_lo) | RegisterSet(R1_tos_hi)); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
66 |
#endif // AARCH64 |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
67 |
break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
68 |
#ifdef __SOFTFP__ |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
69 |
case T_FLOAT: |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
70 |
assert(dst == noreg, "only to ftos"); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
71 |
__ ldr (R0_tos, src); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
72 |
break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
73 |
case T_DOUBLE: |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
74 |
assert(dst == noreg, "only to dtos"); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
75 |
__ add (src.index(), src.index(), src.base()); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
76 |
__ ldmia (src.index(), RegisterSet(R0_tos_lo) | RegisterSet(R1_tos_hi)); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
77 |
break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
78 |
#else |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
79 |
case T_FLOAT: |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
80 |
assert(dst == noreg, "only to ftos"); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
81 |
__ add(src.index(), src.index(), src.base()); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
82 |
__ ldr_float (S0_tos, src.index()); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
83 |
break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
84 |
case T_DOUBLE: |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
85 |
assert(dst == noreg, "only to dtos"); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
86 |
__ add (src.index(), src.index(), src.base()); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
87 |
__ ldr_double (D0_tos, src.index()); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
88 |
break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
89 |
#endif |
49950
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
90 |
default: Unimplemented(); |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
91 |
} |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
92 |
|
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
93 |
} |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
94 |
|
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
95 |
void BarrierSetAssembler::store_at(MacroAssembler* masm, DecoratorSet decorators, BasicType type, |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
96 |
Address obj, Register val, Register tmp1, Register tmp2, Register tmp3, bool is_null) { |
50599
ecc2af326b5f
8204939: Change Access nomenclature: root to native
kbarrett
parents:
49950
diff
changeset
|
97 |
bool in_heap = (decorators & IN_HEAP) != 0; |
ecc2af326b5f
8204939: Change Access nomenclature: root to native
kbarrett
parents:
49950
diff
changeset
|
98 |
bool in_native = (decorators & IN_NATIVE) != 0; |
49950
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
99 |
switch (type) { |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
100 |
case T_OBJECT: |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
101 |
case T_ARRAY: { |
50599
ecc2af326b5f
8204939: Change Access nomenclature: root to native
kbarrett
parents:
49950
diff
changeset
|
102 |
if (in_heap) { |
49950
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
103 |
#ifdef AARCH64 |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
104 |
if (UseCompressedOops) { |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
105 |
assert(!dst.uses(src), "not enough registers"); |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
106 |
if (!is_null) { |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
107 |
__ encode_heap_oop(src); |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
108 |
} |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
109 |
__ str_w(val, obj); |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
110 |
} else |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
111 |
#endif // AARCH64 |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
112 |
{ |
51620
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
113 |
__ str(val, obj); |
49950
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
114 |
} |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
115 |
} else { |
50599
ecc2af326b5f
8204939: Change Access nomenclature: root to native
kbarrett
parents:
49950
diff
changeset
|
116 |
assert(in_native, "why else?"); |
49950
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
117 |
__ str(val, obj); |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
118 |
} |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
119 |
break; |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
120 |
} |
51620
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
121 |
case T_BOOLEAN: |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
122 |
__ and_32(val, val, 1); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
123 |
__ strb(val, obj); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
124 |
break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
125 |
case T_BYTE: __ strb (val, obj); break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
126 |
case T_CHAR: __ strh (val, obj); break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
127 |
case T_SHORT: __ strh (val, obj); break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
128 |
case T_INT: __ str (val, obj); break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
129 |
case T_ADDRESS: __ str (val, obj); break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
130 |
case T_LONG: |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
131 |
#ifdef AARCH64 |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
132 |
__ str (val, obj); break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
133 |
#else // AARCH64 |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
134 |
assert(val == noreg, "only tos"); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
135 |
__ add (obj.index(), obj.index(), obj.base()); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
136 |
__ stmia (obj.index(), RegisterSet(R0_tos_lo) | RegisterSet(R1_tos_hi)); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
137 |
#endif // AARCH64 |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
138 |
break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
139 |
#ifdef __SOFTFP__ |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
140 |
case T_FLOAT: |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
141 |
assert(val == noreg, "only tos"); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
142 |
__ str (R0_tos, obj); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
143 |
break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
144 |
case T_DOUBLE: |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
145 |
assert(val == noreg, "only tos"); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
146 |
__ add (obj.index(), obj.index(), obj.base()); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
147 |
__ stmia (obj.index(), RegisterSet(R0_tos_lo) | RegisterSet(R1_tos_hi)); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
148 |
break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
149 |
#else |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
150 |
case T_FLOAT: |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
151 |
assert(val == noreg, "only tos"); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
152 |
__ add (obj.index(), obj.index(), obj.base()); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
153 |
__ str_float (S0_tos, obj.index()); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
154 |
break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
155 |
case T_DOUBLE: |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
156 |
assert(val == noreg, "only tos"); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
157 |
__ add (obj.index(), obj.index(), obj.base()); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
158 |
__ str_double (D0_tos, obj.index()); |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
159 |
break; |
4871c2d2e97e
8209408: Primitive heap access for interpreter BarrierSetAssembler/arm32
bulasevich
parents:
50599
diff
changeset
|
160 |
#endif |
49950
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
161 |
default: Unimplemented(); |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
162 |
} |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
163 |
} |
7b916885654d
8201786: Modularize interpreter GC barriers: leftovers for ARM32
shade
parents:
diff
changeset
|
164 |
|
51845
f5daffd7ec7a
8210465: ARM: Object equals abstraction for BarrierSetAssembler
avoitylov
parents:
51620
diff
changeset
|
165 |
void BarrierSetAssembler::obj_equals(MacroAssembler* masm, |
f5daffd7ec7a
8210465: ARM: Object equals abstraction for BarrierSetAssembler
avoitylov
parents:
51620
diff
changeset
|
166 |
Register obj1, Register obj2) { |
f5daffd7ec7a
8210465: ARM: Object equals abstraction for BarrierSetAssembler
avoitylov
parents:
51620
diff
changeset
|
167 |
__ cmp(obj1, obj2); |
f5daffd7ec7a
8210465: ARM: Object equals abstraction for BarrierSetAssembler
avoitylov
parents:
51620
diff
changeset
|
168 |
} |