X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fmips%2Fsystem.lisp;h=b31d80d9d661f0b6acafc8b97164287990ed370a;hb=4378b6ab369ee101b5c4625f24901561ad4899b8;hp=087e6eaaeeba1def9bb565983cdbdbb0a030e921;hpb=52cfe54802db8736f1f4e2b67764c43bba9b78b3;p=sbcl.git diff --git a/src/compiler/mips/system.lisp b/src/compiler/mips/system.lisp index 087e6ea..b31d80d 100644 --- a/src/compiler/mips/system.lisp +++ b/src/compiler/mips/system.lisp @@ -1,32 +1,15 @@ -(in-package "SB!VM") - - -;;;; Random pointer comparison VOPs +;;;; MIPS VM definitions of various system hacking operations -(define-vop (pointer-compare) - (:args (x :scs (sap-reg)) - (y :scs (sap-reg))) - (:arg-types system-area-pointer system-area-pointer) - (:temporary (:scs (non-descriptor-reg)) temp) - (:conditional) - (:info target not-p) - (:policy :fast-safe) - (:note "inline comparison") - (:variant-vars condition) - (:generator 3 - (three-way-comparison x y condition :unsigned not-p target temp))) - -#+nil -(macrolet ((frob (name cond) - `(progn - (def-primitive-translator ,name (x y) `(,',name ,x ,y)) - (defknown ,name (t t) boolean (movable foldable flushable)) - (define-vop (,name pointer-compare) - (:translate ,name) - (:variant ,cond))))) - (frob pointer< :lt) - (frob pointer> :gt)) +;;;; This software is part of the SBCL system. See the README file for +;;;; more information. +;;;; +;;;; This software is derived from the CMU CL system, which was +;;;; written at Carnegie Mellon University and released into the +;;;; public domain. The software is in the public domain and is +;;;; provided with absolutely no warranty. See the COPYING and CREDITS +;;;; files for more information. +(in-package "SB!VM") ;;;; Type frobbing VOPs @@ -240,12 +223,12 @@ (:policy :fast-safe) (:translate sb!unix::receive-pending-interrupt) (:generator 1 - (inst break pending-interrupt-trap))) + (inst break 0 pending-interrupt-trap))) (define-vop (halt) (:generator 1 - (inst break halt-trap))) + (inst break 0 halt-trap))) ;;;; Dynamic vop count collection support