On 23 Set, 15:28, "Kasper Lund" <[EMAIL PROTECTED]> wrote:
> LGTM even though I hope the way the peephole stuff is written could be
> improved. It's growing a lot - it would be nice with some
> abstractions...
Hi Kasper, I'm a student of the DAIMI course.

At the compilation course, the solution to this is to write peephole
patterns with a separate language altogether (which just allows
embedding assembler patterns), then load them in the compiler (they
load them at runtime):
The idea is described here (it has a lot of unrelated stuff also):
http://www.daimi.au.dk/dOvs/slides/optimization.pdf

To make it efficient enough for using it at runtime, one would
probably need to write a tool to compile the pattern list to a DFA,
otherwise it would be too slow.

Could it be interesting some variation of this idea?
--
Paolo Giosué Giarrusso
http://www.user-mode-linux.org/~blaisorblade/
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to