< prev index next >
src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCIRuntimeProvider.java
Print this page
*** 20,34 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package jdk.vm.ci.hotspot;
! import jdk.vm.ci.common.*;
! import jdk.vm.ci.compiler.Compiler;
! import jdk.vm.ci.meta.*;
! import jdk.vm.ci.runtime.*;
! import sun.misc.*;
//JaCoCo Exclude
/**
* Configuration information for the HotSpot JVMCI runtime.
--- 20,38 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package jdk.vm.ci.hotspot;
! import java.io.OutputStream;
!
! import jdk.vm.ci.common.JVMCIError;
! import jdk.vm.ci.meta.JVMCIMetaAccessContext;
! import jdk.vm.ci.meta.JavaKind;
! import jdk.vm.ci.meta.JavaType;
! import jdk.vm.ci.meta.ResolvedJavaType;
! import jdk.vm.ci.runtime.JVMCIRuntime;
! import sun.misc.Unsafe;
//JaCoCo Exclude
/**
* Configuration information for the HotSpot JVMCI runtime.
*** 37,47 ****
HotSpotVMConfig getConfig();
CompilerToVM getCompilerToVM();
! Compiler getCompiler();
/**
* Converts a name to a Java type. This method attempts to resolve {@code name} to a
* {@link ResolvedJavaType}.
*
--- 41,54 ----
HotSpotVMConfig getConfig();
CompilerToVM getCompilerToVM();
! /**
! * Gets an output stream that writes to the HotSpot's {@code tty} stream.
! */
! OutputStream getLogStream();
/**
* Converts a name to a Java type. This method attempts to resolve {@code name} to a
* {@link ResolvedJavaType}.
*
*** 68,78 ****
/**
* The offset from the origin of an array to the first element.
*
* @return the offset in bytes
*/
! default int getArrayBaseOffset(JavaKind kind) {
switch (kind) {
case Boolean:
return Unsafe.ARRAY_BOOLEAN_BASE_OFFSET;
case Byte:
return Unsafe.ARRAY_BYTE_BASE_OFFSET;
--- 75,85 ----
/**
* The offset from the origin of an array to the first element.
*
* @return the offset in bytes
*/
! static int getArrayBaseOffset(JavaKind kind) {
switch (kind) {
case Boolean:
return Unsafe.ARRAY_BOOLEAN_BASE_OFFSET;
case Byte:
return Unsafe.ARRAY_BYTE_BASE_OFFSET;
*** 98,108 ****
/**
* The scale used for the index when accessing elements of an array of this kind.
*
* @return the scale in order to convert the index into a byte offset
*/
! default int getArrayIndexScale(JavaKind kind) {
switch (kind) {
case Boolean:
return Unsafe.ARRAY_BOOLEAN_INDEX_SCALE;
case Byte:
return Unsafe.ARRAY_BYTE_INDEX_SCALE;
--- 105,115 ----
/**
* The scale used for the index when accessing elements of an array of this kind.
*
* @return the scale in order to convert the index into a byte offset
*/
! static int getArrayIndexScale(JavaKind kind) {
switch (kind) {
case Boolean:
return Unsafe.ARRAY_BOOLEAN_INDEX_SCALE;
case Byte:
return Unsafe.ARRAY_BYTE_INDEX_SCALE;
< prev index next >