#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "kite_object.h"
#include "kite_vm.h"
Functions | |
int | kite_vm_call_operator (kite_thread_t *thd, struct kite_object_t *this, int op, struct kite_object_t *arg, int err) |
void | kite_vm_call_constructor (kite_thread_t *thd, struct kite_object_t *this, struct kite_object_t *args) |
void | kite_vm_call_method (kite_thread_t *thd, kite_object_t *obj, char *name, struct kite_object_t *args, int err) |
void kite_vm_call_constructor | ( | kite_thread_t * | thd, | |
struct kite_object_t * | this, | |||
struct kite_object_t * | args | |||
) |
References KITE_FIND_ANY_IN_SYMTAB, kite_list_count(), kite_vm_call_method(), kite_object_t::object_data, kite_object_t::properties, and TRUE.
Referenced by kite_new_instance_with_constructor().
void kite_vm_call_method | ( | kite_thread_t * | thd, | |
kite_object_t * | obj, | |||
char * | name, | |||
struct kite_object_t * | args, | |||
int | err | |||
) |
References kite_object_t::builtin_data, kite_object_t::inherit_from, kite_dereference_and_load(), kite_dereference_object(), KITE_FIND_METHOD, kite_list_count(), kite_new_exception(), kite_new_list(), kite_new_string(), kite_reference_object(), kite_vm_call_operator(), kite_object_t::listvalue, OBJ_BOOLEAN, OBJ_FLOAT, OBJ_INTEGER, OBJ_METHOD, OBJ_NUMBER_OF_BASE_TYPES, kite_object_t::object_data, TRUE, kite_object_t::type, and kite_symtab_t::value.
Referenced by kite_boolean_object(), kite_dereference_and_load(), kite_float_object(), kite_gc_destroy_all(), kite_gc_incremental(), kite_int_object(), kite_string_object(), kite_vm_call_constructor(), and kite_vm_call_operator().
int kite_vm_call_operator | ( | kite_thread_t * | thd, | |
struct kite_object_t * | this, | |||
int | op, | |||
struct kite_object_t * | arg, | |||
int | err | |||
) |
References kite_object_t::inherit_from, kite_dereference_and_load(), KITE_FIND_ANY_IN_SYMTAB, kite_new_exception(), kite_new_list(), kite_vm_call_method(), OBJ_BOOLEAN, OBJ_FLOAT, OBJ_INTEGER, OBJ_NUMBER_OF_BASE_TYPES, kite_object_t::object_data, kite_object_t::properties, TRUE, kite_object_t::type, and kite_symtab_t::value.
Referenced by kite_vm_call_method().