Bug found. The bug is that it's never going to work like this. Traces are discarded on a backtrack, which is safe because all they contain are some actions and the actions to undo them on a backtrack. First performing the actions and then undoing them is equivalent to just discarding the trace. Or it was, until I tried adding an undo to the trace for an action that wasn't in the trace itself. That made discarding the trace incorrect. That approach is not going to fly.
I'll have to add a real backtrack after resetting the stack in the PostitiveSubmatchSuccess, to ensure that the captured registers are cleared. http://codereview.chromium.org/18662 --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
