]> gitweb.factorcode.org Git - factor.git/commit
VM: omit the type check if checking for fixnum and it's the first check
authorBjörn Lindqvist <bjourne@gmail.com>
Mon, 30 May 2016 21:54:26 +0000 (23:54 +0200)
committerBjörn Lindqvist <bjourne@gmail.com>
Tue, 31 May 2016 01:37:24 +0000 (03:37 +0200)
commitdae2229957b28d07074eae6c100281d6ed36e44e
tree9582e2c89c1714ae1a1639a2ad00d2eb645f3c7d
parent59443dca012141ba6ff2f58a35f65db75eb62eca
VM: omit the type check if checking for fixnum and it's the first check

Previously: and ecx, 0xf ; cmp ecx, 0 ; jz <address> was generated. Now
instead: and ecx, 0xf ; jz <address> because the cmp, ecx, 0 instruction
is redundant.
vm/inline_cache.cpp