src/cpu/x86/vm/jniTypes_x86.hpp
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1998, 2003, 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.
--- 1,7 ----
/*
! * Copyright (c) 1998, 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.
*** 20,29 ****
--- 20,36 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
+ #ifndef CPU_X86_VM_JNITYPES_X86_HPP
+ #define CPU_X86_VM_JNITYPES_X86_HPP
+
+ #include "memory/allocation.hpp"
+ #include "oops/oop.hpp"
+ #include "prims/jni.h"
+
// This file holds platform-dependent routines used to write primitive jni
// types to the array of arguments passed into JavaCalls::call
class JNITypes : AllStatic {
// These functions write a java primitive type (in native format)
*** 120,124 ****
--- 127,133 ----
static inline oop get_obj (intptr_t *from) { return *(oop *) from; }
static inline jfloat get_float (intptr_t *from) { return *(jfloat *) from; }
static inline jdouble get_double(intptr_t *from) { return *(jdouble *)(from + _JNI_SLOT_OFFSET); }
#undef _JNI_SLOT_OFFSET
};
+
+ #endif // CPU_X86_VM_JNITYPES_X86_HPP