diff src/core/interp_strunct.h @ 52:0eaa19833fe4

split interp struct to headerfile
author anatofuz
date Tue, 11 Dec 2018 15:04:06 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/core/interp_strunct.h	Tue Dec 11 15:04:06 2018 +0900
@@ -0,0 +1,21 @@
+typedef struct interp {
+     MVMuint16 op; //elimination
+     /* Points to the place in the bytecode right after the current opcode. */
+     /* See the NEXT_OP macro for making sense of this */
+     MVMuint8 *cur_op;
+
+     /* The current frame's bytecode start. */
+     MVMuint8 *bytecode_start;
+
+     /* Points to the base of the current register set for the frame we
+      * are presently in. */
+     MVMRegister *reg_base;
+
+     /* Points to the current compilation unit. */
+     MVMCompUnit *cu;
+
+     /* The current call site we're constructing. */
+     MVMCallsite *cur_callsite; //elimination
+
+     MVMThreadContext *tc;
+} INTER,*INTERP;