From f684243e2f6b352ab6da054de6906592f0e14b44 Mon Sep 17 00:00:00 2001 From: slava Date: Sat, 29 Apr 2006 21:13:02 +0000 Subject: [PATCH] Got scratch registers working; PowerPC backend fully operational, x86 in progress --- TODO.FACTOR.txt | 5 +- library/compiler/generator/generator.factor | 8 +- library/compiler/generator/templates.factor | 56 ++- library/compiler/intrinsics.factor | 150 -------- library/compiler/ppc/architecture.factor | 17 +- library/compiler/ppc/intrinsics.factor | 364 ++++++++++++-------- library/compiler/x86/architecture.factor | 17 +- 7 files changed, 280 insertions(+), 337 deletions(-) delete mode 100644 library/compiler/intrinsics.factor diff --git a/TODO.FACTOR.txt b/TODO.FACTOR.txt index 6edf8eba78..1df68b8ece 100644 --- a/TODO.FACTOR.txt +++ b/TODO.FACTOR.txt @@ -1,8 +1,8 @@ should fix in 0.82: +- type inference busted for tuple constructors - constant branch folding -- getenv, setenv, fast-slot stuff -- more flexible fixnum intrinsics +- fast-slot stuff - compile if-intrinsic even if there is no #if there - 3 >n fep - amd64 %box-struct @@ -13,7 +13,6 @@ should fix in 0.82: - speed up ideas: - only do clipping for certain gadgets - use glRect -- cocoa: global menu bar with useful commands + portability: diff --git a/library/compiler/generator/generator.factor b/library/compiler/generator/generator.factor index 98616c2b08..1d3e3a66d8 100644 --- a/library/compiler/generator/generator.factor +++ b/library/compiler/generator/generator.factor @@ -117,7 +117,7 @@ M: #label generate-node ( node -- next ) M: #if generate-node ( node -- next ) [ end-basic-block -