added two more fields into CompiledMethod. no implementation change has been made yet

This commit is contained in:
hyunghwan.chung
2019-06-29 10:46:28 +00:00
parent 20b50c7bb6
commit 92093dd23f
3 changed files with 17 additions and 6 deletions

View File

@ -555,9 +555,9 @@ struct moo_methsig_t
};
#if defined(MOO_USE_METHOD_TRAILER)
# define MOO_METHOD_NAMED_INSTVARS 8
# define MOO_METHOD_NAMED_INSTVARS 10
#else
# define MOO_METHOD_NAMED_INSTVARS 9
# define MOO_METHOD_NAMED_INSTVARS 11
#endif
typedef struct moo_method_t moo_method_t;
typedef struct moo_method_t* moo_oop_method_t;
@ -586,6 +586,8 @@ struct moo_method_t
#endif
moo_oop_t source; /* TODO: what should I put? */
moo_oop_t source_file; /* source file that contains the definition of this method. nil if unavailable */
moo_oow_t source_line; /* line of the source file where the method definition begins. valid only if source_file is not nil */
/* == variable indexed part == */
moo_oop_t literal_frame[1]; /* it stores literals */