93 Map.Entry<String, byte[]> generateConcreteBMHClassBytes( 94 final String types); 95 96 /** 97 * Returns a {@code byte[]} representation of a class implementing 98 * the zero and identity forms of all {@code LambdaForm.BasicType}s. 99 */ 100 byte[] generateBasicFormsClassBytes(final String className); 101 102 /** 103 * Returns a {@code byte[]} representation of a class implementing 104 * the invoker forms for the set of supplied {@code invokerMethodTypes} 105 * and {@code callSiteMethodTypes}. 106 */ 107 byte[] generateInvokersHolderClassBytes(String className, 108 MethodType[] invokerMethodTypes, 109 MethodType[] callSiteMethodTypes); 110 111 /** 112 * Returns a var handle view of a given memory address. 113 */ 114 VarHandle memoryAddressViewVarHandle(Class<?> carrier, long alignment, 115 ByteOrder order, long offset, long[] strides); 116 117 /** 118 * Returns the carrier associated with a memory access var handle. 119 */ 120 Class<?> memoryAddressCarrier(VarHandle handle); 121 122 /** 123 * Returns the alignment associated with a memory access var handle. 124 */ 125 long memoryAddressAlignment(VarHandle handle); 126 127 /** 128 * Returns the byte order associated with a memory access var handle. 129 */ 130 ByteOrder memoryAddressByteOrder(VarHandle handle); 131 132 /** 133 * Returns the offset associated with a memory access var handle. 134 */ 135 long memoryAddressOffset(VarHandle handle); 136 137 /** 138 * Returns the strides associated with a memory access var handle. 139 */ 140 long[] memoryAddressStrides(VarHandle handle); 141 } | 93 Map.Entry<String, byte[]> generateConcreteBMHClassBytes( 94 final String types); 95 96 /** 97 * Returns a {@code byte[]} representation of a class implementing 98 * the zero and identity forms of all {@code LambdaForm.BasicType}s. 99 */ 100 byte[] generateBasicFormsClassBytes(final String className); 101 102 /** 103 * Returns a {@code byte[]} representation of a class implementing 104 * the invoker forms for the set of supplied {@code invokerMethodTypes} 105 * and {@code callSiteMethodTypes}. 106 */ 107 byte[] generateInvokersHolderClassBytes(String className, 108 MethodType[] invokerMethodTypes, 109 MethodType[] callSiteMethodTypes); 110 111 /** 112 * Returns a var handle view of a given memory address. 113 * Used by {@code jdk.internal.foreign.LayoutPath} and 114 * {@code jdk.incubator.foreign.MemoryHandles}. 115 */ 116 VarHandle memoryAddressViewVarHandle(Class<?> carrier, long alignmentMask, 117 ByteOrder order, long offset, long[] strides); 118 119 /** 120 * Returns the carrier associated with a memory access var handle. 121 * Used by {@code jdk.incubator.foreign.MemoryHandles}. 122 */ 123 Class<?> memoryAddressCarrier(VarHandle handle); 124 125 /** 126 * Returns the alignment mask associated with a memory access var handle. 127 * Used by {@code jdk.incubator.foreign.MemoryHandles}. 128 */ 129 long memoryAddressAlignmentMask(VarHandle handle); 130 131 /** 132 * Returns the byte order associated with a memory access var handle. 133 * Used by {@code jdk.incubator.foreign.MemoryHandles}. 134 */ 135 ByteOrder memoryAddressByteOrder(VarHandle handle); 136 137 /** 138 * Returns the offset associated with a memory access var handle. 139 * Used by {@code jdk.incubator.foreign.MemoryHandles}. 140 */ 141 long memoryAddressOffset(VarHandle handle); 142 143 /** 144 * Returns the strides associated with a memory access var handle. 145 * Used by {@code jdk.incubator.foreign.MemoryHandles}. 146 */ 147 long[] memoryAddressStrides(VarHandle handle); 148 } |