< prev index next >

src/java.base/share/classes/jdk/internal/foreign/abi/ShuffleRecipeClass.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 21,27 **** * questions. */ package jdk.internal.foreign.abi; enum ShuffleRecipeClass { ! BUFFER, STACK, VECTOR, INTEGER, X87 } --- 21,43 ---- * questions. */ package jdk.internal.foreign.abi; enum ShuffleRecipeClass { ! BUFFER(null, null), ! STACK(StorageClass.STACK_ARGUMENT_SLOT, null), ! VECTOR(StorageClass.VECTOR_ARGUMENT_REGISTER, StorageClass.VECTOR_RETURN_REGISTER), ! INTEGER(StorageClass.INTEGER_ARGUMENT_REGISTER, StorageClass.INTEGER_RETURN_REGISTER), ! X87(null, StorageClass.X87_RETURN_REGISTER); ! ! private final StorageClass argumentStorageClass; ! private final StorageClass returnStorageClass; ! ! ShuffleRecipeClass(StorageClass argumentStorageClass, StorageClass returnStorageClass) { ! this.argumentStorageClass = argumentStorageClass; ! this.returnStorageClass = returnStorageClass; ! } ! ! public StorageClass storageClass(boolean args) { ! return args ? argumentStorageClass : returnStorageClass; ! } }
< prev index next >