]> gitweb.factorcode.org Git - factor.git/commit
VM: change type of bignum_roots and remove unnecessary not-null checks
authorBjörn Lindqvist <bjourne@gmail.com>
Thu, 12 Jun 2014 17:10:42 +0000 (19:10 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 12 Jun 2014 20:50:10 +0000 (13:50 -0700)
commita6e0867b2222f3b0976e9aac6539fe8f12a552e2
tree62a5b0b489c24af32bb798613e86ca3c87661909
parent8ac3b8017385a070ac21b0e4df8381aa479026fc
VM: change type of bignum_roots and remove unnecessary not-null checks

Declaring bignum_roots to contain bignum** instead of cell avoids some
superfluous casts. Casting it to cell is wrong because the items in it
are never tagged. And due to a earlier commit, bignum_roots will never
contain NULL:s so checking for them is not needed.
vm/data_roots.hpp
vm/slot_visitor.hpp
vm/vm.hpp