comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotMetaAccessProvider.java @ 23322:f8178417d018

Expose SharedRuntime::throw_and_post_jvmti_exception to JVMCI compilers.
author Roland Schatz <roland.schatz@oracle.com>
date Mon, 14 Mar 2016 11:58:48 +0100
parents c0df579bf9db
children 1c4b6a7f1917
comparison
equal deleted inserted replaced
23321:fc1036575a76 23322:f8178417d018
1 /* 1 /*
2 * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2011, 2016, 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.
74 return ((HotSpotObjectConstant) constant).getType(); 74 return ((HotSpotObjectConstant) constant).getType();
75 } 75 }
76 76
77 public Signature parseMethodDescriptor(String signature) { 77 public Signature parseMethodDescriptor(String signature) {
78 return new HotSpotSignature(runtime, signature); 78 return new HotSpotSignature(runtime, signature);
79 }
80
81 public HotSpotSymbol lookupSymbol(String symbol) {
82 long pointer = runtime.getCompilerToVM().lookupSymbol(symbol);
83 if (pointer == 0) {
84 return null;
85 } else {
86 return new HotSpotSymbol(symbol, pointer);
87 }
79 } 88 }
80 89
81 /** 90 /**
82 * {@link Field} object of {@link Method#slot}. 91 * {@link Field} object of {@link Method#slot}.
83 */ 92 */