replace Frame::StackType with ir::Type
parameterize many Frame:: methods by type
inline Frame::*ed* code