add runByteCodeWithState to VM.h

This commit is contained in:
lyon1998 2022-03-15 13:01:05 +08:00
parent 5a97c8cb96
commit 7b45fdfdf5
2 changed files with 6 additions and 7 deletions

View File

@ -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);

View File

@ -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