/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* 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_x86.inline.hpp"
#include "memory/resourceArea.hpp"
#include "prims/jniFastGetField.hpp"
#include "prims/jvm_misc.hpp"
#include "runtime/safepoint.hpp"
#ifdef _WINDOWS
#endif
// Instead of issuing lfence for LoadLoad barrier, we create data dependency
// between loads, which is much more efficient than lfence.
const char *name;
switch (type) {
default: ShouldNotReachHere();
}
// stack layout: offset from rsp (in words):
// return pc 0
// jni env 1
// obj 2
// jfieldID 3
// obj, notice rax, is 0.
// rdx is data dependent on rcx.
} else {
}
switch (type) {
default: ShouldNotReachHere();
}
// ca1 is the same as ca because
// rax, ^ counter_addr ^ rax, = address
// ca1 is data dependent on rax,.
} else {
}
#ifndef _WINDOWS
#else
// __stdcall calling convention
#endif
switch (type) {
}
// tail call
#ifndef _WINDOWS
return fast_entry;
#else
switch (type) {
}
#endif
}
return generate_fast_get_int_field0(T_BOOLEAN);
}
return generate_fast_get_int_field0(T_BYTE);
}
return generate_fast_get_int_field0(T_CHAR);
}
return generate_fast_get_int_field0(T_SHORT);
}
return generate_fast_get_int_field0(T_INT);
}
const char *name = "jni_fast_GetLongField";
// stack layout: offset from rsp (in words):
// old rsi 0
// return pc 1
// jni env 2
// obj 3
// jfieldID 4
// obj, notice rax, is 0.
// rdx is data dependent on rcx.
} else {
}
#ifndef _LP64
#endif // _LP64
// ca1 is the same as ca because
// rax, ^ rdx ^ counter_addr ^ rax, ^ rdx = address
// ca1 is data dependent on both rax, and rdx.
} else {
}
#ifndef _WINDOWS
#else
// __stdcall calling convention
#endif
// tail call
#ifndef _WINDOWS
return fast_entry;
#else
#endif
}
const char *name;
switch (type) {
default: ShouldNotReachHere();
}
// stack layout: offset from rsp (in words):
// return pc 0
// jni env 1
// obj 2
// jfieldID 3
// obj, notice rax, is 0.
// rdx is data dependent on rcx.
} else {
}
switch (type) {
#ifndef _LP64
#else
#endif // _LP64
default: ShouldNotReachHere();
}
// garbage hi-order bits on 64bit are harmless.
// rax, ^ counter_addr ^ rax, = address
// ca1 is data dependent on the field
// access.
} else {
}
#ifndef _WINDOWS
#else
// __stdcall calling convention
#endif
// invalid load. pop FPU stack.
switch (type) {
default: ShouldNotReachHere();
}
// tail call
#ifndef _WINDOWS
return fast_entry;
#else
switch (type) {
}
#endif
}
return generate_fast_get_float_field0(T_FLOAT);
}
return generate_fast_get_float_field0(T_DOUBLE);
}