10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 #include "precompiled.hpp" 26 #include "runtime/stackValueCollection.hpp" 27 #ifdef TARGET_ARCH_x86 28 # include "jniTypes_x86.hpp" 29 #endif 30 #ifdef TARGET_ARCH_sparc 31 # include "jniTypes_sparc.hpp" 32 #endif 33 #ifdef TARGET_ARCH_zero 34 # include "jniTypes_zero.hpp" 35 #endif 36 #ifdef TARGET_ARCH_arm 37 # include "jniTypes_arm.hpp" 38 #endif 39 #ifdef TARGET_ARCH_ppc 40 # include "jniTypes_ppc.hpp" 41 #endif 42 43 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC 44 45 jint StackValueCollection::int_at(int slot) const { 46 intptr_t val = at(slot)->get_int(); 47 jint ival = *((jint*) (&val)); 48 return ival; 49 } | 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 #include "precompiled.hpp" 26 #include "runtime/stackValueCollection.hpp" 27 #ifdef TARGET_ARCH_x86 28 # include "jniTypes_x86.hpp" 29 #endif 30 #ifdef TARGET_ARCH_aarch64 31 # include "jniTypes_aarch64.hpp" 32 #endif 33 #ifdef TARGET_ARCH_sparc 34 # include "jniTypes_sparc.hpp" 35 #endif 36 #ifdef TARGET_ARCH_zero 37 # include "jniTypes_zero.hpp" 38 #endif 39 #ifdef TARGET_ARCH_arm 40 # include "jniTypes_arm.hpp" 41 #endif 42 #ifdef TARGET_ARCH_ppc 43 # include "jniTypes_ppc.hpp" 44 #endif 45 46 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC 47 48 jint StackValueCollection::int_at(int slot) const { 49 intptr_t val = at(slot)->get_int(); 50 jint ival = *((jint*) (&val)); 51 return ival; 52 } |