Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/
package com.oracle.svm.core.graal.meta;

import java.nio.ByteOrder;
import java.util.HashMap;
import java.util.Map;

Expand Down Expand Up @@ -260,12 +259,6 @@ protected ValueNode createReadHub(StructuredGraph graph, ValueNode object, Lower
int hubOffset = ol.getHubOffset();
int bytesToRead = ol.getHubSize();
long reservedHubBitsMask = oh.getReservedHubBitsMask();
if (hubOffset == Integer.BYTES && hubOffset + ol.getHubSize() == Long.BYTES && target.arch.getByteOrder() == ByteOrder.LITTLE_ENDIAN) {
/* Prepare to emit a 64-bit read at offset 0 (reduces the code size). */
hubOffset = 0;
bytesToRead = Long.BYTES;
reservedHubBitsMask = (reservedHubBitsMask << Integer.SIZE) | ((1L << Integer.SIZE) - 1);
}

/* Read the raw hub data from the correct part of the object header. */
IntegerStamp readStamp = StampFactory.forUnsignedInteger(bytesToRead * Byte.SIZE);
Expand Down
Loading