]> gitweb.factorcode.org Git - factor.git/commitdiff
VM: fix comments for inline_cache_jit
authortimor <timor.dd@googlemail.com>
Tue, 9 Feb 2021 21:13:58 +0000 (22:13 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 9 Feb 2021 21:18:02 +0000 (16:18 -0500)
vm/inline_cache.cpp

index c95ffe99e26881ceccb1e0567b7b9f76dd58ac7d..970883c5455fda08a57e70f75db4fec7f150f711 100644 (file)
@@ -71,11 +71,11 @@ void inline_cache_jit::emit_inline_cache(fixnum index, cell generic_word_,
   cell ic_type = determine_inline_cache_type(cache_entries.untagged());
   parent->update_pic_count(ic_type);
 
-  // Generate machine code to determine the object's class.
+  // Put the tag of the object, or class of the tuple in a register.
   emit_with_literal(parent->special_objects[PIC_LOAD],
                     tag_fixnum(-index * sizeof(cell)));
 
-  // Put the tag of the object, or class of the tuple in a register.
+  // Generate machine code to determine the object's class.
   emit(parent->special_objects[ic_type]);
 
   // Generate machine code to check, in turn, if the class is one of the cached