]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/code_blocks.hpp
io.streams.256color: faster by caching styles
[factor.git] / vm / code_blocks.hpp
index acc90f7e95e083a3739b77836054f591987efa15..baa0faa6c9d3554d28cfccd28598f8f1252a997a 100644 (file)
@@ -25,9 +25,7 @@ struct code_block {
     header = ((header & ~0x7) | (type << 1));
   }
 
-  bool pic_p() const { return type() == code_block_pic; }
-
-  bool optimized_p() const { return type() == code_block_optimized; }
+  bool pic_p() const { return type() == CODE_BLOCK_PIC; }
 
   cell size() const {
     cell size;
@@ -64,7 +62,7 @@ struct code_block {
     header = (header & 0xFFFFFF) | (frame_size << 20);
   }
 
-  template <typename Fixup> cell size(Fixup fixup) const { return size(); }
+  template <typename Fixup> cell size(Fixup fixup) const { (void)fixup; return size(); }
 
   cell entry_point() const { return (cell)(this + 1); }