< prev index next >

src/hotspot/cpu/aarch64/stubRoutines_aarch64.hpp

Print this page

 30 // definition. See stubRoutines.hpp for a description on how to
 31 // extend it.
 32 
 33 static bool    returns_to_call_stub(address return_pc)   {
 34   return return_pc == _call_stub_return_address;
 35 }
 36 
 37 // emit enum used to size per-blob code buffers
 38 
 39 #define DEFINE_BLOB_SIZE(blob_name, size) \
 40   _ ## blob_name ## _code_size = size,
 41 
 42 enum platform_dependent_constants {
 43   STUBGEN_ARCH_BLOBS_DO(DEFINE_BLOB_SIZE)
 44 };
 45 
 46 #undef DEFINE_BLOB_SIZE
 47 
 48 class aarch64 {
 49  friend class StubGenerator;

 50 #if INCLUDE_JVMCI
 51   friend class JVMCIVMStructs;
 52 #endif
 53 
 54   // declare fields for arch-specific entries
 55 
 56 #define DECLARE_ARCH_ENTRY(arch, blob_name, stub_name, field_name, getter_name) \
 57   static address STUB_FIELD_NAME(field_name) ;
 58 
 59 #define DECLARE_ARCH_ENTRY_INIT(arch, blob_name, stub_name, field_name, getter_name, init_function) \
 60   DECLARE_ARCH_ENTRY(arch, blob_name, stub_name, field_name, getter_name)
 61 
 62 private:
 63   STUBGEN_ARCH_ENTRIES_DO(DECLARE_ARCH_ENTRY, DECLARE_ARCH_ENTRY_INIT)
 64 
 65 #undef DECLARE_ARCH_ENTRY_INIT
 66 #undef DECLARE_ARCH_ENTRY
 67 
 68   static bool _completed;
 69 

 30 // definition. See stubRoutines.hpp for a description on how to
 31 // extend it.
 32 
 33 static bool    returns_to_call_stub(address return_pc)   {
 34   return return_pc == _call_stub_return_address;
 35 }
 36 
 37 // emit enum used to size per-blob code buffers
 38 
 39 #define DEFINE_BLOB_SIZE(blob_name, size) \
 40   _ ## blob_name ## _code_size = size,
 41 
 42 enum platform_dependent_constants {
 43   STUBGEN_ARCH_BLOBS_DO(DEFINE_BLOB_SIZE)
 44 };
 45 
 46 #undef DEFINE_BLOB_SIZE
 47 
 48 class aarch64 {
 49  friend class StubGenerator;
 50  friend class StubRoutines;
 51 #if INCLUDE_JVMCI
 52   friend class JVMCIVMStructs;
 53 #endif
 54 
 55   // declare fields for arch-specific entries
 56 
 57 #define DECLARE_ARCH_ENTRY(arch, blob_name, stub_name, field_name, getter_name) \
 58   static address STUB_FIELD_NAME(field_name) ;
 59 
 60 #define DECLARE_ARCH_ENTRY_INIT(arch, blob_name, stub_name, field_name, getter_name, init_function) \
 61   DECLARE_ARCH_ENTRY(arch, blob_name, stub_name, field_name, getter_name)
 62 
 63 private:
 64   STUBGEN_ARCH_ENTRIES_DO(DECLARE_ARCH_ENTRY, DECLARE_ARCH_ENTRY_INIT)
 65 
 66 #undef DECLARE_ARCH_ENTRY_INIT
 67 #undef DECLARE_ARCH_ENTRY
 68 
 69   static bool _completed;
 70 
< prev index next >