386 return null_check_common(value, type, true, nullptr, _gvn.type(value)->speculative_always_null());
387 }
388
389 // Check if value is null and abort if it is
390 Node* must_be_not_null(Node* value, bool do_replace_in_map);
391
392 // Null check oop. Return null-path control into (*null_control).
393 // Return a cast-not-null node which depends on the not-null control.
394 // If never_see_null, use an uncommon trap (*null_control sees a top).
395 // The cast is not valid along the null path; keep a copy of the original.
396 // If safe_for_replace, then we can replace the value with the cast
397 // in the parsing map (the cast is guaranteed to dominate the map)
398 Node* null_check_oop(Node* value, Node* *null_control,
399 bool never_see_null = false,
400 bool safe_for_replace = false,
401 bool speculative = false);
402
403 // Check the null_seen bit.
404 bool seems_never_null(Node* obj, ciProfileData* data, bool& speculating);
405
406 void guard_klass_being_initialized(Node* klass);
407 void guard_init_thread(Node* klass);
408
409 void clinit_barrier(ciInstanceKlass* ik, ciMethod* context);
410
411 // Check for unique class for receiver at call
412 ciKlass* profile_has_unique_klass() {
413 ciCallProfile profile = method()->call_profile_at_bci(bci());
414 if (profile.count() >= 0 && // no cast failures here
415 profile.has_receiver(0) &&
416 profile.morphism() == 1) {
417 return profile.receiver(0);
418 }
419 return nullptr;
420 }
421
422 // record type from profiling with the type system
423 Node* record_profile_for_speculation(Node* n, ciKlass* exact_kls, ProfilePtrKind ptr_kind);
424 void record_profiled_arguments_for_speculation(ciMethod* dest_method, Bytecodes::Code bc);
425 void record_profiled_parameters_for_speculation();
|
386 return null_check_common(value, type, true, nullptr, _gvn.type(value)->speculative_always_null());
387 }
388
389 // Check if value is null and abort if it is
390 Node* must_be_not_null(Node* value, bool do_replace_in_map);
391
392 // Null check oop. Return null-path control into (*null_control).
393 // Return a cast-not-null node which depends on the not-null control.
394 // If never_see_null, use an uncommon trap (*null_control sees a top).
395 // The cast is not valid along the null path; keep a copy of the original.
396 // If safe_for_replace, then we can replace the value with the cast
397 // in the parsing map (the cast is guaranteed to dominate the map)
398 Node* null_check_oop(Node* value, Node* *null_control,
399 bool never_see_null = false,
400 bool safe_for_replace = false,
401 bool speculative = false);
402
403 // Check the null_seen bit.
404 bool seems_never_null(Node* obj, ciProfileData* data, bool& speculating);
405
406 void guard_klass_is_initialized(Node* klass);
407 void guard_klass_being_initialized(Node* klass);
408 void guard_init_thread(Node* klass);
409
410 void clinit_barrier(ciInstanceKlass* ik, ciMethod* context);
411
412 // Check for unique class for receiver at call
413 ciKlass* profile_has_unique_klass() {
414 ciCallProfile profile = method()->call_profile_at_bci(bci());
415 if (profile.count() >= 0 && // no cast failures here
416 profile.has_receiver(0) &&
417 profile.morphism() == 1) {
418 return profile.receiver(0);
419 }
420 return nullptr;
421 }
422
423 // record type from profiling with the type system
424 Node* record_profile_for_speculation(Node* n, ciKlass* exact_kls, ProfilePtrKind ptr_kind);
425 void record_profiled_arguments_for_speculation(ciMethod* dest_method, Bytecodes::Code bc);
426 void record_profiled_parameters_for_speculation();
|