mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
add runByteCodeWithState to VM.h
This commit is contained in:
parent
5a97c8cb96
commit
7b45fdfdf5
@ -33,13 +33,6 @@
|
||||
#include "PikaPlatform.h"
|
||||
#include "dataStrs.h"
|
||||
|
||||
/* local head */
|
||||
VMParameters* pikaVM_runByteCodeWithState(PikaObj* self,
|
||||
VMParameters* locals,
|
||||
VMParameters* globals,
|
||||
ByteCodeFrame* bytecode_frame,
|
||||
uint16_t pc);
|
||||
|
||||
static InstructUnit* VMState_getInstructNow(VMState* vs) {
|
||||
return instructArray_getByOffset(&(vs->bytecode_frame->instruct_array),
|
||||
vs->pc);
|
||||
|
@ -168,4 +168,10 @@ InstructUnit* instructArray_getByOffset(InstructArray* self, int32_t offset);
|
||||
#define instructArray_getSize(InsturctArry_p_self) \
|
||||
((size_t)(InsturctArry_p_self)->size)
|
||||
|
||||
VMParameters* pikaVM_runByteCodeWithState(PikaObj* self,
|
||||
VMParameters* locals,
|
||||
VMParameters* globals,
|
||||
ByteCodeFrame* bytecode_frame,
|
||||
uint16_t pc);
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user