aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/aarch64/vm/jniFastGetField_aarch64.cpp
blob: 84736825ebb76dfaf3e41ab4d12403a544b9b4ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
 * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 * or visit www.oracle.com if you need additional information or have any
 * questions.
 *
 */

#include "precompiled.hpp"
#include "assembler_aarch64.inline.hpp"
#include "memory/resourceArea.hpp"
#include "prims/jniFastGetField.hpp"
#include "prims/jvm_misc.hpp"
#include "runtime/safepoint.hpp"

#define __ masm->

#define BUFFER_SIZE 30*wordSize

// Instead of issuing lfence for LoadLoad barrier, we create data dependency
// between loads, which is more efficient than lfence.

// Common register usage:
// rax/xmm0: result
// c_rarg0:    jni env
// c_rarg1:    obj
// c_rarg2:    jfield id

// static const Register robj          = r9;
// static const Register rcounter      = r10;
// static const Register roffset       = r11;
// static const Register rcounter_addr = r11;

// Warning: do not use rip relative addressing after the first counter load
// since that may scratch r10!

address JNI_FastGetField::generate_fast_get_int_field0(BasicType type) { Unimplemented(); return 0; }

address JNI_FastGetField::generate_fast_get_boolean_field() { Unimplemented(); return 0; }

address JNI_FastGetField::generate_fast_get_byte_field() { Unimplemented(); return 0; }

address JNI_FastGetField::generate_fast_get_char_field() { Unimplemented(); return 0; }

address JNI_FastGetField::generate_fast_get_short_field() { Unimplemented(); return 0; }

address JNI_FastGetField::generate_fast_get_int_field() { Unimplemented(); return 0; }

address JNI_FastGetField::generate_fast_get_long_field() { Unimplemented(); return 0; }

address JNI_FastGetField::generate_fast_get_float_field0(BasicType type) { Unimplemented(); return 0; }

address JNI_FastGetField::generate_fast_get_float_field() { Unimplemented(); return 0; }

address JNI_FastGetField::generate_fast_get_double_field() { Unimplemented(); return 0; }