]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/dispatch.hpp
webapps.wiki: adding search bar
[factor.git] / vm / dispatch.hpp
index d86854982f9fdf325f155994a81781489283f160..7f676212cb51817f3243bc3971a7cfab503ae2ba 100644 (file)
@@ -1,13 +1,15 @@
-CELL lookup_method(CELL object, CELL methods);
-PRIMITIVE(lookup_method);
+namespace factor {
 
-CELL object_class(CELL object);
+struct dispatch_statistics {
+  cell megamorphic_cache_hits;
+  cell megamorphic_cache_misses;
 
-PRIMITIVE(mega_cache_miss);
+  cell cold_call_to_ic_transitions;
+  cell ic_to_pic_transitions;
+  cell pic_to_mega_transitions;
 
-PRIMITIVE(reset_dispatch_stats);
-PRIMITIVE(dispatch_stats);
+  cell pic_tag_count;
+  cell pic_tuple_count;
+};
 
-void jit_emit_class_lookup(jit *jit, F_FIXNUM index, CELL type);
-
-void jit_emit_mega_cache_lookup(jit *jit, CELL methods, F_FIXNUM index, CELL cache);
+}