Rename Frame::IncreaseOffset() to Frame::AdjustOffset()

For clarity, since it's used for both increasing and decreasing.
This commit is contained in:
Jon Siwek 2020-12-13 13:27:05 -08:00
parent 7393fc6d24
commit 2219a03344
2 changed files with 5 additions and 5 deletions

View file

@ -479,7 +479,7 @@ ValPtr InlineExpr::Eval(Frame* f) const
int nargs = args->Exprs().length();
f->Reset(frame_offset + nargs);
f->IncreaseOffset(frame_offset);
f->AdjustOffset(frame_offset);
// Assign the arguments.
for ( auto i = 0; i < nargs; ++i )
@ -494,11 +494,11 @@ ValPtr InlineExpr::Eval(Frame* f) const
catch ( InterpreterException& e )
{
f->IncreaseOffset(-frame_offset);
f->AdjustOffset(-frame_offset);
throw;
}
f->IncreaseOffset(-frame_offset);
f->AdjustOffset(-frame_offset);
return result;
}