[parrot/parrot] a613ae: PAST::Compiler - fix tempregs

noreply at github.com noreply at github.com
Sat Aug 20 23:15:39 UTC 2011

  Branch: refs/heads/nqp_pct
  Home:   https://github.com/parrot/parrot

  Commit: a613ae8c99f3c56bcd794b2dd5e6bac7b0003bea
  Author: Brian Gernhardt <brian.gernhardt at mail.rit.edu>
  Date:   2011-08-20 (Sat, 20 Aug 2011)

  Changed paths:
    M compilers/pct/src/PAST/Compiler.pir
  M compilers/pct/src/PAST/Compiler.pm

  Log Message:
  PAST::Compiler - fix tempregs

1) I stored the "constant" TEMPREG_BASE in the tempreg frames.  This
meant that there was only one tempreg counter for all types that never
decremented.  Fix by cloning the Integer PMC.

2) The PIR code for tempreg() used the value before incrementing to
generate the register value.  Do this in NQP too, so that the
generated PIR is identical.

More information about the parrot-commits mailing list