mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8031755: Type speculation should be used to optimize explicit null checks
Feed profiling data about reference nullness to type speculation. Reviewed-by: kvn, iveresov
This commit is contained in:
parent
f5d6f0ceb8
commit
fa3b0a8f47
16 changed files with 683 additions and 418 deletions
|
@ -234,10 +234,10 @@ class ciMethod : public ciMetadata {
|
|||
ciCallProfile call_profile_at_bci(int bci);
|
||||
int interpreter_call_site_count(int bci);
|
||||
|
||||
// Does type profiling provide a useful type at this point?
|
||||
ciKlass* argument_profiled_type(int bci, int i);
|
||||
ciKlass* parameter_profiled_type(int i);
|
||||
ciKlass* return_profiled_type(int bci);
|
||||
// Does type profiling provide any useful information at this point?
|
||||
bool argument_profiled_type(int bci, int i, ciKlass*& type, bool& maybe_null);
|
||||
bool parameter_profiled_type(int i, ciKlass*& type, bool& maybe_null);
|
||||
bool return_profiled_type(int bci, ciKlass*& type, bool& maybe_null);
|
||||
|
||||
ciField* get_field_at_bci( int bci, bool &will_link);
|
||||
ciMethod* get_method_at_bci(int bci, bool &will_link, ciSignature* *declared_signature);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue