comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedObjectTypeImpl.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 293eb76b86d3
children 90da61843aa4
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.
591 * Returns the name of this field as a {@link String}. If the field is an internal field the 591 * Returns the name of this field as a {@link String}. If the field is an internal field the
592 * name index is pointing into the vmSymbols table. 592 * name index is pointing into the vmSymbols table.
593 */ 593 */
594 public String getName() { 594 public String getName() {
595 final int nameIndex = getNameIndex(); 595 final int nameIndex = getNameIndex();
596 return isInternal() ? HotSpotVmSymbols.symbolAt(nameIndex) : getConstantPool().lookupUtf8(nameIndex); 596 return isInternal() ? HotSpotSymbol.symbolAt(nameIndex) : getConstantPool().lookupUtf8(nameIndex);
597 } 597 }
598 598
599 /** 599 /**
600 * Returns the signature of this field as {@link String}. If the field is an internal field 600 * Returns the signature of this field as {@link String}. If the field is an internal field
601 * the signature index is pointing into the vmSymbols table. 601 * the signature index is pointing into the vmSymbols table.
602 */ 602 */
603 public String getSignature() { 603 public String getSignature() {
604 final int signatureIndex = getSignatureIndex(); 604 final int signatureIndex = getSignatureIndex();
605 return isInternal() ? HotSpotVmSymbols.symbolAt(signatureIndex) : getConstantPool().lookupUtf8(signatureIndex); 605 return isInternal() ? HotSpotSymbol.symbolAt(signatureIndex) : getConstantPool().lookupUtf8(signatureIndex);
606 } 606 }
607 607
608 public JavaType getType() { 608 public JavaType getType() {
609 String signature = getSignature(); 609 String signature = getSignature();
610 return runtime().lookupType(signature, HotSpotResolvedObjectTypeImpl.this, false); 610 return runtime().lookupType(signature, HotSpotResolvedObjectTypeImpl.this, false);