182 return _factory->get_symbol(o);
183 }
184 }
185
186 ciMetadata* get_metadata(Metadata* o) {
187 if (o == nullptr) {
188 return nullptr;
189 } else {
190 return _factory->get_metadata(o);
191 }
192 }
193
194 ciMetadata* cached_metadata(Metadata* o) {
195 return _factory->cached_metadata(o);
196 }
197
198 ciInstance* get_instance(oop o) {
199 if (o == nullptr) return nullptr;
200 return get_object(o)->as_instance();
201 }
202 ciObjArrayKlass* get_obj_array_klass(Klass* o) {
203 if (o == nullptr) return nullptr;
204 return get_metadata(o)->as_obj_array_klass();
205 }
206 ciTypeArrayKlass* get_type_array_klass(Klass* o) {
207 if (o == nullptr) return nullptr;
208 return get_metadata(o)->as_type_array_klass();
209 }
210 ciKlass* get_klass(Klass* o) {
211 if (o == nullptr) return nullptr;
212 return get_metadata(o)->as_klass();
213 }
214 ciInstanceKlass* get_instance_klass(Klass* o) {
215 if (o == nullptr) return nullptr;
216 return get_metadata(o)->as_instance_klass();
217 }
218 ciMethod* get_method(Method* o) {
219 if (o == nullptr) return nullptr;
220 return get_metadata(o)->as_method();
221 }
483 void set_dyno_loc(const InstanceKlass* ik);
484 void record_best_dyno_loc(const InstanceKlass* ik);
485 bool print_dyno_loc(outputStream* out, const InstanceKlass* ik) const;
486
487 GrowableArray<const InstanceKlass*>* _dyno_klasses;
488 GrowableArray<const char *>* _dyno_locs;
489
490 #define MAX_DYNO_NAME_LENGTH 1024
491 char _dyno_name[MAX_DYNO_NAME_LENGTH+1];
492
493 public:
494 // Dump the compilation replay data for the ciEnv to the stream.
495 void dump_replay_data(int compile_id);
496 void dump_inline_data(int compile_id);
497 void dump_replay_data(outputStream* out);
498 void dump_replay_data_unsafe(outputStream* out);
499 void dump_replay_data_helper(outputStream* out);
500 void dump_compile_data(outputStream* out);
501 void dump_replay_data_version(outputStream* out);
502
503 const char *dyno_name(const InstanceKlass* ik) const;
504 const char *replay_name(const InstanceKlass* ik) const;
505 const char *replay_name(ciKlass* i) const;
506
507 void record_lambdaform(Thread* thread, oop obj);
508 void record_member(Thread* thread, oop obj);
509 void record_mh(Thread* thread, oop obj);
510 void record_call_site_obj(Thread* thread, oop obj);
511 void record_call_site_method(Thread* thread, Method* adapter);
512 void process_invokedynamic(const constantPoolHandle &cp, int index, JavaThread* thread);
513 void process_invokehandle(const constantPoolHandle &cp, int index, JavaThread* thread);
514 void find_dynamic_call_sites();
515 };
516
517 #endif // SHARE_CI_CIENV_HPP
|
182 return _factory->get_symbol(o);
183 }
184 }
185
186 ciMetadata* get_metadata(Metadata* o) {
187 if (o == nullptr) {
188 return nullptr;
189 } else {
190 return _factory->get_metadata(o);
191 }
192 }
193
194 ciMetadata* cached_metadata(Metadata* o) {
195 return _factory->cached_metadata(o);
196 }
197
198 ciInstance* get_instance(oop o) {
199 if (o == nullptr) return nullptr;
200 return get_object(o)->as_instance();
201 }
202 ciFlatArrayKlass* get_flat_array_klass(Klass* o) {
203 if (o == nullptr) return nullptr;
204 return get_metadata(o)->as_flat_array_klass();
205 }
206 ciObjArrayKlass* get_obj_array_klass(Klass* o) {
207 if (o == nullptr) return nullptr;
208 return get_metadata(o)->as_obj_array_klass();
209 }
210 ciTypeArrayKlass* get_type_array_klass(Klass* o) {
211 if (o == nullptr) return nullptr;
212 return get_metadata(o)->as_type_array_klass();
213 }
214 ciKlass* get_klass(Klass* o) {
215 if (o == nullptr) return nullptr;
216 return get_metadata(o)->as_klass();
217 }
218 ciInstanceKlass* get_instance_klass(Klass* o) {
219 if (o == nullptr) return nullptr;
220 return get_metadata(o)->as_instance_klass();
221 }
222 ciMethod* get_method(Method* o) {
223 if (o == nullptr) return nullptr;
224 return get_metadata(o)->as_method();
225 }
487 void set_dyno_loc(const InstanceKlass* ik);
488 void record_best_dyno_loc(const InstanceKlass* ik);
489 bool print_dyno_loc(outputStream* out, const InstanceKlass* ik) const;
490
491 GrowableArray<const InstanceKlass*>* _dyno_klasses;
492 GrowableArray<const char *>* _dyno_locs;
493
494 #define MAX_DYNO_NAME_LENGTH 1024
495 char _dyno_name[MAX_DYNO_NAME_LENGTH+1];
496
497 public:
498 // Dump the compilation replay data for the ciEnv to the stream.
499 void dump_replay_data(int compile_id);
500 void dump_inline_data(int compile_id);
501 void dump_replay_data(outputStream* out);
502 void dump_replay_data_unsafe(outputStream* out);
503 void dump_replay_data_helper(outputStream* out);
504 void dump_compile_data(outputStream* out);
505 void dump_replay_data_version(outputStream* out);
506
507 ciWrapper* make_null_free_wrapper(ciType* type) {
508 return _factory->make_null_free_wrapper(type);
509 }
510
511 const char *dyno_name(const InstanceKlass* ik) const;
512 const char *replay_name(const InstanceKlass* ik) const;
513 const char *replay_name(ciKlass* i) const;
514
515 void record_lambdaform(Thread* thread, oop obj);
516 void record_member(Thread* thread, oop obj);
517 void record_mh(Thread* thread, oop obj);
518 void record_call_site_obj(Thread* thread, oop obj);
519 void record_call_site_method(Thread* thread, Method* adapter);
520 void process_invokedynamic(const constantPoolHandle &cp, int index, JavaThread* thread);
521 void process_invokehandle(const constantPoolHandle &cp, int index, JavaThread* thread);
522 void find_dynamic_call_sites();
523 };
524
525 #endif // SHARE_CI_CIENV_HPP
|