131 static const TypeFunc* _multianewarray5_Type;
132 static const TypeFunc* _multianewarrayN_Type;
133 static const TypeFunc* _complete_monitor_enter_Type;
134 static const TypeFunc* _complete_monitor_exit_Type;
135 static const TypeFunc* _monitor_notify_Type;
136 static const TypeFunc* _uncommon_trap_Type;
137 static const TypeFunc* _athrow_Type;
138 static const TypeFunc* _rethrow_Type;
139 static const TypeFunc* _Math_D_D_Type;
140 static const TypeFunc* _Math_DD_D_Type;
141 static const TypeFunc* _modf_Type;
142 static const TypeFunc* _l2f_Type;
143 static const TypeFunc* _void_long_Type;
144 static const TypeFunc* _void_void_Type;
145 static const TypeFunc* _jfr_write_checkpoint_Type;
146 static const TypeFunc* _flush_windows_Type;
147 static const TypeFunc* _fast_arraycopy_Type;
148 static const TypeFunc* _checkcast_arraycopy_Type;
149 static const TypeFunc* _generic_arraycopy_Type;
150 static const TypeFunc* _slow_arraycopy_Type;
151 static const TypeFunc* _unsafe_setmemory_Type;
152 static const TypeFunc* _array_fill_Type;
153 static const TypeFunc* _array_sort_Type;
154 static const TypeFunc* _array_partition_Type;
155 static const TypeFunc* _aescrypt_block_Type;
156 static const TypeFunc* _cipherBlockChaining_aescrypt_Type;
157 static const TypeFunc* _electronicCodeBook_aescrypt_Type;
158 static const TypeFunc* _counterMode_aescrypt_Type;
159 static const TypeFunc* _galoisCounterMode_aescrypt_Type;
160 static const TypeFunc* _digestBase_implCompress_with_sha3_Type;
161 static const TypeFunc* _digestBase_implCompress_without_sha3_Type;
162 static const TypeFunc* _digestBase_implCompressMB_with_sha3_Type;
163 static const TypeFunc* _digestBase_implCompressMB_without_sha3_Type;
164 static const TypeFunc* _double_keccak_Type;
165 static const TypeFunc* _multiplyToLen_Type;
166 static const TypeFunc* _montgomeryMultiply_Type;
167 static const TypeFunc* _montgomerySquare_Type;
168 static const TypeFunc* _squareToLen_Type;
169 static const TypeFunc* _mulAdd_Type;
170 static const TypeFunc* _bigIntegerShift_Type;
187 static const TypeFunc* _base64_decodeBlock_Type;
188 static const TypeFunc* _string_IndexOf_Type;
189 static const TypeFunc* _poly1305_processBlocks_Type;
190 static const TypeFunc* _intpoly_montgomeryMult_P256_Type;
191 static const TypeFunc* _intpoly_assign_Type;
192 static const TypeFunc* _updateBytesCRC32_Type;
193 static const TypeFunc* _updateBytesCRC32C_Type;
194 static const TypeFunc* _updateBytesAdler32_Type;
195 static const TypeFunc* _osr_end_Type;
196 static const TypeFunc* _register_finalizer_Type;
197 static const TypeFunc* _vthread_transition_Type;
198 #if INCLUDE_JFR
199 static const TypeFunc* _class_id_load_barrier_Type;
200 #endif // INCLUDE_JFR
201 static const TypeFunc* _dtrace_method_entry_exit_Type;
202 static const TypeFunc* _dtrace_object_alloc_Type;
203
204 // define stubs
205 static address generate_stub(ciEnv* ci_env, TypeFunc_generator gen, address C_function, const char* name, StubId stub_id, int is_fancy_jump, bool pass_tls, bool return_pc);
206
207 //
208 // Implementation of runtime methods
209 // =================================
210
211 // Allocate storage for a Java instance.
212 static void new_instance_C(Klass* instance_klass, JavaThread* current);
213
214 // Allocate storage for a objArray or typeArray
215 static void new_array_C(Klass* array_klass, int len, JavaThread* current);
216 static void new_array_nozero_C(Klass* array_klass, int len, JavaThread* current);
217
218 // Allocate storage for a multi-dimensional arrays
219 // Note: needs to be fixed for arbitrary number of dimensions
220 static void multianewarray2_C(Klass* klass, int len1, int len2, JavaThread* current);
221 static void multianewarray3_C(Klass* klass, int len1, int len2, int len3, JavaThread* current);
222 static void multianewarray4_C(Klass* klass, int len1, int len2, int len3, int len4, JavaThread* current);
223 static void multianewarray5_C(Klass* klass, int len1, int len2, int len3, int len4, int len5, JavaThread* current);
224 static void multianewarrayN_C(Klass* klass, arrayOopDesc* dims, JavaThread* current);
225
226 // local methods passed as arguments to stub generator that forward
227 // control to corresponding JRT methods of SharedRuntime
228 static void slow_arraycopy_C(oopDesc* src, jint src_pos,
229 oopDesc* dest, jint dest_pos,
230 jint length, JavaThread* thread);
231 static void complete_monitor_locking_C(oopDesc* obj, BasicLock* lock, JavaThread* current);
232
233 public:
234 static void monitor_notify_C(oopDesc* obj, JavaThread* current);
235 static void monitor_notifyAll_C(oopDesc* obj, JavaThread* current);
236
237 static void vthread_end_first_transition_C(oopDesc* vt, jboolean hide, JavaThread* current);
238 static void vthread_start_final_transition_C(oopDesc* vt, jboolean hide, JavaThread* current);
239 static void vthread_start_transition_C(oopDesc* vt, jboolean hide, JavaThread* current);
240 static void vthread_end_transition_C(oopDesc* vt, jboolean hide, JavaThread* current);
241
242 private:
243
244 // Implicit exception support
245 static void throw_null_exception_C(JavaThread* thread);
246
247 // Exception handling
248 static address handle_exception_C (JavaThread* current);
249 static address handle_exception_C_helper(JavaThread* current, nmethod*& nm);
250 static address rethrow_C (oopDesc* exception, JavaThread *thread, address return_pc );
251 static void deoptimize_caller_frame (JavaThread *thread);
252 static void deoptimize_caller_frame (JavaThread *thread, bool doit);
253 static bool is_deoptimized_caller_frame (JavaThread *thread);
254
255 // CodeBlob support
256 // ===================================================================
257
258 static UncommonTrapBlob* generate_uncommon_trap_blob(void);
259 static ExceptionBlob* generate_exception_blob();
260
261 static void register_finalizer_C(oopDesc* obj, JavaThread* current);
262
263 public:
264
265 static bool is_callee_saved_register(MachRegisterNumbers reg);
266
267 // One time only generate runtime code stubs. Returns true
268 // when runtime stubs have been generated successfully and
269 // false otherwise.
270 static bool generate(ciEnv* env);
271
272 // Returns the name of a stub
273 static const char* stub_name(address entry);
274
275 // Returns the name associated with a given stub id
276 static const char* stub_name(StubId id) {
277 assert(StubInfo::is_c2(id), "not a C2 stub %s", StubInfo::name(id));
278 return StubInfo::name(id);
279 }
280
281 // access to runtime stubs entry points for java code
282 static address new_instance_Java() { return _new_instance_Java; }
283 static address new_array_Java() { return _new_array_Java; }
284 static address new_array_nozero_Java() { return _new_array_nozero_Java; }
285 static address multianewarray2_Java() { return _multianewarray2_Java; }
286 static address multianewarray3_Java() { return _multianewarray3_Java; }
287 static address multianewarray4_Java() { return _multianewarray4_Java; }
288 static address multianewarray5_Java() { return _multianewarray5_Java; }
289 static address multianewarrayN_Java() { return _multianewarrayN_Java; }
290 static address complete_monitor_locking_Java() { return _complete_monitor_locking_Java; }
291 static address monitor_notify_Java() { return _monitor_notify_Java; }
292 static address monitor_notifyAll_Java() { return _monitor_notifyAll_Java; }
293
294 static address slow_arraycopy_Java() { return _slow_arraycopy_Java; }
295 static address register_finalizer_Java() { return _register_finalizer_Java; }
296
297 static address vthread_end_first_transition_Java() { return _vthread_end_first_transition_Java; }
298 static address vthread_start_final_transition_Java() { return _vthread_start_final_transition_Java; }
299 static address vthread_start_transition_Java() { return _vthread_start_transition_Java; }
300 static address vthread_end_transition_Java() { return _vthread_end_transition_Java; }
301
302 static UncommonTrapBlob* uncommon_trap_blob() { return _uncommon_trap_blob; }
303 static ExceptionBlob* exception_blob() { return _exception_blob; }
304
305 // Implicit exception support
306 static void throw_div0_exception_C (JavaThread* thread);
307 static void throw_stack_overflow_error_C(JavaThread* thread);
308
309 // Exception handling
310 static address rethrow_stub() { return _rethrow_Java; }
311
312
313 // Type functions
314 // ======================================================
315
443
444 static inline const TypeFunc* checkcast_arraycopy_Type() {
445 assert(_checkcast_arraycopy_Type != nullptr, "should be initialized");
446 // An extension of fast_arraycopy_Type which adds type checking.
447 return _checkcast_arraycopy_Type;
448 }
449
450 static inline const TypeFunc* generic_arraycopy_Type() {
451 assert(_generic_arraycopy_Type != nullptr, "should be initialized");
452 // This signature is like System.arraycopy, except that it returns status.
453 return _generic_arraycopy_Type;
454 }
455
456 static inline const TypeFunc* slow_arraycopy_Type() {
457 assert(_slow_arraycopy_Type != nullptr, "should be initialized");
458 // This signature is exactly the same as System.arraycopy.
459 // There are no intptr_t (int/long) arguments.
460 return _slow_arraycopy_Type;
461 } // the full routine
462
463 static inline const TypeFunc* unsafe_setmemory_Type() {
464 assert(_unsafe_setmemory_Type != nullptr, "should be initialized");
465 return _unsafe_setmemory_Type;
466 }
467
468 // static const TypeFunc* digestBase_implCompress_Type(bool is_sha3);
469 // static const TypeFunc* digestBase_implCompressMB_Type(bool is_sha3);
470 // static const TypeFunc* double_keccak_Type();
471
472 static inline const TypeFunc* array_fill_Type() {
473 assert(_array_fill_Type != nullptr, "should be initialized");
474 return _array_fill_Type;
475 }
476
477 static inline const TypeFunc* array_sort_Type() {
478 assert(_array_sort_Type != nullptr, "should be initialized");
479 return _array_sort_Type;
480 }
481
482 static inline const TypeFunc* array_partition_Type() {
728
729 static inline const TypeFunc* vthread_start_final_transition_Type() {
730 return vthread_transition_Type();
731 }
732
733 static inline const TypeFunc* vthread_start_transition_Type() {
734 return vthread_transition_Type();
735 }
736
737 static inline const TypeFunc* vthread_end_transition_Type() {
738 return vthread_transition_Type();
739 }
740
741 #if INCLUDE_JFR
742 static inline const TypeFunc* class_id_load_barrier_Type() {
743 assert(_class_id_load_barrier_Type != nullptr, "should be initialized");
744 return _class_id_load_barrier_Type;
745 }
746 #endif // INCLUDE_JFR
747
748 // Dtrace support. entry and exit probes have the same signature
749 static inline const TypeFunc* dtrace_method_entry_exit_Type() {
750 assert(_dtrace_method_entry_exit_Type != nullptr, "should be initialized");
751 return _dtrace_method_entry_exit_Type;
752 }
753
754 static inline const TypeFunc* dtrace_object_alloc_Type() {
755 assert(_dtrace_object_alloc_Type != nullptr, "should be initialized");
756 return _dtrace_object_alloc_Type;
757 }
758
759 #ifndef PRODUCT
760 // Signature for runtime calls in debug printing nodes, which depends on which nodes are actually passed
761 // Note: we do not allow more than 7 node arguments as GraphKit::make_runtime_call only allows 8, and we need
762 // one for the static string
763 static const TypeFunc* debug_print_Type(Node* parm0 = nullptr, Node* parm1 = nullptr,
764 Node* parm2 = nullptr, Node* parm3 = nullptr,
765 Node* parm4 = nullptr, Node* parm5 = nullptr,
766 Node* parm6 = nullptr);
767 #endif // PRODUCT
768
769 private:
770 static NamedCounter * volatile _named_counters;
771
772 public:
773 // helper function which creates a named counter labeled with the
774 // if they are available
775 static NamedCounter* new_named_counter(JVMState* jvms, NamedCounter::CounterTag tag);
776
777 // dumps all the named counters
778 static void print_named_counters();
779
780 static void initialize_types();
781 };
782
783 #endif // SHARE_OPTO_RUNTIME_HPP
|
131 static const TypeFunc* _multianewarray5_Type;
132 static const TypeFunc* _multianewarrayN_Type;
133 static const TypeFunc* _complete_monitor_enter_Type;
134 static const TypeFunc* _complete_monitor_exit_Type;
135 static const TypeFunc* _monitor_notify_Type;
136 static const TypeFunc* _uncommon_trap_Type;
137 static const TypeFunc* _athrow_Type;
138 static const TypeFunc* _rethrow_Type;
139 static const TypeFunc* _Math_D_D_Type;
140 static const TypeFunc* _Math_DD_D_Type;
141 static const TypeFunc* _modf_Type;
142 static const TypeFunc* _l2f_Type;
143 static const TypeFunc* _void_long_Type;
144 static const TypeFunc* _void_void_Type;
145 static const TypeFunc* _jfr_write_checkpoint_Type;
146 static const TypeFunc* _flush_windows_Type;
147 static const TypeFunc* _fast_arraycopy_Type;
148 static const TypeFunc* _checkcast_arraycopy_Type;
149 static const TypeFunc* _generic_arraycopy_Type;
150 static const TypeFunc* _slow_arraycopy_Type;
151 static const TypeFunc* _compile_method_Type;
152 static const TypeFunc* _unsafe_setmemory_Type;
153 static const TypeFunc* _array_fill_Type;
154 static const TypeFunc* _array_sort_Type;
155 static const TypeFunc* _array_partition_Type;
156 static const TypeFunc* _aescrypt_block_Type;
157 static const TypeFunc* _cipherBlockChaining_aescrypt_Type;
158 static const TypeFunc* _electronicCodeBook_aescrypt_Type;
159 static const TypeFunc* _counterMode_aescrypt_Type;
160 static const TypeFunc* _galoisCounterMode_aescrypt_Type;
161 static const TypeFunc* _digestBase_implCompress_with_sha3_Type;
162 static const TypeFunc* _digestBase_implCompress_without_sha3_Type;
163 static const TypeFunc* _digestBase_implCompressMB_with_sha3_Type;
164 static const TypeFunc* _digestBase_implCompressMB_without_sha3_Type;
165 static const TypeFunc* _double_keccak_Type;
166 static const TypeFunc* _multiplyToLen_Type;
167 static const TypeFunc* _montgomeryMultiply_Type;
168 static const TypeFunc* _montgomerySquare_Type;
169 static const TypeFunc* _squareToLen_Type;
170 static const TypeFunc* _mulAdd_Type;
171 static const TypeFunc* _bigIntegerShift_Type;
188 static const TypeFunc* _base64_decodeBlock_Type;
189 static const TypeFunc* _string_IndexOf_Type;
190 static const TypeFunc* _poly1305_processBlocks_Type;
191 static const TypeFunc* _intpoly_montgomeryMult_P256_Type;
192 static const TypeFunc* _intpoly_assign_Type;
193 static const TypeFunc* _updateBytesCRC32_Type;
194 static const TypeFunc* _updateBytesCRC32C_Type;
195 static const TypeFunc* _updateBytesAdler32_Type;
196 static const TypeFunc* _osr_end_Type;
197 static const TypeFunc* _register_finalizer_Type;
198 static const TypeFunc* _vthread_transition_Type;
199 #if INCLUDE_JFR
200 static const TypeFunc* _class_id_load_barrier_Type;
201 #endif // INCLUDE_JFR
202 static const TypeFunc* _dtrace_method_entry_exit_Type;
203 static const TypeFunc* _dtrace_object_alloc_Type;
204
205 // define stubs
206 static address generate_stub(ciEnv* ci_env, TypeFunc_generator gen, address C_function, const char* name, StubId stub_id, int is_fancy_jump, bool pass_tls, bool return_pc);
207
208 static address _vtable_must_compile_Java;
209
210 //
211 // Implementation of runtime methods
212 // =================================
213
214 // Allocate storage for a Java instance.
215 static void new_instance_C(Klass* instance_klass, JavaThread* current);
216
217 // Allocate storage for a objArray or typeArray
218 static void new_array_C(Klass* array_klass, int len, JavaThread* current);
219 static void new_array_nozero_C(Klass* array_klass, int len, JavaThread* current);
220
221 // Allocate storage for a multi-dimensional arrays
222 // Note: needs to be fixed for arbitrary number of dimensions
223 static void multianewarray2_C(Klass* klass, int len1, int len2, JavaThread* current);
224 static void multianewarray3_C(Klass* klass, int len1, int len2, int len3, JavaThread* current);
225 static void multianewarray4_C(Klass* klass, int len1, int len2, int len3, int len4, JavaThread* current);
226 static void multianewarray5_C(Klass* klass, int len1, int len2, int len3, int len4, int len5, JavaThread* current);
227 static void multianewarrayN_C(Klass* klass, arrayOopDesc* dims, JavaThread* current);
228
229 // local methods passed as arguments to stub generator that forward
230 // control to corresponding JRT methods of SharedRuntime
231 static void slow_arraycopy_C(oopDesc* src, jint src_pos,
232 oopDesc* dest, jint dest_pos,
233 jint length, JavaThread* thread);
234 static void complete_monitor_locking_C(oopDesc* obj, BasicLock* lock, JavaThread* current);
235 static void compile_method_C(Method* method, JavaThread* current);
236
237 public:
238 static void monitor_notify_C(oopDesc* obj, JavaThread* current);
239 static void monitor_notifyAll_C(oopDesc* obj, JavaThread* current);
240
241 static void vthread_end_first_transition_C(oopDesc* vt, jboolean hide, JavaThread* current);
242 static void vthread_start_final_transition_C(oopDesc* vt, jboolean hide, JavaThread* current);
243 static void vthread_start_transition_C(oopDesc* vt, jboolean hide, JavaThread* current);
244 static void vthread_end_transition_C(oopDesc* vt, jboolean hide, JavaThread* current);
245
246 private:
247
248 // Implicit exception support
249 static void throw_null_exception_C(JavaThread* thread);
250
251 // Exception handling
252 static address handle_exception_C (JavaThread* current);
253 static address handle_exception_C_helper(JavaThread* current, nmethod*& nm);
254 static address rethrow_C (oopDesc* exception, JavaThread *thread, address return_pc );
255 static void deoptimize_caller_frame (JavaThread *thread);
256 static void deoptimize_caller_frame (JavaThread *thread, bool doit);
257 static bool is_deoptimized_caller_frame (JavaThread *thread);
258
259 // CodeBlob support
260 // ===================================================================
261
262 static UncommonTrapBlob* generate_uncommon_trap_blob(void);
263 static ExceptionBlob* generate_exception_blob();
264
265 static void register_finalizer_C(oopDesc* obj, JavaThread* current);
266 static void class_init_barrier_C(Klass* k, JavaThread* current);
267 public:
268
269 static bool is_callee_saved_register(MachRegisterNumbers reg);
270
271 // One time only generate runtime code stubs. Returns true
272 // when runtime stubs have been generated successfully and
273 // false otherwise.
274 static bool generate(ciEnv* env);
275
276 // Returns the name of a stub
277 static const char* stub_name(address entry);
278
279 // Returns the name associated with a given stub id
280 static const char* stub_name(StubId id) {
281 assert(StubInfo::is_c2(id), "not a C2 stub %s", StubInfo::name(id));
282 return StubInfo::name(id);
283 }
284
285 // access to runtime stubs entry points for java code
286 static address new_instance_Java() { return _new_instance_Java; }
287 static address new_array_Java() { return _new_array_Java; }
288 static address new_array_nozero_Java() { return _new_array_nozero_Java; }
289 static address multianewarray2_Java() { return _multianewarray2_Java; }
290 static address multianewarray3_Java() { return _multianewarray3_Java; }
291 static address multianewarray4_Java() { return _multianewarray4_Java; }
292 static address multianewarray5_Java() { return _multianewarray5_Java; }
293 static address multianewarrayN_Java() { return _multianewarrayN_Java; }
294 static address vtable_must_compile_stub() { return _vtable_must_compile_Java; }
295 static address complete_monitor_locking_Java() { return _complete_monitor_locking_Java; }
296 static address monitor_notify_Java() { return _monitor_notify_Java; }
297 static address monitor_notifyAll_Java() { return _monitor_notifyAll_Java; }
298
299 static address slow_arraycopy_Java() { return _slow_arraycopy_Java; }
300 static address register_finalizer_Java() { return _register_finalizer_Java; }
301 static address class_init_barrier_Java() { return _class_init_barrier_Java; }
302 static address compile_method_Java() { return _compile_method_Java; }
303
304 static address vthread_end_first_transition_Java() { return _vthread_end_first_transition_Java; }
305 static address vthread_start_final_transition_Java() { return _vthread_start_final_transition_Java; }
306 static address vthread_start_transition_Java() { return _vthread_start_transition_Java; }
307 static address vthread_end_transition_Java() { return _vthread_end_transition_Java; }
308
309 static UncommonTrapBlob* uncommon_trap_blob() { return _uncommon_trap_blob; }
310 static ExceptionBlob* exception_blob() { return _exception_blob; }
311
312 // Implicit exception support
313 static void throw_div0_exception_C (JavaThread* thread);
314 static void throw_stack_overflow_error_C(JavaThread* thread);
315
316 // Exception handling
317 static address rethrow_stub() { return _rethrow_Java; }
318
319
320 // Type functions
321 // ======================================================
322
450
451 static inline const TypeFunc* checkcast_arraycopy_Type() {
452 assert(_checkcast_arraycopy_Type != nullptr, "should be initialized");
453 // An extension of fast_arraycopy_Type which adds type checking.
454 return _checkcast_arraycopy_Type;
455 }
456
457 static inline const TypeFunc* generic_arraycopy_Type() {
458 assert(_generic_arraycopy_Type != nullptr, "should be initialized");
459 // This signature is like System.arraycopy, except that it returns status.
460 return _generic_arraycopy_Type;
461 }
462
463 static inline const TypeFunc* slow_arraycopy_Type() {
464 assert(_slow_arraycopy_Type != nullptr, "should be initialized");
465 // This signature is exactly the same as System.arraycopy.
466 // There are no intptr_t (int/long) arguments.
467 return _slow_arraycopy_Type;
468 } // the full routine
469
470 static inline const TypeFunc* compile_method_Type() {
471 assert(_compile_method_Type != nullptr, "should be initialized");
472 return _compile_method_Type;
473 }
474
475 static inline const TypeFunc* unsafe_setmemory_Type() {
476 assert(_unsafe_setmemory_Type != nullptr, "should be initialized");
477 return _unsafe_setmemory_Type;
478 }
479
480 // static const TypeFunc* digestBase_implCompress_Type(bool is_sha3);
481 // static const TypeFunc* digestBase_implCompressMB_Type(bool is_sha3);
482 // static const TypeFunc* double_keccak_Type();
483
484 static inline const TypeFunc* array_fill_Type() {
485 assert(_array_fill_Type != nullptr, "should be initialized");
486 return _array_fill_Type;
487 }
488
489 static inline const TypeFunc* array_sort_Type() {
490 assert(_array_sort_Type != nullptr, "should be initialized");
491 return _array_sort_Type;
492 }
493
494 static inline const TypeFunc* array_partition_Type() {
740
741 static inline const TypeFunc* vthread_start_final_transition_Type() {
742 return vthread_transition_Type();
743 }
744
745 static inline const TypeFunc* vthread_start_transition_Type() {
746 return vthread_transition_Type();
747 }
748
749 static inline const TypeFunc* vthread_end_transition_Type() {
750 return vthread_transition_Type();
751 }
752
753 #if INCLUDE_JFR
754 static inline const TypeFunc* class_id_load_barrier_Type() {
755 assert(_class_id_load_barrier_Type != nullptr, "should be initialized");
756 return _class_id_load_barrier_Type;
757 }
758 #endif // INCLUDE_JFR
759
760 static const TypeFunc* class_init_barrier_Type();
761
762 // runtime upcalls support
763 static const TypeFunc* runtime_up_call_Type();
764
765 // Dtrace support. entry and exit probes have the same signature
766 static inline const TypeFunc* dtrace_method_entry_exit_Type() {
767 assert(_dtrace_method_entry_exit_Type != nullptr, "should be initialized");
768 return _dtrace_method_entry_exit_Type;
769 }
770
771 static inline const TypeFunc* dtrace_object_alloc_Type() {
772 assert(_dtrace_object_alloc_Type != nullptr, "should be initialized");
773 return _dtrace_object_alloc_Type;
774 }
775
776 #ifndef PRODUCT
777 // Signature for runtime calls in debug printing nodes, which depends on which nodes are actually passed
778 // Note: we do not allow more than 7 node arguments as GraphKit::make_runtime_call only allows 8, and we need
779 // one for the static string
780 static const TypeFunc* debug_print_Type(Node* parm0 = nullptr, Node* parm1 = nullptr,
781 Node* parm2 = nullptr, Node* parm3 = nullptr,
782 Node* parm4 = nullptr, Node* parm5 = nullptr,
783 Node* parm6 = nullptr);
784 #endif // PRODUCT
785
786 private:
787 static NamedCounter * volatile _named_counters;
788
789 public:
790 // helper function which creates a named counter labeled with the
791 // if they are available
792 static NamedCounter* new_named_counter(JVMState* jvms, NamedCounter::CounterTag tag);
793
794 // dumps all the named counters
795 static void print_named_counters();
796
797 public:
798 static void init_counters();
799 static void print_counters_on(outputStream* st);
800 static void initialize_types();
801 };
802
803 #endif // SHARE_OPTO_RUNTIME_HPP
|