mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
some move
This commit is contained in:
parent
783bbfb4ba
commit
841be061e0
@ -143,7 +143,7 @@ struct Frame {
|
|||||||
int _exit_block(ValueStack*, int);
|
int _exit_block(ValueStack*, int);
|
||||||
|
|
||||||
[[nodiscard]] int prepare_loop_break(ValueStack* s_data) {
|
[[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);
|
prepare_jump_break(s_data, target);
|
||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
|
@ -44,8 +44,6 @@ struct CodeObject {
|
|||||||
int start_line;
|
int start_line;
|
||||||
int end_line;
|
int end_line;
|
||||||
|
|
||||||
const CodeBlock& _get_block_codei(int codei) const { return blocks[lines[codei].iblock]; }
|
|
||||||
|
|
||||||
void _gc_mark(VM*) const;
|
void _gc_mark(VM*) const;
|
||||||
|
|
||||||
CodeObject(pkpy_SourceData_ src, const Str& name) :
|
CodeObject(pkpy_SourceData_ src, const Str& name) :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user