Changeset 8962


Ignore:
Timestamp:
04/22/05 21:27:32 (16 years ago)
Author:
piso
Message:

Work in progress (tested).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/opcodes.lisp

    r8861 r8962  
    22;;;
    33;;; Copyright (C) 2003-2005 Peter Graves
    4 ;;; $Id: opcodes.lisp,v 1.20 2005-03-31 02:15:06 piso Exp $
     4;;; $Id: opcodes.lisp,v 1.21 2005-04-22 21:27:32 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    248248(defparameter *last-opcode* 207)
    249249
     250(declaim (ftype (function (t) t) opcode-name))
    250251(defun opcode-name (opcode-number)
    251252  (let ((opcode (gethash opcode-number *opcodes*)))
    252253    (and opcode (jvm-opcode-name opcode))))
    253254
     255(declaim (ftype (function (t) t) opcode-number))
    254256(defun opcode-number (opcode-name)
    255   (declare (optimize (speed 3) (safety 0)))
     257  (declare (optimize speed))
    256258  (let ((opcode (gethash (string opcode-name) *opcodes*)))
    257259    (and opcode (jvm-opcode-number opcode))))
    258260
     261(declaim (ftype (function (t) t) opcode-size))
    259262(defun opcode-size (opcode-number)
    260   (declare (optimize speed (safety 0)))
     263  (declare (optimize speed))
    261264  (jvm-opcode-size (svref *opcode-table* opcode-number)))
    262265
     266(declaim (ftype (function (t) t) opcode-stack-effect))
    263267(defun opcode-stack-effect (opcode-number)
    264   (declare (optimize speed (safety 0)))
     268  (declare (optimize speed))
    265269  (jvm-opcode-stack-effect (svref *opcode-table* opcode-number)))
    266270
Note: See TracChangeset for help on using the changeset viewer.