• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /openjdk9/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.code/src/org/graalvm/compiler/code/

Lines Matching defs:buffer

61         protected abstract void emit(ByteBuffer buffer, Patches patches);
115 protected void emit(ByteBuffer buffer, Patches patches) {
116 buffer.put(data);
134 protected void emit(ByteBuffer buffer, Patches patches) {
135 int position = buffer.position();
136 constant.serialize(buffer);
137 assert buffer.position() - position == constant.getSerializedSize() : "wrong number of bytes written";
152 protected void emit(ByteBuffer buffer, Patches patches) {
153 buffer.put((byte) 0);
160 protected void emit(ByteBuffer buffer, Patches patches) {
161 buffer.putShort((short) 0);
168 protected void emit(ByteBuffer buffer, Patches patches) {
169 buffer.putInt(0);
176 protected void emit(ByteBuffer buffer, Patches patches) {
177 buffer.putLong(0);
187 protected void emit(ByteBuffer buffer, Patches patches) {
190 buffer.putLong(0L);
194 buffer.put((byte) 0);
221 protected void emit(ByteBuffer buffer, Patches patches) {
223 data.emit(buffer, patches);
346 * Builds the data section into a given buffer.
350 * @param buffer the {@link ByteBuffer} where the data section should be built. The buffer must
355 public void buildDataSection(ByteBuffer buffer, Patches patch) {
356 buildDataSection(buffer, patch, (r, s) -> {
361 * Builds the data section into a given buffer.
366 * @param buffer the {@link ByteBuffer} where the data section should be built. The buffer must
372 public void buildDataSection(ByteBuffer buffer, Patches patch, BiConsumer<DataSectionReference, Integer> onEmit) {
374 assert buffer.remaining() >= sectionSize;
375 int start = buffer.position();
377 buffer.position(start + d.ref.getOffset());
379 d.emit(buffer, patch);
381 buffer.position(start + sectionSize);
393 public static void emit(ByteBuffer buffer, Data data, Patches patch) {
394 data.emit(buffer, patch);