Re: How to insert instrcutions at the beginning and/or at the end of each basic block?
Eugene Kuleshov <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Message-ID | <CADFjdoVPgmuD1H317=MRmECsVFGYpND8t5QvncukC3qFZihrsw@mail.gmail.com> |
I should recommend to read the AOSD.07 paper about common bytecode transformations with ASM, linked from the ASM project web page. regards, Eugene On Wed, Jul 6, 2011 at 11:32 AM, Leo Romanoff <[email protected]> wrote: > > Hi, > > I'd like to instrument my java classes and insert certain sequences of > instructions at the beginning and/or at the end of each basic block > (specifically, these instructions are supposed to call a static method of > predefined class). > > How this can be done? > > Do I need to use classes from the org.objectweb.asm.tree.analysis for it? I > undrestand how I can obtain frames using something like: > Analyzer a = new Analyzer(new BasicInterpreter()); > ... > a.analyze(owner, mn); > Frame[] frames = a.getFrames(); > > But how do I get from frames to instructuions contained in this basic block, > so that I can insert new ones? > > May be there are some existing examples for this kind of instrumentation > already? > > Thanks for any help, > Leo > -- > View this message in context: http://old.nabble.com/How-to-insert-instrcutions-at-the-beginning-and-or-at-the-end-of-each-basic-block--tp32005881p32005881.html > Sent from the ASM mailing list archive at Nabble.com. > > > > -- > 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 > >
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