24 */
25
26 #ifndef CPU_AARCH64_VM_STUBROUTINES_AARCH64_HPP
27 #define CPU_AARCH64_VM_STUBROUTINES_AARCH64_HPP
28
29 // This file holds the platform specific parts of the StubRoutines
30 // definition. See stubRoutines.hpp for a description on how to
31 // extend it.
32
33 // n.b. if we are notifying entry/exit to the simulator then the call
34 // stub does a notify at normal return placing
35 // call_stub_return_address one instruction beyond the notify. the
36 // latter address is sued by the stack unwind code when doign an
37 // exception return.
38 static bool returns_to_call_stub(address return_pc) {
39 return return_pc == _call_stub_return_address + (NotifySimulator ? -4 : 0);
40 }
41
42 enum platform_dependent_constants {
43 code_size1 = 19000, // simply increase if too small (assembler will crash if too small)
44 code_size2 = 23000 // simply increase if too small (assembler will crash if too small)
45 };
46
47 class aarch64 {
48 friend class StubGenerator;
49
50 private:
51 static address _shenandoah_wb;
52
53 static address _get_previous_fp_entry;
54 static address _get_previous_sp_entry;
55
56 static address _f2i_fixup;
57 static address _f2l_fixup;
58 static address _d2i_fixup;
59 static address _d2l_fixup;
60
61 static address _float_sign_mask;
62 static address _float_sign_flip;
63 static address _double_sign_mask;
64 static address _double_sign_flip;
65
66 static address _zero_blocks;
67
68 static address _has_negatives;
69 static address _has_negatives_long;
70 static address _large_array_equals;
71 static bool _completed;
72
103 }
104
105 static address float_sign_mask()
106 {
107 return _float_sign_mask;
108 }
109
110 static address float_sign_flip()
111 {
112 return _float_sign_flip;
113 }
114
115 static address double_sign_mask()
116 {
117 return _double_sign_mask;
118 }
119
120 static address double_sign_flip()
121 {
122 return _double_sign_flip;
123 }
124
125 static address shenandoah_wb()
126 {
127 return _shenandoah_wb;
128 }
129
130 static address zero_blocks() {
131 return _zero_blocks;
132 }
133
134 static address has_negatives() {
135 return _has_negatives;
136 }
137
138 static address has_negatives_long() {
139 return _has_negatives_long;
140 }
141
142 static address large_array_equals() {
143 return _large_array_equals;
144 }
145
146 static bool complete() {
147 return _completed;
|
24 */
25
26 #ifndef CPU_AARCH64_VM_STUBROUTINES_AARCH64_HPP
27 #define CPU_AARCH64_VM_STUBROUTINES_AARCH64_HPP
28
29 // This file holds the platform specific parts of the StubRoutines
30 // definition. See stubRoutines.hpp for a description on how to
31 // extend it.
32
33 // n.b. if we are notifying entry/exit to the simulator then the call
34 // stub does a notify at normal return placing
35 // call_stub_return_address one instruction beyond the notify. the
36 // latter address is sued by the stack unwind code when doign an
37 // exception return.
38 static bool returns_to_call_stub(address return_pc) {
39 return return_pc == _call_stub_return_address + (NotifySimulator ? -4 : 0);
40 }
41
42 enum platform_dependent_constants {
43 code_size1 = 19000, // simply increase if too small (assembler will crash if too small)
44 code_size2 = 22000 // simply increase if too small (assembler will crash if too small)
45 };
46
47 class aarch64 {
48 friend class StubGenerator;
49
50 private:
51 static address _get_previous_fp_entry;
52 static address _get_previous_sp_entry;
53
54 static address _f2i_fixup;
55 static address _f2l_fixup;
56 static address _d2i_fixup;
57 static address _d2l_fixup;
58
59 static address _float_sign_mask;
60 static address _float_sign_flip;
61 static address _double_sign_mask;
62 static address _double_sign_flip;
63
64 static address _zero_blocks;
65
66 static address _has_negatives;
67 static address _has_negatives_long;
68 static address _large_array_equals;
69 static bool _completed;
70
101 }
102
103 static address float_sign_mask()
104 {
105 return _float_sign_mask;
106 }
107
108 static address float_sign_flip()
109 {
110 return _float_sign_flip;
111 }
112
113 static address double_sign_mask()
114 {
115 return _double_sign_mask;
116 }
117
118 static address double_sign_flip()
119 {
120 return _double_sign_flip;
121 }
122
123 static address zero_blocks() {
124 return _zero_blocks;
125 }
126
127 static address has_negatives() {
128 return _has_negatives;
129 }
130
131 static address has_negatives_long() {
132 return _has_negatives_long;
133 }
134
135 static address large_array_equals() {
136 return _large_array_equals;
137 }
138
139 static bool complete() {
140 return _completed;
|