From 1002898b7d394953f5bad28c76f85fdad79ef573 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Tue, 10 Nov 2009 17:13:20 -0600 Subject: [PATCH] cpu.ppc: update megamorphic dispatch template --- basis/cpu/ppc/bootstrap.factor | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/basis/cpu/ppc/bootstrap.factor b/basis/cpu/ppc/bootstrap.factor index 5d3caca206..e987a35aa8 100644 --- a/basis/cpu/ppc/bootstrap.factor +++ b/basis/cpu/ppc/bootstrap.factor @@ -200,12 +200,7 @@ CONSTANT: rs-reg 14 ! cache = ... 0 3 LOAD32 rc-absolute-ppc-2/2 rt-immediate jit-rel ! key = hashcode(class) - 5 4 3 SRAWI - 6 4 8 SRAWI - 5 5 6 ADD - 6 4 13 SRAWI - 5 5 6 ADD - 5 5 3 SLWI + 5 4 1 SRAWI ! key &= cache.length - 1 5 5 mega-cache-size get 1 - bootstrap-cell * ANDI ! cache += array-start-offset