28 29 // ciCallSite 30 31 // ------------------------------------------------------------------ 32 // ciCallSite::get_target 33 // 34 // Return the target MethodHandle of this CallSite. 35 ciMethodHandle* ciCallSite::get_target() const { 36 VM_ENTRY_MARK; 37 oop method_handle_oop = java_lang_invoke_CallSite::target(get_oop()); 38 return CURRENT_ENV->get_object(method_handle_oop)->as_method_handle(); 39 } 40 41 // ------------------------------------------------------------------ 42 // ciCallSite::print 43 // 44 // Print debugging information about the CallSite. 45 void ciCallSite::print() { 46 Unimplemented(); 47 } | 28 29 // ciCallSite 30 31 // ------------------------------------------------------------------ 32 // ciCallSite::get_target 33 // 34 // Return the target MethodHandle of this CallSite. 35 ciMethodHandle* ciCallSite::get_target() const { 36 VM_ENTRY_MARK; 37 oop method_handle_oop = java_lang_invoke_CallSite::target(get_oop()); 38 return CURRENT_ENV->get_object(method_handle_oop)->as_method_handle(); 39 } 40 41 // ------------------------------------------------------------------ 42 // ciCallSite::print 43 // 44 // Print debugging information about the CallSite. 45 void ciCallSite::print() { 46 Unimplemented(); 47 } 48 49 50 bool ciCallSite::is_constant_call_site() { 51 return klass()->is_subclass_of(CURRENT_ENV->ConstantCallSite_klass()); 52 } 53 bool ciCallSite::is_mutable_call_site() { 54 return klass()->is_subclass_of(CURRENT_ENV->MutableCallSite_klass()); 55 } 56 bool ciCallSite::is_volatile_call_site() { 57 return klass()->is_subclass_of(CURRENT_ENV->VolatileCallSite_klass()); 58 } |