Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotMetaspaceConstantImpl.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 | 1bbd4a7c274b |
children | 19855d029fc0 |
comparison
equal
deleted
inserted
replaced
23321:fc1036575a76 | 23322:f8178417d018 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2014, 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. |
106 if (metaspaceObject instanceof HotSpotResolvedJavaMethod) { | 106 if (metaspaceObject instanceof HotSpotResolvedJavaMethod) { |
107 return (HotSpotResolvedJavaMethod) metaspaceObject; | 107 return (HotSpotResolvedJavaMethod) metaspaceObject; |
108 } | 108 } |
109 return null; | 109 return null; |
110 } | 110 } |
111 | |
112 public HotSpotSymbol asSymbol() { | |
113 if (metaspaceObject instanceof HotSpotSymbol) { | |
114 return (HotSpotSymbol) metaspaceObject; | |
115 } | |
116 return null; | |
117 } | |
111 } | 118 } |