some move

This commit is contained in:
blueloveTH 2024-06-22 15:07:06 +08:00
parent 783bbfb4ba
commit 841be061e0
2 changed files with 1 additions and 3 deletions

View File

@ -143,7 +143,7 @@ struct Frame {
int _exit_block(ValueStack*, int);
[[nodiscard]] int prepare_loop_break(ValueStack* s_data) {
int target = co->_get_block_codei(ip()).end;
int target = co->blocks[co->lines[ip()].iblock].end;
prepare_jump_break(s_data, target);
return target;
}

View File

@ -44,8 +44,6 @@ struct CodeObject {
int start_line;
int end_line;
const CodeBlock& _get_block_codei(int codei) const { return blocks[lines[codei].iblock]; }
void _gc_mark(VM*) const;
CodeObject(pkpy_SourceData_ src, const Str& name) :