factor/vm/dispatch.hpp

22 lines
442 B
C++
Raw Normal View History

2009-05-04 02:46:13 -04:00
namespace factor
{
2009-05-07 15:26:08 -04:00
extern cell megamorphic_cache_hits;
extern cell megamorphic_cache_misses;
2009-05-04 05:50:24 -04:00
cell lookup_method(cell object, cell methods);
PRIMITIVE(lookup_method);
2009-05-02 05:04:19 -04:00
2009-05-04 05:50:24 -04:00
cell object_class(cell object);
2009-05-02 05:04:19 -04:00
PRIMITIVE(mega_cache_miss);
2009-05-02 05:04:19 -04:00
PRIMITIVE(reset_dispatch_stats);
PRIMITIVE(dispatch_stats);
2009-05-02 05:04:19 -04:00
2009-05-04 05:50:24 -04:00
void jit_emit_class_lookup(jit *jit, fixnum index, cell type);
2009-05-02 05:04:19 -04:00
2009-05-04 05:50:24 -04:00
void jit_emit_mega_cache_lookup(jit *jit, cell methods, fixnum index, cell cache);
2009-05-04 02:46:13 -04:00
}