< prev index next >

src/hotspot/share/opto/runtime.hpp

Print this page
rev 50307 : [mq]: cont


 132   // define stubs
 133   static address generate_stub(ciEnv* ci_env, TypeFunc_generator gen, address C_function, const char *name, int is_fancy_jump, bool pass_tls, bool save_arguments, bool return_pc);
 134 
 135   // References to generated stubs
 136   static address _new_instance_Java;
 137   static address _new_array_Java;
 138   static address _new_array_nozero_Java;
 139   static address _multianewarray2_Java;
 140   static address _multianewarray3_Java;
 141   static address _multianewarray4_Java;
 142   static address _multianewarray5_Java;
 143   static address _multianewarrayN_Java;
 144   static address _vtable_must_compile_Java;
 145   static address _complete_monitor_locking_Java;
 146   static address _rethrow_Java;
 147   static address _monitor_notify_Java;
 148   static address _monitor_notifyAll_Java;
 149 
 150   static address _slow_arraycopy_Java;
 151   static address _register_finalizer_Java;

 152 
 153   //
 154   // Implementation of runtime methods
 155   // =================================
 156 
 157   // Allocate storage for a Java instance.
 158   static void new_instance_C(Klass* instance_klass, JavaThread *thread);
 159 
 160   // Allocate storage for a objArray or typeArray
 161   static void new_array_C(Klass* array_klass, int len, JavaThread *thread);
 162   static void new_array_nozero_C(Klass* array_klass, int len, JavaThread *thread);
 163 
 164   // Allocate storage for a multi-dimensional arrays
 165   // Note: needs to be fixed for arbitrary number of dimensions
 166   static void multianewarray2_C(Klass* klass, int len1, int len2, JavaThread *thread);
 167   static void multianewarray3_C(Klass* klass, int len1, int len2, int len3, JavaThread *thread);
 168   static void multianewarray4_C(Klass* klass, int len1, int len2, int len3, int len4, JavaThread *thread);
 169   static void multianewarray5_C(Klass* klass, int len1, int len2, int len3, int len4, int len5, JavaThread *thread);
 170   static void multianewarrayN_C(Klass* klass, arrayOopDesc* dims, JavaThread *thread);
 171 


 209 
 210   // Returns the name of a stub
 211   static const char* stub_name(address entry);
 212 
 213   // access to runtime stubs entry points for java code
 214   static address new_instance_Java()                     { return _new_instance_Java; }
 215   static address new_array_Java()                        { return _new_array_Java; }
 216   static address new_array_nozero_Java()                 { return _new_array_nozero_Java; }
 217   static address multianewarray2_Java()                  { return _multianewarray2_Java; }
 218   static address multianewarray3_Java()                  { return _multianewarray3_Java; }
 219   static address multianewarray4_Java()                  { return _multianewarray4_Java; }
 220   static address multianewarray5_Java()                  { return _multianewarray5_Java; }
 221   static address multianewarrayN_Java()                  { return _multianewarrayN_Java; }
 222   static address vtable_must_compile_stub()              { return _vtable_must_compile_Java; }
 223   static address complete_monitor_locking_Java()         { return _complete_monitor_locking_Java; }
 224   static address monitor_notify_Java()                   { return _monitor_notify_Java; }
 225   static address monitor_notifyAll_Java()                { return _monitor_notifyAll_Java; }
 226 
 227   static address slow_arraycopy_Java()                   { return _slow_arraycopy_Java; }
 228   static address register_finalizer_Java()               { return _register_finalizer_Java; }

 229 
 230   static ExceptionBlob*    exception_blob()                      { return _exception_blob; }
 231 
 232   // Leaf routines helping with method data update
 233   static void profile_receiver_type_C(DataLayout* data, oopDesc* receiver);
 234 
 235   // Implicit exception support
 236   static void throw_div0_exception_C      (JavaThread* thread);
 237   static void throw_stack_overflow_error_C(JavaThread* thread);
 238 
 239   // Exception handling
 240   static address rethrow_stub()             { return _rethrow_Java; }
 241 
 242 
 243   // Type functions
 244   // ======================================================
 245 
 246   static const TypeFunc* new_instance_Type(); // object allocation (slow case)
 247   static const TypeFunc* new_array_Type ();   // [a]newarray (slow case)
 248   static const TypeFunc* multianewarray_Type(int ndim); // multianewarray
 249   static const TypeFunc* multianewarray2_Type(); // multianewarray
 250   static const TypeFunc* multianewarray3_Type(); // multianewarray
 251   static const TypeFunc* multianewarray4_Type(); // multianewarray
 252   static const TypeFunc* multianewarray5_Type(); // multianewarray
 253   static const TypeFunc* multianewarrayN_Type(); // multianewarray
 254   static const TypeFunc* complete_monitor_enter_Type();
 255   static const TypeFunc* complete_monitor_exit_Type();
 256   static const TypeFunc* monitor_notify_Type();
 257   static const TypeFunc* uncommon_trap_Type();
 258   static const TypeFunc* athrow_Type();
 259   static const TypeFunc* rethrow_Type();
 260   static const TypeFunc* Math_D_D_Type();  // sin,cos & friends
 261   static const TypeFunc* Math_DD_D_Type(); // mod,pow & friends
 262   static const TypeFunc* modf_Type();
 263   static const TypeFunc* l2f_Type();
 264   static const TypeFunc* void_long_Type();


 265 
 266   static const TypeFunc* flush_windows_Type();
 267 
 268   // arraycopy routine types
 269   static const TypeFunc* fast_arraycopy_Type(); // bit-blasters
 270   static const TypeFunc* checkcast_arraycopy_Type();
 271   static const TypeFunc* generic_arraycopy_Type();
 272   static const TypeFunc* slow_arraycopy_Type();   // the full routine
 273 
 274   static const TypeFunc* array_fill_Type();
 275 
 276   static const TypeFunc* aescrypt_block_Type();
 277   static const TypeFunc* cipherBlockChaining_aescrypt_Type();
 278   static const TypeFunc* counterMode_aescrypt_Type();
 279 
 280   static const TypeFunc* sha_implCompress_Type();
 281   static const TypeFunc* digestBase_implCompressMB_Type();
 282 
 283   static const TypeFunc* multiplyToLen_Type();
 284   static const TypeFunc* montgomeryMultiply_Type();




 132   // define stubs
 133   static address generate_stub(ciEnv* ci_env, TypeFunc_generator gen, address C_function, const char *name, int is_fancy_jump, bool pass_tls, bool save_arguments, bool return_pc);
 134 
 135   // References to generated stubs
 136   static address _new_instance_Java;
 137   static address _new_array_Java;
 138   static address _new_array_nozero_Java;
 139   static address _multianewarray2_Java;
 140   static address _multianewarray3_Java;
 141   static address _multianewarray4_Java;
 142   static address _multianewarray5_Java;
 143   static address _multianewarrayN_Java;
 144   static address _vtable_must_compile_Java;
 145   static address _complete_monitor_locking_Java;
 146   static address _rethrow_Java;
 147   static address _monitor_notify_Java;
 148   static address _monitor_notifyAll_Java;
 149 
 150   static address _slow_arraycopy_Java;
 151   static address _register_finalizer_Java;
 152   static address _continuation_getFP_Java;
 153 
 154   //
 155   // Implementation of runtime methods
 156   // =================================
 157 
 158   // Allocate storage for a Java instance.
 159   static void new_instance_C(Klass* instance_klass, JavaThread *thread);
 160 
 161   // Allocate storage for a objArray or typeArray
 162   static void new_array_C(Klass* array_klass, int len, JavaThread *thread);
 163   static void new_array_nozero_C(Klass* array_klass, int len, JavaThread *thread);
 164 
 165   // Allocate storage for a multi-dimensional arrays
 166   // Note: needs to be fixed for arbitrary number of dimensions
 167   static void multianewarray2_C(Klass* klass, int len1, int len2, JavaThread *thread);
 168   static void multianewarray3_C(Klass* klass, int len1, int len2, int len3, JavaThread *thread);
 169   static void multianewarray4_C(Klass* klass, int len1, int len2, int len3, int len4, JavaThread *thread);
 170   static void multianewarray5_C(Klass* klass, int len1, int len2, int len3, int len4, int len5, JavaThread *thread);
 171   static void multianewarrayN_C(Klass* klass, arrayOopDesc* dims, JavaThread *thread);
 172 


 210 
 211   // Returns the name of a stub
 212   static const char* stub_name(address entry);
 213 
 214   // access to runtime stubs entry points for java code
 215   static address new_instance_Java()                     { return _new_instance_Java; }
 216   static address new_array_Java()                        { return _new_array_Java; }
 217   static address new_array_nozero_Java()                 { return _new_array_nozero_Java; }
 218   static address multianewarray2_Java()                  { return _multianewarray2_Java; }
 219   static address multianewarray3_Java()                  { return _multianewarray3_Java; }
 220   static address multianewarray4_Java()                  { return _multianewarray4_Java; }
 221   static address multianewarray5_Java()                  { return _multianewarray5_Java; }
 222   static address multianewarrayN_Java()                  { return _multianewarrayN_Java; }
 223   static address vtable_must_compile_stub()              { return _vtable_must_compile_Java; }
 224   static address complete_monitor_locking_Java()         { return _complete_monitor_locking_Java; }
 225   static address monitor_notify_Java()                   { return _monitor_notify_Java; }
 226   static address monitor_notifyAll_Java()                { return _monitor_notifyAll_Java; }
 227 
 228   static address slow_arraycopy_Java()                   { return _slow_arraycopy_Java; }
 229   static address register_finalizer_Java()               { return _register_finalizer_Java; }
 230   static address continuation_getFP_Java()               { return _continuation_getFP_Java; }
 231 
 232   static ExceptionBlob*    exception_blob()                      { return _exception_blob; }
 233 
 234   // Leaf routines helping with method data update
 235   static void profile_receiver_type_C(DataLayout* data, oopDesc* receiver);
 236 
 237   // Implicit exception support
 238   static void throw_div0_exception_C      (JavaThread* thread);
 239   static void throw_stack_overflow_error_C(JavaThread* thread);
 240 
 241   // Exception handling
 242   static address rethrow_stub()             { return _rethrow_Java; }
 243 
 244 
 245   // Type functions
 246   // ======================================================
 247 
 248   static const TypeFunc* new_instance_Type(); // object allocation (slow case)
 249   static const TypeFunc* new_array_Type ();   // [a]newarray (slow case)
 250   static const TypeFunc* multianewarray_Type(int ndim); // multianewarray
 251   static const TypeFunc* multianewarray2_Type(); // multianewarray
 252   static const TypeFunc* multianewarray3_Type(); // multianewarray
 253   static const TypeFunc* multianewarray4_Type(); // multianewarray
 254   static const TypeFunc* multianewarray5_Type(); // multianewarray
 255   static const TypeFunc* multianewarrayN_Type(); // multianewarray
 256   static const TypeFunc* complete_monitor_enter_Type();
 257   static const TypeFunc* complete_monitor_exit_Type();
 258   static const TypeFunc* monitor_notify_Type();
 259   static const TypeFunc* uncommon_trap_Type();
 260   static const TypeFunc* athrow_Type();
 261   static const TypeFunc* rethrow_Type();
 262   static const TypeFunc* Math_D_D_Type();  // sin,cos & friends
 263   static const TypeFunc* Math_DD_D_Type(); // mod,pow & friends
 264   static const TypeFunc* modf_Type();
 265   static const TypeFunc* l2f_Type();
 266   static const TypeFunc* void_long_Type();
 267   static const TypeFunc* void_void_Type();
 268   static const TypeFunc* continuation_doYield_Type();
 269 
 270   static const TypeFunc* flush_windows_Type();
 271 
 272   // arraycopy routine types
 273   static const TypeFunc* fast_arraycopy_Type(); // bit-blasters
 274   static const TypeFunc* checkcast_arraycopy_Type();
 275   static const TypeFunc* generic_arraycopy_Type();
 276   static const TypeFunc* slow_arraycopy_Type();   // the full routine
 277 
 278   static const TypeFunc* array_fill_Type();
 279 
 280   static const TypeFunc* aescrypt_block_Type();
 281   static const TypeFunc* cipherBlockChaining_aescrypt_Type();
 282   static const TypeFunc* counterMode_aescrypt_Type();
 283 
 284   static const TypeFunc* sha_implCompress_Type();
 285   static const TypeFunc* digestBase_implCompressMB_Type();
 286 
 287   static const TypeFunc* multiplyToLen_Type();
 288   static const TypeFunc* montgomeryMultiply_Type();


< prev index next >