moved global state from dispatch into vm

db4
Phil Dawes 2009-08-17 21:37:13 +01:00
parent c506abc6cd
commit 498b1917dc
3 changed files with 2 additions and 6 deletions

View File

@ -3,9 +3,6 @@
namespace factor
{
cell megamorphic_cache_hits;
cell megamorphic_cache_misses;
cell factorvm::search_lookup_alist(cell table, cell klass)
{
array *elements = untag<array>(table);

View File

@ -1,9 +1,6 @@
namespace factor
{
extern cell megamorphic_cache_hits;
extern cell megamorphic_cache_misses;
cell lookup_method(cell object, cell methods);
PRIMITIVE(lookup_method);

View File

@ -559,6 +559,8 @@ struct factorvm {
inline void vmprim_quot_compiled_p();
//dispatch
cell megamorphic_cache_hits;
cell megamorphic_cache_misses;
cell search_lookup_alist(cell table, cell klass);
cell search_lookup_hash(cell table, cell klass, cell hashcode);
cell nth_superclass(tuple_layout *layout, fixnum echelon);