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

src/share/vm/c1/c1_Runtime1.hpp

Print this page




  46   stub(throw_div0_exception)         \
  47   stub(throw_null_pointer_exception) \
  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)


 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);
 163   static void initialize_pd();
 164 
 165   // stubs
 166   static CodeBlob* blob_for (StubID id);
 167   static address   entry_for(StubID id)          { return blob_for(id)->code_begin(); }
 168   static const char* name_for (StubID id);
 169   static const char* name_for_address(address entry);
 170 
 171   // platform might add runtime names.
 172   static const char* pd_name_for_address(address entry);
 173 
 174   // method tracing


  46   stub(throw_div0_exception)         \
  47   stub(throw_null_pointer_exception) \
  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(deoptimize)                   \
  67   stub(access_field_patching)        \
  68   stub(load_klass_patching)          \
  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)


 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 
 145   static void throw_range_check_exception(JavaThread* thread, int index);
 146   static void throw_index_exception(JavaThread* thread, int index);
 147   static void throw_div0_exception(JavaThread* thread);
 148   static void throw_null_pointer_exception(JavaThread* thread);
 149   static void throw_class_cast_exception(JavaThread* thread, oopDesc* object);
 150   static void throw_incompatible_class_change_error(JavaThread* thread);
 151   static void throw_array_store_exception(JavaThread* thread, oopDesc* object);
 152 
 153   static void monitorenter(JavaThread* thread, oopDesc* obj, BasicObjectLock* lock);
 154   static void monitorexit (JavaThread* thread, BasicObjectLock* lock);
 155 
 156   static void deoptimize(JavaThread* thread);
 157 
 158   static int access_field_patching(JavaThread* thread);
 159   static int move_klass_patching(JavaThread* thread);
 160 
 161   static void patch_code(JavaThread* thread, StubID stub_id);
 162 
 163  public:
 164   // initialization
 165   static void initialize(BufferBlob* blob);
 166   static void initialize_pd();
 167 
 168   // stubs
 169   static CodeBlob* blob_for (StubID id);
 170   static address   entry_for(StubID id)          { return blob_for(id)->code_begin(); }
 171   static const char* name_for (StubID id);
 172   static const char* name_for_address(address entry);
 173 
 174   // platform might add runtime names.
 175   static const char* pd_name_for_address(address entry);
 176 
 177   // method tracing
src/share/vm/c1/c1_Runtime1.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File