< prev index next >

src/jdk.incubator.foreign/share/classes/jdk/internal/foreign/abi/ABIDescriptor.java

Print this page
*** 35,20 ***
      final VMStorage[][] volatileStorage;
  
      final int stackAlignment;
      final int shadowSpace;
  
      public ABIDescriptor(Architecture arch, VMStorage[][] inputStorage, VMStorage[][] outputStorage,
!                          VMStorage[][] volatileStorage, int stackAlignment, int shadowSpace) {
          this.arch = arch;
          this.inputStorage = inputStorage;
          this.outputStorage = outputStorage;
          this.volatileStorage = volatileStorage;
          this.stackAlignment = stackAlignment;
          this.shadowSpace = shadowSpace;
      }
  
      @Override
      public int shadowSpaceBytes() {
          return shadowSpace;
      }
  }
--- 35,34 ---
      final VMStorage[][] volatileStorage;
  
      final int stackAlignment;
      final int shadowSpace;
  
+     final VMStorage targetAddrStorage;
+     final VMStorage retBufAddrStorage;
+ 
      public ABIDescriptor(Architecture arch, VMStorage[][] inputStorage, VMStorage[][] outputStorage,
!                          VMStorage[][] volatileStorage, int stackAlignment, int shadowSpace,
+                          VMStorage targetAddrStorage, VMStorage retBufAddrStorage) {
          this.arch = arch;
          this.inputStorage = inputStorage;
          this.outputStorage = outputStorage;
          this.volatileStorage = volatileStorage;
          this.stackAlignment = stackAlignment;
          this.shadowSpace = shadowSpace;
+         this.targetAddrStorage = targetAddrStorage;
+         this.retBufAddrStorage = retBufAddrStorage;
      }
  
      @Override
      public int shadowSpaceBytes() {
          return shadowSpace;
      }
+ 
+     public VMStorage targetAddrStorage() {
+         return targetAddrStorage;
+     }
+ 
+     public VMStorage retBufAddrStorage() {
+         return retBufAddrStorage;
+     }
  }
< prev index next >