public static void pushLoopFrame(Context context, Vertex returnVertex, Vertex yieldVertex) {
pushLoopFrame(context, context.getCurrentFrame(), returnVertex, yieldVertex);
}
public static void pushLoopFrame(Context context, Frame prev, Vertex returnVertex, Vertex yieldVertex) {
Frame frame = context.pushFrame(prev.getModule(), prev.getName(), prev.getSelf(), prev.getBlock(), prev.getVisibility());
frame.setTag(new LoopTag(returnVertex, yieldVertex));
}