Show
Ignore:
Timestamp:
11/05/05 15:06:37 (3 years ago)
Author:
autrijus
Message:

* Repair PIR codegen; use "new .Continuation" instead of

the old style "newsub" op. Suggested by Leo.

Files:
1 modified

Legend:

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

    r7579 r7851  
    8989        [begL, sndL, retL, endL] <- genLabel ["thunkBegin", "thunkAgain", "thunkReturn", "thunkEnd"] 
    9090        this    <- genPMC "block" 
    91         tellIns $ "newsub" .- [reg this, bare ".Continuation", bare begL] 
     91        tellIns $ InsNew (reg this) Continuation 
     92        tellIns $ "set_addr" .- [reg this, bare begL] 
    9293        tellIns $ "goto" .- [bare endL] 
    9394        tellLabel begL 
     
    109110        [begL, endL] <- genLabel ["blockBegin", "blockEnd"] 
    110111        this    <- genPMC "block" 
    111         tellIns $ "newsub" .- [reg this, bare ".Closure", bare begL] 
     112        tellIns $ InsNew (reg this) Closure 
     113        tellIns $ "set_addr" .- [reg this, bare begL] 
    112114        tellIns $ "goto" .- [bare endL] 
    113115        tellLabel begL