Skip to content
Snippets Groups Projects
Commit 175d4682 authored by wlott's avatar wlott
Browse files

Make make-array-header translate make-array-header now that it is a known

function.
parent e194e97a
No related branches found
No related tags found
No related merge requests found
;;; -*- Package: C; Log: C.Log -*- ;;; -*- Package: MIPS -*-
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; This code was written as part of the Spice Lisp project at ;;; This code was written as part of the Spice Lisp project at
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC). ;;; Scott Fahlman (FAHLMAN@CMUC).
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/array.lisp,v 1.28 1990/11/03 03:25:14 wlott Exp $ ;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/array.lisp,v 1.29 1990/11/10 18:43:30 wlott Exp $
;;; ;;;
;;; This file contains the MIPS definitions for array operations. ;;; This file contains the MIPS definitions for array operations.
;;; ;;;
...@@ -19,12 +19,15 @@ ...@@ -19,12 +19,15 @@
;;;; Allocator for the array header. ;;;; Allocator for the array header.
(define-vop (make-array-header) (define-vop (make-array-header)
(:args (type :scs (any-reg descriptor-reg)) (:policy :fast-safe)
(rank :scs (any-reg descriptor-reg))) (:translate make-array-header)
(:args (type :scs (any-reg))
(rank :scs (any-reg)))
(:arg-types positive-fixnum positive-fixnum)
(:temporary (:scs (descriptor-reg) :to (:result 0) :target result) header) (:temporary (:scs (descriptor-reg) :to (:result 0) :target result) header)
(:temporary (:scs (non-descriptor-reg) :type random) ndescr) (:temporary (:scs (non-descriptor-reg) :type random) ndescr)
(:results (result :scs (descriptor-reg))) (:results (result :scs (descriptor-reg)))
(:generator 0 (:generator 25
(pseudo-atomic (ndescr) (pseudo-atomic (ndescr)
(inst addu header alloc-tn vm:other-pointer-type) (inst addu header alloc-tn vm:other-pointer-type)
(inst addu alloc-tn (inst addu alloc-tn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment