From: Stephen Adams Date: Tue, 23 Jul 1996 20:02:21 +0000 (+0000) Subject: Removed rules containing CHAR->ASCII because the rtlgen.scm does not X-Git-Tag: 20090517-FFI~5441 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=5732cb140862fcb5505bcdb3f525c806f594a347;p=mit-scheme.git Removed rules containing CHAR->ASCII because the rtlgen.scm does not generate this RTL. --- diff --git a/v8/src/compiler/machines/spectrum/rules1.scm b/v8/src/compiler/machines/spectrum/rules1.scm index f1fd2e396..309ecff6b 100644 --- a/v8/src/compiler/machines/spectrum/rules1.scm +++ b/v8/src/compiler/machines/spectrum/rules1.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: rules1.scm,v 1.4 1996/07/22 17:47:18 adams Exp $ +$Id: rules1.scm,v 1.5 1996/07/23 20:02:21 adams Exp $ Copyright (c) 1989-1994 Massachusetts Institute of Technology @@ -359,15 +359,6 @@ MIT in each case. |# ;;;; CHAR->ASCII/BYTE-OFFSET -(define-rule statement - ;; load char object from memory and convert to ASCII byte - (ASSIGN (REGISTER (? target)) - (CHAR->ASCII (OFFSET (REGISTER (? base)) - (MACHINE-CONSTANT (? offset))))) - (standard-unary-conversion base target - (lambda (base target) - (load-byte (+ 3 (* 4 offset)) base target)))) - (define-rule statement ;; load ASCII byte from memory (ASSIGN (REGISTER (? target)) @@ -400,27 +391,12 @@ MIT in each case. |# (lambda (source target) (LAP (EXTRU () ,source 31 8 ,target))))) -;(define-rule statement -; (ASSIGN (REGISTER (? target)) -; (CHAR->ASCII (CONS-POINTER (? anything) (REGISTER (? source))))) -; anything ; ignore -; (standard-unary-conversion source target -; (lambda (source target) -; (LAP (EXTRU () ,source 31 8 ,target))))) - (define-rule statement ;; store ASCII byte in memory (ASSIGN (BYTE-OFFSET (REGISTER (? base)) (MACHINE-CONSTANT (? offset))) (REGISTER (? source))) (store-byte (standard-source! source) offset (standard-source! base))) -(define-rule statement - ;; convert char object to ASCII byte and store it in memory - ;; register + byte offset <- contents of register (clear top bits) - (ASSIGN (BYTE-OFFSET (REGISTER (? base)) (MACHINE-CONSTANT (? offset))) - (CHAR->ASCII (REGISTER (? source)))) - (store-byte (standard-source! source) offset (standard-source! base))) - (define-rule statement ;; convert char object to ASCII byte and store it in memory ;; register + byte offset <- contents of register (clear top bits) @@ -433,8 +409,3 @@ MIT in each case. |# (ASSIGN (BYTE-OFFSET (REGISTER (? base)) (MACHINE-CONSTANT (? offset))) (MACHINE-CONSTANT 0)) (store-byte 0 offset (standard-source! base))) - -(define-rule statement - (ASSIGN (BYTE-OFFSET (REGISTER (? base)) (MACHINE-CONSTANT (? offset))) - (CHAR->ASCII (CONSTANT #\NUL))) - (store-byte 0 offset (standard-source! base)))