On Wed, Jun 25, 2025 at 12:06 PM Sam Parker-Haynes <[email protected]> wrote:
>
> Hi!
>
> I'm looking at the backend and the terminology used for loops is really 
> confusing me. AFAICT, in the backend there may be two special blocks for 
> loops but I can't say it makes any sense to me! Here's the code that is 
> boggling my mind:
>
>       if (block->IsLoopHeader()) {
>         buffer << " (loop up to " << block->loop_end().ToInt() << ")";
>       }
>
> This seems to suggest that block->loop_end() is the first block inside the 
> loop, is this true?! If so, I hope it's clear why this is confusing :)
>
> cheers,
> sam

Nodes are visited in reverse post-order. Is that the source of the confusion?

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/v8-dev/CAHQurc_kwyaFA1TMzuX2c9_wq2EeWfUhbbNTyv083WxD4m1ZCA%40mail.gmail.com.

Reply via email to