Class StringUTF16CompressNode

All Implemented Interfaces:
Cloneable, Formattable, MemoryKillMarker, FixedNodeInterface, FixedWithNextNodeInterface, MemoryAccess, MemoryKill, MultiMemoryKill, LIRLowerable, NodeWithState, StateSplit, ValueNodeInterface, IntrinsicMethodNodeInterface

public final class StringUTF16CompressNode extends MemoryKillStubIntrinsicNode
Represents java.lang.StringUTF16.compress methods.
  • int compress(char[] src, int srcOff, byte[] dst, int dstOff, int len)
  • int compress(byte[] src, int srcOff, byte[] dst, int dstOff, int len)
  • Field Details

  • Constructor Details

    • StringUTF16CompressNode

      public StringUTF16CompressNode(ValueNode src, ValueNode dst, ValueNode len, jdk.vm.ci.meta.JavaKind readKind)
    • StringUTF16CompressNode

      public StringUTF16CompressNode(ValueNode src, ValueNode dst, ValueNode len)
      Constructor for stub compilation. We set locationIdentity to LocationIdentity.any() here, because we want to re-use the same stub for all call sites.
    • StringUTF16CompressNode

      public StringUTF16CompressNode(ValueNode src, ValueNode dst, ValueNode len, EnumSet<?> runtimeCheckedCPUFeatures)
  • Method Details

    • getKilledLocationIdentities

      public org.graalvm.word.LocationIdentity[] getKilledLocationIdentities()
      Description copied from interface: MultiMemoryKill
      This method is used to determine which set of memory locations is killed by this node. Returning the special value LocationIdentity.any() will kill all memory locations.
      Returns:
      the identities of all locations killed by this node.
    • getForeignCallDescriptor

      public ForeignCallDescriptor getForeignCallDescriptor()
    • getForeignCallArguments

      public ValueNode[] getForeignCallArguments()
    • emitIntrinsic

      public void emitIntrinsic(NodeLIRBuilderTool gen)
      Description copied from interface: IntrinsicMethodNodeInterface
      Emit the method body.
    • stringUTF16Compress

      public static int stringUTF16Compress(org.graalvm.word.Pointer src, org.graalvm.word.Pointer dst, int len)
    • stringUTF16Compress

      public static int stringUTF16Compress(org.graalvm.word.Pointer src, org.graalvm.word.Pointer dst, int len, EnumSet<?> runtimeCheckedCPUFeatures)