Changeset 656


Ignore:
Timestamp:
Mar 17, 2004, 7:24:39 AM (21 years ago)
Author:
Gary Byers
Message:

%CATCH-TOP is always in the same place.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-0/PPC/ppc-def.lisp

    r207 r656  
    246246(defppclapfunction %catch-top ((tcr arg_z))
    247247  (check-nargs 1)
    248   (cmp cr0 tcr rcontext)
    249   (bne cr0 @not-current)
    250 
    251   ; tcr = current-tcr
    252   (lwz arg_z ppc32::tcr.catch-top rcontext)
     248  (lwz arg_z ppc32::tcr.catch-top tcr)
    253249  (cmpwi cr0 arg_z 0)
    254250  (bne @ret)
    255251  (li arg_z ppc32::nil-value)
    256252 @ret
    257   (blr)
    258 
    259 @not-current
    260   (lwz imm0 ppc32::tcr.ts-area tcr)
    261   (lwz imm0 ppc32::area.active imm0)
    262   (la arg_z (+ 8 ppc32::fulltag-misc) imm0)
    263   (blr))
     253  (blr))
     254
     255(defppclapfunction %catch-tsp ((catch arg_z))
     256  (check-nargs 1)
     257  (la arg_z (- (+ target::fulltag-misc
     258                                 (ash 1 (1+ target::word-shift)))) arg_z)
     259  (blr))
     260
    264261
    265262
Note: See TracChangeset for help on using the changeset viewer.