core: improve document-view implementation ; arch_x86: add cond type for loop{,z,nz} j{,e,r}cx