Re: Re: Re: Re: InstructionAdapter
Eric Bruneton <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <[email protected]> |
Marcin Rzeźnicki wrote: > > > On Sat, Oct 3, 2009 at 3:50 PM, Eric Bruneton <[email protected] > <mailto:[email protected]>> wrote: > > Michael Orlov wrote: > > Hi, > > it seems this class was included in asm 3.2 jar by mistake. > This is why > it is not in SVN. > > > Why isn't it? Seems quite useful. > > > because I was not sure it was useful. Also it is quite redundant > with GeneratorAdapter. But it can be added if users find it useful > > > Hi Eric, > In my opinion it is useful enough to be included. For example I have > been writing library providing coroutine support in Java. One of the > things I needed to take into account was modifying stack maps around > "yield", so I had to know what were types of operands on operand stack. > With help of InstructionAdapter I could override methods like 'dup' and > simulate its effect on stack without need to write long methods with > endless switches. That made my code much more readable (at a little, > almost negligible, cost of performance). Also it seems to be quite > useful if you need to 'slide' local variables. You just need to override > few methods corresponding to instructions which operate on local > variable index (like: store/load/iinc) and leave the rest as it is - > which also makes your code more readable IMHO. So I, for myself, would > really appreciate adding IA back to ASM. ok, I added this class in SVN Eric
message-footer.txt
(text/plain, 238 B)
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws