comparison src/share/vm/graal/graalCodeInstaller.cpp @ 14104:a38a54030ea2

pass metaspace pointers instead of object to VM
author twisti
date Thu, 06 Mar 2014 21:03:59 -0800
parents 57d600d3b504
children cd22c8dbda4f
comparison
equal deleted inserted replaced
14103:9d8aaa3200a3 14104:a38a54030ea2
1 /* 1 /*
2 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
48 # include "vmreg_arm.inline.hpp" 48 # include "vmreg_arm.inline.hpp"
49 #endif 49 #endif
50 #ifdef TARGET_ARCH_ppc 50 #ifdef TARGET_ARCH_ppc
51 # include "vmreg_ppc.inline.hpp" 51 # include "vmreg_ppc.inline.hpp"
52 #endif 52 #endif
53
54 Method* getMethodFromHotSpotMethod(oop hotspot_method) {
55 assert(hotspot_method != NULL && hotspot_method->is_a(HotSpotResolvedJavaMethod::klass()), "sanity");
56 return asMethod(HotSpotResolvedJavaMethod::metaspaceMethod(hotspot_method));
57 }
53 58
54 // convert Graal register indices (as used in oop maps) to HotSpot registers 59 // convert Graal register indices (as used in oop maps) to HotSpot registers
55 VMReg get_hotspot_reg(jint graal_reg) { 60 VMReg get_hotspot_reg(jint graal_reg) {
56 if (graal_reg < RegisterImpl::number_of_registers) { 61 if (graal_reg < RegisterImpl::number_of_registers) {
57 return as_Register(graal_reg)->as_VMReg(); 62 return as_Register(graal_reg)->as_VMReg();