VM: word_stack_frame_p() is not used and find_all_quotations() is
trivial so those methods can be removeddb4
parent
49a406d880
commit
f5f8ce1501
|
@ -43,7 +43,7 @@ void quotation_jit::init_quotation(cell quot) {
|
|||
|
||||
bool quotation_jit::primitive_call_p(cell i, cell length) {
|
||||
return (i + 2) <= length && array_nth(elements.untagged(), i + 1) ==
|
||||
parent->special_objects[JIT_PRIMITIVE_WORD];
|
||||
parent->special_objects[JIT_PRIMITIVE_WORD];
|
||||
}
|
||||
|
||||
bool quotation_jit::fast_if_p(cell i, cell length) {
|
||||
|
@ -94,12 +94,6 @@ bool quotation_jit::special_subprimitive_p(cell obj) {
|
|||
obj == parent->special_objects[UNWIND_NATIVE_FRAMES_WORD];
|
||||
}
|
||||
|
||||
bool quotation_jit::word_stack_frame_p(cell obj) {
|
||||
return (to_boolean(untag<word>(obj)->subprimitive) &&
|
||||
!special_subprimitive_p(obj)) ||
|
||||
obj == parent->special_objects[JIT_PRIMITIVE_WORD];
|
||||
}
|
||||
|
||||
bool quotation_jit::word_safepoint_p(cell obj) {
|
||||
return !special_subprimitive_p(obj);
|
||||
}
|
||||
|
@ -400,12 +394,10 @@ void factor_vm::primitive_quotation_compiled_p() {
|
|||
ctx->push(tag_boolean(quotation_compiled_p(quot)));
|
||||
}
|
||||
|
||||
/* Allocates memory */
|
||||
cell factor_vm::find_all_quotations() { return instances(QUOTATION_TYPE); }
|
||||
|
||||
/* Allocates memory */
|
||||
void factor_vm::initialize_all_quotations() {
|
||||
data_root<array> quotations(find_all_quotations(), this);
|
||||
cell all_quots = instances(QUOTATION_TYPE);
|
||||
data_root<array> quotations(all_quots, this);
|
||||
|
||||
cell length = array_capacity(quotations.untagged());
|
||||
for (cell i = 0; i < length; i++) {
|
||||
|
|
|
@ -25,7 +25,6 @@ struct quotation_jit : public jit {
|
|||
bool mega_lookup_p(cell i, cell length);
|
||||
bool declare_p(cell i, cell length);
|
||||
bool special_subprimitive_p(cell obj);
|
||||
bool word_stack_frame_p(cell obj);
|
||||
cell word_stack_frame_size(cell obj);
|
||||
bool word_safepoint_p(cell obj);
|
||||
bool stack_frame_p();
|
||||
|
|
Loading…
Reference in New Issue