From 096803e58f3dfc4a9b77b20a501987b93b5f6dcb Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Mon, 1 Jun 2009 02:32:36 -0500 Subject: [PATCH] Redo compiler.codegen.fixup and get %dispatch to work --- basis/compiler/codegen/codegen-tests.factor | 14 ++++ basis/compiler/codegen/codegen.factor | 25 +++--- basis/compiler/codegen/fixup/fixup.factor | 91 +++++++++++---------- basis/cpu/architecture/architecture.factor | 9 +- basis/cpu/x86/x86.factor | 2 +- vm/code_block.cpp | 5 +- 6 files changed, 81 insertions(+), 65 deletions(-) create mode 100644 basis/compiler/codegen/codegen-tests.factor diff --git a/basis/compiler/codegen/codegen-tests.factor b/basis/compiler/codegen/codegen-tests.factor new file mode 100644 index 0000000000..9c3817bad6 --- /dev/null +++ b/basis/compiler/codegen/codegen-tests.factor @@ -0,0 +1,14 @@ +IN: compiler.codegen.tests +USING: compiler.codegen.fixup tools.test cpu.architecture math kernel make +compiler.constants ; + +[ ] [ [ ] with-fixup drop ] unit-test +[ ] [ [ \ + %call ] with-fixup drop ] unit-test + +[ ] [ [