src/share/vm/c1/c1_Runtime1.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 7083786 Sdiff src/share/vm/c1

src/share/vm/c1/c1_Runtime1.hpp

Print this page




  48   stub(register_finalizer)           \
  49   stub(new_instance)                 \
  50   stub(fast_new_instance)            \
  51   stub(fast_new_instance_init_check) \
  52   stub(new_type_array)               \
  53   stub(new_object_array)             \
  54   stub(new_multi_array)              \
  55   stub(handle_exception_nofpu)         /* optimized version that does not preserve fpu registers */ \
  56   stub(handle_exception)             \
  57   stub(handle_exception_from_callee) \
  58   stub(throw_array_store_exception)  \
  59   stub(throw_class_cast_exception)   \
  60   stub(throw_incompatible_class_change_error)   \
  61   stub(slow_subtype_check)           \
  62   stub(monitorenter)                 \
  63   stub(monitorenter_nofpu)             /* optimized version that does not preserve fpu registers */ \
  64   stub(monitorexit)                  \
  65   stub(monitorexit_nofpu)              /* optimized version that does not preserve fpu registers */ \
  66   stub(access_field_patching)        \
  67   stub(load_klass_patching)          \
  68   stub(jvmti_exception_throw)        \
  69   stub(g1_pre_barrier_slow)          \
  70   stub(g1_post_barrier_slow)         \
  71   stub(fpu2long_stub)                \
  72   stub(counter_overflow)             \
  73   last_entry(number_of_ids)
  74 
  75 #define DECLARE_STUB_ID(x)       x ## _id ,
  76 #define DECLARE_LAST_STUB_ID(x)  x
  77 #define STUB_NAME(x)             #x " Runtime1 stub",
  78 #define LAST_STUB_NAME(x)        #x " Runtime1 stub"
  79 
  80 class Runtime1: public AllStatic {
  81   friend class VMStructs;
  82   friend class ArrayCopyStub;
  83 
  84  public:
  85   enum StubID {
  86     RUNTIME1_STUBS(DECLARE_STUB_ID, DECLARE_LAST_STUB_ID)
  87   };
  88 


 124   static OopMapSet* generate_code_for(StubID id, StubAssembler* sasm);
 125   static OopMapSet* generate_exception_throw(StubAssembler* sasm, address target, bool has_argument);
 126   static OopMapSet* generate_handle_exception(StubID id, StubAssembler* sasm);
 127   static void       generate_unwind_exception(StubAssembler *sasm);
 128   static OopMapSet* generate_patching(StubAssembler* sasm, address target);
 129 
 130   static OopMapSet* generate_stub_call(StubAssembler* sasm, Register result, address entry,
 131                                        Register arg1 = noreg, Register arg2 = noreg, Register arg3 = noreg);
 132 
 133   // runtime entry points
 134   static void new_instance    (JavaThread* thread, klassOopDesc* klass);
 135   static void new_type_array  (JavaThread* thread, klassOopDesc* klass, jint length);
 136   static void new_object_array(JavaThread* thread, klassOopDesc* klass, jint length);
 137   static void new_multi_array (JavaThread* thread, klassOopDesc* klass, int rank, jint* dims);
 138 
 139   static address counter_overflow(JavaThread* thread, int bci, methodOopDesc* method);
 140 
 141   static void unimplemented_entry   (JavaThread* thread, StubID id);
 142 
 143   static address exception_handler_for_pc(JavaThread* thread);
 144   static void post_jvmti_exception_throw(JavaThread* thread);
 145 
 146   static void throw_range_check_exception(JavaThread* thread, int index);
 147   static void throw_index_exception(JavaThread* thread, int index);
 148   static void throw_div0_exception(JavaThread* thread);
 149   static void throw_null_pointer_exception(JavaThread* thread);
 150   static void throw_class_cast_exception(JavaThread* thread, oopDesc* object);
 151   static void throw_incompatible_class_change_error(JavaThread* thread);
 152   static void throw_array_store_exception(JavaThread* thread, oopDesc* object);
 153 
 154   static void monitorenter(JavaThread* thread, oopDesc* obj, BasicObjectLock* lock);
 155   static void monitorexit (JavaThread* thread, BasicObjectLock* lock);
 156 
 157   static int access_field_patching(JavaThread* thread);
 158   static int move_klass_patching(JavaThread* thread);
 159 
 160   static void patch_code(JavaThread* thread, StubID stub_id);
 161 
 162  public:
 163   // initialization
 164   static void initialize(BufferBlob* blob);




  48   stub(register_finalizer)           \
  49   stub(new_instance)                 \
  50   stub(fast_new_instance)            \
  51   stub(fast_new_instance_init_check) \
  52   stub(new_type_array)               \
  53   stub(new_object_array)             \
  54   stub(new_multi_array)              \
  55   stub(handle_exception_nofpu)         /* optimized version that does not preserve fpu registers */ \
  56   stub(handle_exception)             \
  57   stub(handle_exception_from_callee) \
  58   stub(throw_array_store_exception)  \
  59   stub(throw_class_cast_exception)   \
  60   stub(throw_incompatible_class_change_error)   \
  61   stub(slow_subtype_check)           \
  62   stub(monitorenter)                 \
  63   stub(monitorenter_nofpu)             /* optimized version that does not preserve fpu registers */ \
  64   stub(monitorexit)                  \
  65   stub(monitorexit_nofpu)              /* optimized version that does not preserve fpu registers */ \
  66   stub(access_field_patching)        \
  67   stub(load_klass_patching)          \

  68   stub(g1_pre_barrier_slow)          \
  69   stub(g1_post_barrier_slow)         \
  70   stub(fpu2long_stub)                \
  71   stub(counter_overflow)             \
  72   last_entry(number_of_ids)
  73 
  74 #define DECLARE_STUB_ID(x)       x ## _id ,
  75 #define DECLARE_LAST_STUB_ID(x)  x
  76 #define STUB_NAME(x)             #x " Runtime1 stub",
  77 #define LAST_STUB_NAME(x)        #x " Runtime1 stub"
  78 
  79 class Runtime1: public AllStatic {
  80   friend class VMStructs;
  81   friend class ArrayCopyStub;
  82 
  83  public:
  84   enum StubID {
  85     RUNTIME1_STUBS(DECLARE_STUB_ID, DECLARE_LAST_STUB_ID)
  86   };
  87 


 123   static OopMapSet* generate_code_for(StubID id, StubAssembler* sasm);
 124   static OopMapSet* generate_exception_throw(StubAssembler* sasm, address target, bool has_argument);
 125   static OopMapSet* generate_handle_exception(StubID id, StubAssembler* sasm);
 126   static void       generate_unwind_exception(StubAssembler *sasm);
 127   static OopMapSet* generate_patching(StubAssembler* sasm, address target);
 128 
 129   static OopMapSet* generate_stub_call(StubAssembler* sasm, Register result, address entry,
 130                                        Register arg1 = noreg, Register arg2 = noreg, Register arg3 = noreg);
 131 
 132   // runtime entry points
 133   static void new_instance    (JavaThread* thread, klassOopDesc* klass);
 134   static void new_type_array  (JavaThread* thread, klassOopDesc* klass, jint length);
 135   static void new_object_array(JavaThread* thread, klassOopDesc* klass, jint length);
 136   static void new_multi_array (JavaThread* thread, klassOopDesc* klass, int rank, jint* dims);
 137 
 138   static address counter_overflow(JavaThread* thread, int bci, methodOopDesc* method);
 139 
 140   static void unimplemented_entry   (JavaThread* thread, StubID id);
 141 
 142   static address exception_handler_for_pc(JavaThread* thread);

 143 
 144   static void throw_range_check_exception(JavaThread* thread, int index);
 145   static void throw_index_exception(JavaThread* thread, int index);
 146   static void throw_div0_exception(JavaThread* thread);
 147   static void throw_null_pointer_exception(JavaThread* thread);
 148   static void throw_class_cast_exception(JavaThread* thread, oopDesc* object);
 149   static void throw_incompatible_class_change_error(JavaThread* thread);
 150   static void throw_array_store_exception(JavaThread* thread, oopDesc* object);
 151 
 152   static void monitorenter(JavaThread* thread, oopDesc* obj, BasicObjectLock* lock);
 153   static void monitorexit (JavaThread* thread, BasicObjectLock* lock);
 154 
 155   static int access_field_patching(JavaThread* thread);
 156   static int move_klass_patching(JavaThread* thread);
 157 
 158   static void patch_code(JavaThread* thread, StubID stub_id);
 159 
 160  public:
 161   // initialization
 162   static void initialize(BufferBlob* blob);


src/share/vm/c1/c1_Runtime1.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File