Switches using Router code vs Switch code and decision making

Hi all,When an ICX switch is on router code, is every packet a forwarding decision even if the ICX device is on a switched circuit on layer 2? If the ICX switch is not performing the routing, are we bound to the switching capacity or the forwarding capacity?