https://codereview.chromium.org/294943009/diff/50001/src/isolate.cc
File src/isolate.cc (right):
https://codereview.chromium.org/294943009/diff/50001/src/isolate.cc#newcode2294
src/isolate.cc:2294: goto done;
No need to worry, the goto is long gone. I added it before the break was
even possible, as jochen had asked about it on the initial path (and I'd
said "hmm, I could use a goto, but I don't see any in V8...").
Sounds like y'all have an email filter that flags goto :)
On 2014/05/22 13:35:07, danno-g wrote:
DBC: Please, no goto. Either the explicit return or the simple break
is much
preferable to me over the goto.
On 2014/05/22 11:49:25, adamk wrote:
> On 2014/05/22 11:27:59, Michael Starzinger wrote:
> > Pretty please with a cherry on top, no gotos ... shouldn't a
simple break of
> the
> > for-loop actually implicitly kick you out of the while-loop as
well?
>
> Hmm, that seems a bit fragile to me, if someone changes the while
loop later
we
> might get into trouble. But I'm happy to get rid of the goto.
>
> Instead I've switched to using the SuppressMicrotaskExecutionScope
already
> written as part of the V8 API. It's a little weird to use something
from the
API
> here but I feel weirder writing the same code again just to avoid a
few
> reinterpret_casts. Let me know what you think.
https://codereview.chromium.org/294943009/
--
--
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].
For more options, visit https://groups.google.com/d/optout.