12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 #ifndef SHARE_VM_CLASSFILE_CLASSFILESTREAM_HPP 26 #define SHARE_VM_CLASSFILE_CLASSFILESTREAM_HPP 27 28 #include "utilities/top.hpp" 29 #ifdef TARGET_ARCH_x86 30 # include "bytes_x86.hpp" 31 #endif 32 #ifdef TARGET_ARCH_sparc 33 # include "bytes_sparc.hpp" 34 #endif 35 #ifdef TARGET_ARCH_zero 36 # include "bytes_zero.hpp" 37 #endif 38 #ifdef TARGET_ARCH_arm 39 # include "bytes_arm.hpp" 40 #endif 41 #ifdef TARGET_ARCH_ppc 42 # include "bytes_ppc.hpp" 43 #endif 44 45 // Input stream for reading .class file 46 // 47 // The entire input stream is present in a buffer allocated by the caller. 48 // The caller is responsible for deallocating the buffer and for using 49 // ResourceMarks appropriately when constructing streams. 50 51 class ClassFileStream: public ResourceObj { | 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 #ifndef SHARE_VM_CLASSFILE_CLASSFILESTREAM_HPP 26 #define SHARE_VM_CLASSFILE_CLASSFILESTREAM_HPP 27 28 #include "utilities/top.hpp" 29 #ifdef TARGET_ARCH_x86 30 # include "bytes_x86.hpp" 31 #endif 32 #ifdef TARGET_ARCH_aarch64 33 # include "bytes_aarch64.hpp" 34 #endif 35 #ifdef TARGET_ARCH_sparc 36 # include "bytes_sparc.hpp" 37 #endif 38 #ifdef TARGET_ARCH_zero 39 # include "bytes_zero.hpp" 40 #endif 41 #ifdef TARGET_ARCH_arm 42 # include "bytes_arm.hpp" 43 #endif 44 #ifdef TARGET_ARCH_ppc 45 # include "bytes_ppc.hpp" 46 #endif 47 48 // Input stream for reading .class file 49 // 50 // The entire input stream is present in a buffer allocated by the caller. 51 // The caller is responsible for deallocating the buffer and for using 52 // ResourceMarks appropriately when constructing streams. 53 54 class ClassFileStream: public ResourceObj { |