|
Re: Q: newsub opcodes: msg#00633lang.perl.perl6.internals
At 4:36 PM +0200 10/29/04, Leopold Toetsch wrote: Dan Sugalski <dan@xxxxxxxxx> wrote: Then we should toss the difference and have a single op to access the PMC constant table. We're going to need to do this for real PMC constants, and I don't see any point to have two ways to do the identical same thing. What about the other part: closures - should they be created via "new" Yeah, I think so. They always need to capture a lexical scope, so I think they're going to have to. > While we're at it we should see about adding in an integer constant More like what we do right now with all the other constant types. Integers aren't in a constant table since we just inline them, but the nice thing about a constant table is you can do fixups on it while not touching the actual bytecode, leaving it readonly and mmapped and all that. While I'd prefer to leave integers inlined in general, having an integer section of the constant table that can be accessed when necessary makes the things that need integer fixup easier. And yeah, this imples that our constant table isn't necesasrily constant. I'm OK with that, though. :) A normal IntList Array can do that too. Sure, it could. But we're trying to make sure we provide all the standard facilities in one place so all the different compiler writers don't have to bother. Fixed-up integer constants is a reasonable foundation piece for us to provide. -- Dan --------------------------------------it's like this------------------- Dan Sugalski even samurai dan@xxxxxxxxx have teddy bears and even teddy bears get drunk |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [perl #32208] [PATCH] Register allocation patch - scales better to more symbols: 00633, Bill Coffman |
|---|---|
| Next by Date: | Re: Q: newsub opcodes: 00633, Leopold Toetsch |
| Previous by Thread: | Re: Q: newsub opcodesi: 00633, Leopold Toetsch |
| Next by Thread: | Re: Q: newsub opcodes: 00633, Leopold Toetsch |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |