< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.asm/src/org/graalvm/compiler/asm/Assembler.java

Print this page
rev 56282 : [mq]: graal

@@ -160,10 +160,14 @@
     public byte[] close(boolean trimmedCopy) {
         checkAndClearLabelsWithPatches();
         return codeBuffer.close(trimmedCopy);
     }
 
+    public byte[] copy(int start, int end) {
+        return codeBuffer.copyData(start, end);
+    }
+
     private void checkAndClearLabelsWithPatches() throws InternalError {
         Label label = labelsWithPatches;
         while (label != null) {
             if (label.patchPositions != null) {
                 throw new GraalError("Label used by instructions at following offsets has not been bound: %s", label.patchPositions);
< prev index next >