VM: the compute_vm_address method can be removed
parent
08766090d3
commit
7da72ac77c
|
@ -158,10 +158,6 @@ cell factor_vm::compute_dlsym_address(array* parameters,
|
||||||
return sym ? sym : undef;
|
return sym ? sym : undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
cell factor_vm::compute_vm_address(cell arg) {
|
|
||||||
return (cell)this + untag_fixnum(arg);
|
|
||||||
}
|
|
||||||
|
|
||||||
cell factor_vm::lookup_external_address(relocation_type rel_type,
|
cell factor_vm::lookup_external_address(relocation_type rel_type,
|
||||||
code_block *compiled,
|
code_block *compiled,
|
||||||
array* parameters,
|
array* parameters,
|
||||||
|
@ -174,7 +170,7 @@ cell factor_vm::lookup_external_address(relocation_type rel_type,
|
||||||
case RT_MEGAMORPHIC_CACHE_HITS:
|
case RT_MEGAMORPHIC_CACHE_HITS:
|
||||||
return (cell)&dispatch_stats.megamorphic_cache_hits;
|
return (cell)&dispatch_stats.megamorphic_cache_hits;
|
||||||
case RT_VM:
|
case RT_VM:
|
||||||
return compute_vm_address(array_nth(parameters, index));
|
return (cell)this + untag_fixnum(array_nth(parameters, index));
|
||||||
case RT_CARDS_OFFSET:
|
case RT_CARDS_OFFSET:
|
||||||
return cards_offset;
|
return cards_offset;
|
||||||
case RT_DECKS_OFFSET:
|
case RT_DECKS_OFFSET:
|
||||||
|
|
|
@ -572,7 +572,6 @@ struct factor_vm {
|
||||||
void update_word_references(code_block* compiled, bool reset_inline_caches);
|
void update_word_references(code_block* compiled, bool reset_inline_caches);
|
||||||
void undefined_symbol();
|
void undefined_symbol();
|
||||||
cell compute_dlsym_address(array* literals, cell index, bool toc);
|
cell compute_dlsym_address(array* literals, cell index, bool toc);
|
||||||
cell compute_vm_address(cell arg);
|
|
||||||
cell lookup_external_address(relocation_type rel_type,
|
cell lookup_external_address(relocation_type rel_type,
|
||||||
code_block* compiled,
|
code_block* compiled,
|
||||||
array* parameters,
|
array* parameters,
|
||||||
|
|
Loading…
Reference in New Issue