fixed ir bug. add closure object. and  add text ir codes.