diff 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
line wrap: on
line diff
--- a/src/share/vm/graal/graalCodeInstaller.cpp	Thu Mar 06 18:43:40 2014 -0800
+++ b/src/share/vm/graal/graalCodeInstaller.cpp	Thu Mar 06 21:03:59 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2014, 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
@@ -51,6 +51,11 @@
 # include "vmreg_ppc.inline.hpp"
 #endif
 
+Method* getMethodFromHotSpotMethod(oop hotspot_method) {
+  assert(hotspot_method != NULL && hotspot_method->is_a(HotSpotResolvedJavaMethod::klass()), "sanity");
+  return asMethod(HotSpotResolvedJavaMethod::metaspaceMethod(hotspot_method));
+}
+
 // convert Graal register indices (as used in oop maps) to HotSpot registers
 VMReg get_hotspot_reg(jint graal_reg) {
   if (graal_reg < RegisterImpl::number_of_registers) {