Show
Ignore:
Timestamp:
11/05/05 20:23:35 (3 years ago)
Author:
autrijus
Message:

* Parrot 0.3.1 doesn't allow set_addr for Closure, so use

newclosure instead.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/CodeGen/PIR.hs

    r7851 r7853  
    110110        [begL, endL] <- genLabel ["blockBegin", "blockEnd"] 
    111111        this    <- genPMC "block" 
    112         tellIns $ InsNew (reg this) Closure 
    113         tellIns $ "set_addr" .- [reg this, bare begL] 
     112        let begP = begL ++ "_C" 
     113        tellIns $ InsConst (VAR begP) Sub (lit begL) 
     114        tellIns $ reg this <-- "newclosure" $ [bare begP] 
    114115        tellIns $ "goto" .- [bare endL] 
    115116        tellLabel begL