|
1 /* |
|
2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
|
3 * Copyright (c) 2016 SAP SE. All rights reserved. |
|
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
5 * |
|
6 * This code is free software; you can redistribute it and/or modify it |
|
7 * under the terms of the GNU General Public License version 2 only, as |
|
8 * published by the Free Software Foundation. |
|
9 * |
|
10 * This code is distributed in the hope that it will be useful, but WITHOUT |
|
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
13 * version 2 for more details (a copy is included in the LICENSE file that |
|
14 * accompanied this code). |
|
15 * |
|
16 * You should have received a copy of the GNU General Public License version |
|
17 * 2 along with this work; if not, write to the Free Software Foundation, |
|
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
19 * |
|
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
21 * or visit www.oracle.com if you need additional information or have any |
|
22 * questions. |
|
23 * |
|
24 */ |
|
25 |
|
26 #include "precompiled.hpp" |
|
27 #include "prims/jniFastGetField.hpp" |
|
28 #include "prims/jvm_misc.hpp" |
|
29 |
|
30 // TSO ensures that loads are blocking and ordered with respect to |
|
31 // to earlier loads, so we don't need LoadLoad membars. |
|
32 |
|
33 #define __ masm-> |
|
34 |
|
35 #define BUFFER_SIZE 30*sizeof(jint) |
|
36 |
|
37 address JNI_FastGetField::generate_fast_get_int_field0(BasicType type) { |
|
38 // Don't use fast jni accessors. |
|
39 return (address) -1; |
|
40 } |
|
41 |
|
42 address JNI_FastGetField::generate_fast_get_boolean_field() { |
|
43 return generate_fast_get_int_field0(T_BOOLEAN); |
|
44 } |
|
45 |
|
46 address JNI_FastGetField::generate_fast_get_byte_field() { |
|
47 return generate_fast_get_int_field0(T_BYTE); |
|
48 } |
|
49 |
|
50 address JNI_FastGetField::generate_fast_get_char_field() { |
|
51 return generate_fast_get_int_field0(T_CHAR); |
|
52 } |
|
53 |
|
54 address JNI_FastGetField::generate_fast_get_short_field() { |
|
55 return generate_fast_get_int_field0(T_SHORT); |
|
56 } |
|
57 |
|
58 address JNI_FastGetField::generate_fast_get_int_field() { |
|
59 return generate_fast_get_int_field0(T_INT); |
|
60 } |
|
61 |
|
62 address JNI_FastGetField::generate_fast_get_long_field() { |
|
63 // Don't use fast jni accessors. |
|
64 return (address) -1; |
|
65 } |
|
66 |
|
67 address JNI_FastGetField::generate_fast_get_float_field0(BasicType type) { |
|
68 // Don't use fast jni accessors. |
|
69 return (address) -1; |
|
70 } |
|
71 |
|
72 address JNI_FastGetField::generate_fast_get_float_field() { |
|
73 return generate_fast_get_float_field0(T_FLOAT); |
|
74 } |
|
75 |
|
76 address JNI_FastGetField::generate_fast_get_double_field() { |
|
77 return generate_fast_get_float_field0(T_DOUBLE); |
|
78 } |