615 void print();
616 #endif
617
618
619 // The following header contains architecture-specific implementations
620 #ifdef TARGET_ARCH_x86
621 # include "codeBuffer_x86.hpp"
622 #endif
623 #ifdef TARGET_ARCH_sparc
624 # include "codeBuffer_sparc.hpp"
625 #endif
626 #ifdef TARGET_ARCH_zero
627 # include "codeBuffer_zero.hpp"
628 #endif
629 #ifdef TARGET_ARCH_arm
630 # include "codeBuffer_arm.hpp"
631 #endif
632 #ifdef TARGET_ARCH_ppc
633 # include "codeBuffer_ppc.hpp"
634 #endif
635
636 };
637
638
639 inline void CodeSection::freeze() {
640 _outer->freeze_section(this);
641 }
642
643 inline bool CodeSection::maybe_expand_to_ensure_remaining(csize_t amount) {
644 if (remaining() < amount) { _outer->expand(this, amount); return true; }
645 return false;
646 }
647
648 #endif // SHARE_VM_ASM_CODEBUFFER_HPP
|
615 void print();
616 #endif
617
618
619 // The following header contains architecture-specific implementations
620 #ifdef TARGET_ARCH_x86
621 # include "codeBuffer_x86.hpp"
622 #endif
623 #ifdef TARGET_ARCH_sparc
624 # include "codeBuffer_sparc.hpp"
625 #endif
626 #ifdef TARGET_ARCH_zero
627 # include "codeBuffer_zero.hpp"
628 #endif
629 #ifdef TARGET_ARCH_arm
630 # include "codeBuffer_arm.hpp"
631 #endif
632 #ifdef TARGET_ARCH_ppc
633 # include "codeBuffer_ppc.hpp"
634 #endif
635 #ifdef TARGET_ARCH_aarch64
636 # include "codeBuffer_aarch64.hpp"
637 #endif
638
639 };
640
641
642 inline void CodeSection::freeze() {
643 _outer->freeze_section(this);
644 }
645
646 inline bool CodeSection::maybe_expand_to_ensure_remaining(csize_t amount) {
647 if (remaining() < amount) { _outer->expand(this, amount); return true; }
648 return false;
649 }
650
651 #endif // SHARE_VM_ASM_CODEBUFFER_HPP
|