VM: init_inline_caching is not needed
parent
4738824fb2
commit
0a5f1689e1
|
@ -72,7 +72,7 @@ void factor_vm::init_factor(vm_parameters* p) {
|
||||||
callbacks = new callback_heap(p->callback_size, this);
|
callbacks = new callback_heap(p->callback_size, this);
|
||||||
load_image(p);
|
load_image(p);
|
||||||
init_c_io();
|
init_c_io();
|
||||||
init_inline_caching((int)p->max_pic_size);
|
max_pic_size = (int)p->max_pic_size;
|
||||||
special_objects[OBJ_CELL_SIZE] = tag_fixnum(sizeof(cell));
|
special_objects[OBJ_CELL_SIZE] = tag_fixnum(sizeof(cell));
|
||||||
special_objects[OBJ_ARGS] = false_object;
|
special_objects[OBJ_ARGS] = false_object;
|
||||||
special_objects[OBJ_EMBEDDED] = false_object;
|
special_objects[OBJ_EMBEDDED] = false_object;
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
|
|
||||||
namespace factor {
|
namespace factor {
|
||||||
|
|
||||||
void factor_vm::init_inline_caching(int max_size) { max_pic_size = max_size; }
|
|
||||||
|
|
||||||
void factor_vm::deallocate_inline_cache(cell return_address) {
|
void factor_vm::deallocate_inline_cache(cell return_address) {
|
||||||
/* Find the call target. */
|
/* Find the call target. */
|
||||||
void* old_entry_point = get_call_target(return_address);
|
void* old_entry_point = get_call_target(return_address);
|
||||||
|
|
|
@ -664,7 +664,6 @@ struct factor_vm {
|
||||||
void primitive_dispatch_stats();
|
void primitive_dispatch_stats();
|
||||||
|
|
||||||
/* inline cache */
|
/* inline cache */
|
||||||
void init_inline_caching(int max_size);
|
|
||||||
void deallocate_inline_cache(cell return_address);
|
void deallocate_inline_cache(cell return_address);
|
||||||
void update_pic_count(cell type);
|
void update_pic_count(cell type);
|
||||||
code_block* compile_inline_cache(fixnum index, cell generic_word_,
|
code_block* compile_inline_cache(fixnum index, cell generic_word_,
|
||||||
|
|
Loading…
Reference in New Issue