# HG changeset patch # User Roland Schatz # Date 1442397686 -7200 # Node ID bfd5fdca1ce974ad6f88f77cd1f2b3b683e1fc2c # Parent 94a604f431d35ab5c0f6b3632d94c3b98d35e2ef Clean separation between backend and frontend wordKind. diff -r 94a604f431d3 -r bfd5fdca1ce9 jvmci/jdk.internal.jvmci.code/src/jdk/internal/jvmci/code/TargetDescription.java --- a/jvmci/jdk.internal.jvmci.code/src/jdk/internal/jvmci/code/TargetDescription.java Tue Sep 15 21:48:17 2015 -0700 +++ b/jvmci/jdk.internal.jvmci.code/src/jdk/internal/jvmci/code/TargetDescription.java Wed Sep 16 12:01:26 2015 +0200 @@ -49,9 +49,9 @@ public final int wordSize; /** - * The kind to be used for representing raw pointers and CPU registers. + * The {@link JavaKind} to be used for representing raw pointers and CPU registers in Java code. */ - public final JavaKind wordKind; + public final JavaKind wordJavaKind; /** * The stack alignment requirement of the platform. For example, from Appendix D of { patch.accept(new DataPatch(buffer.position(), new ConstantReference(vmConstant))); @@ -200,7 +200,7 @@ } } else if (JavaConstant.isNull(constant)) { boolean compressed = COMPRESSED_NULL.equals(constant); - size = target.getSizeInBytes(compressed ? JavaKind.Int : target.wordKind); + size = compressed ? 4 : target.wordSize; builder = DataBuilder.zero(size); } else if (constant instanceof SerializableConstant) { SerializableConstant s = (SerializableConstant) constant; diff -r 94a604f431d3 -r bfd5fdca1ce9 jvmci/jdk.internal.jvmci.hotspot/src/jdk/internal/jvmci/hotspot/HotSpotJVMCIRuntime.java --- a/jvmci/jdk.internal.jvmci.hotspot/src/jdk/internal/jvmci/hotspot/HotSpotJVMCIRuntime.java Tue Sep 15 21:48:17 2015 -0700 +++ b/jvmci/jdk.internal.jvmci.hotspot/src/jdk/internal/jvmci/hotspot/HotSpotJVMCIRuntime.java Wed Sep 16 12:01:26 2015 +0200 @@ -126,7 +126,7 @@ * Gets the kind of a word value on the {@linkplain #getHostJVMCIBackend() host} backend. */ public static JavaKind getHostWordKind() { - return runtime().getHostJVMCIBackend().getCodeCache().getTarget().wordKind; + return runtime().getHostJVMCIBackend().getCodeCache().getTarget().wordJavaKind; } protected final CompilerToVM compilerToVm;