#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "objs/kite_object.h"
#include "kite_vm.h"
#include "kite_opcodes.h"
#define ALLOCATE_OPCODE | ( | name | ) | (name*)kite_compile_common(sizeof(name)) |
Referenced by kite_compile_arithop(), kite_compile_call(), kite_compile_defprop(), kite_compile_deref_1(), kite_compile_deref_2(), kite_compile_dupe_top(), kite_compile_eval(), kite_compile_exception_hndl(), kite_compile_funcargs(), kite_compile_jump_false(), kite_compile_jump_true(), kite_compile_jump_uncond(), kite_compile_list_cons(), kite_compile_list_cons_0(), kite_compile_list_cons_1(), kite_compile_make(), kite_compile_nop(), kite_compile_objis(), kite_compile_pop_exception_hndl(), kite_compile_push(), kite_compile_return(), and kite_compile_this().
kite_opcode_t* kite_add_to_instruction_list | ( | kite_opcode_t ** | list, | |
kite_opcode_t * | opc | |||
) |
References kite_opcode_t::next.
kite_opcode_t* kite_compile_arithop | ( | unsigned int | operation | ) |
kite_opcode_t* kite_compile_call | ( | ) |
References ALLOCATE_OPCODE, CALL, and kite_opcode_t::opcode.
kite_opcode_t* kite_compile_defprop | ( | ) |
References ALLOCATE_OPCODE, DEFPROP, and kite_opcode_t::opcode.
kite_opcode_t* kite_compile_deref_1 | ( | int | create | ) |
kite_opcode_t* kite_compile_deref_2 | ( | ) |
References ALLOCATE_OPCODE, DEREF_2, and kite_opcode_t::opcode.
kite_opcode_t* kite_compile_dupe_top | ( | int | dupe_ref | ) |
kite_opcode_t* kite_compile_eval | ( | ) |
References ALLOCATE_OPCODE, EVAL_OBJ, and kite_opcode_t::opcode.
kite_opcode_t* kite_compile_exception_hndl | ( | kite_opcode_t * | handler | ) |
kite_opcode_t* kite_compile_funcargs | ( | struct kite_object_t * | args | ) |
kite_opcode_t* kite_compile_jump_false | ( | kite_opcode_t * | jumpto | ) |
kite_opcode_t* kite_compile_jump_true | ( | kite_opcode_t * | jumpto | ) |
kite_opcode_t* kite_compile_jump_uncond | ( | kite_opcode_t * | jumpto | ) |
kite_opcode_t* kite_compile_list_cons | ( | ) |
References ALLOCATE_OPCODE, LIST_CONS, and kite_opcode_t::opcode.
kite_opcode_t* kite_compile_list_cons_0 | ( | ) |
References ALLOCATE_OPCODE, LIST_CONS_0, and kite_opcode_t::opcode.
kite_opcode_t* kite_compile_list_cons_1 | ( | ) |
References ALLOCATE_OPCODE, LIST_CONS_1, and kite_opcode_t::opcode.
kite_opcode_t* kite_compile_make | ( | ) |
References ALLOCATE_OPCODE, MAKE_OBJ, and kite_opcode_t::opcode.
kite_opcode_t* kite_compile_nop | ( | ) |
References ALLOCATE_OPCODE, NOP, and kite_opcode_t::opcode.
kite_opcode_t* kite_compile_objis | ( | int | isof | ) |
References ALLOCATE_OPCODE, kite_opcode_objis::common, IS_ISOF, kite_opcode_objis::isof, and kite_opcode_t::opcode.
kite_opcode_t* kite_compile_pop_exception_hndl | ( | ) |
References ALLOCATE_OPCODE, kite_opcode_t::opcode, and POP_EXCEPTION_HNDL.
kite_opcode_t* kite_compile_push | ( | struct kite_object_t * | obj | ) |
References ALLOCATE_OPCODE, kite_opcode_push::common, kite_opcode_push::obj, kite_opcode_t::opcode, and PUSH.
kite_opcode_t* kite_compile_return | ( | ) |
References ALLOCATE_OPCODE, kite_opcode_t::opcode, and RETURN_NOW.
kite_opcode_t* kite_compile_this | ( | ) |
References ALLOCATE_OPCODE, kite_opcode_t::opcode, and PUSH_THIS.
kite_opcode_t* kite_copy_instruction_list | ( | kite_thread_t * | thd, | |
kite_opcode_t * | opc | |||
) |
References kite_opcode_t::file, kite_opcode_t::length, and kite_opcode_t::next.
void kite_free_instruction_list | ( | kite_thread_t * | thd, | |
kite_opcode_t * | opc | |||
) |
References kite_opcode_t::file, and kite_opcode_t::next.
Referenced by kite_destruct_object_nofree().