|
[CVS ci] PMC constants 2: msg#00647lang.perl.perl6.internals
Ok, next is committed. The existing constant syntax is extended: .const <pmc_enum> var_or_ident = "initstring" Currently only subroutine constants are supported, e.g. .const .Sub $P0 = "foo" .const .Sub func = "foo" The actual opcode emitted is "sub_p_pc" with the index of the subroutine constant as 2nd argument. This works of course only for subroutines that are in the same file. Subs in loaded bytecode have still to be located with the "find_global" opcodes. This PMC constant syntax is available in PASM mode too. leo |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Q: newsub opcodes: 00647, Leopold Toetsch |
|---|---|
| Next by Date: | Re: Mostly a Perl task for the interested: 00647, Jeff Clites |
| Previous by Thread: | [CVS ci] PMC constantsi: 00647, Leopold Toetsch |
| Next by Thread: | [perl #32239] [PATCH] Parrot m4 0.0.9: 00647, via RT |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |