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,
code_block *compiled,
array* parameters,
case RT_MEGAMORPHIC_CACHE_HITS:
return (cell)&dispatch_stats.megamorphic_cache_hits;
case RT_VM:
- return compute_vm_address(array_nth(parameters, index));
+ return (cell)this + untag_fixnum(array_nth(parameters, index));
case RT_CARDS_OFFSET:
return cards_offset;
case RT_DECKS_OFFSET:
void update_word_references(code_block* compiled, bool reset_inline_caches);
void undefined_symbol();
cell compute_dlsym_address(array* literals, cell index, bool toc);
- cell compute_vm_address(cell arg);
cell lookup_external_address(relocation_type rel_type,
code_block* compiled,
array* parameters,