JsInline: extracted getDescriptorForCall function