https://codereview.chromium.org/490173002/diff/40001/src/ast.h
File src/ast.h (right):
https://codereview.chromium.org/490173002/diff/40001/src/ast.h#newcode220
src/ast.h:220: static int GetNextId(int* id) { return ReserveIdRange(id,
1); }
Instead of passing raw int pointers around everywhere, can we
encapsulate that into a small IdGen class? This and the below method
could then naturally move there, and the class would prevent the rest of
the code from messing up the underlying counter variable.
https://codereview.chromium.org/490173002/
--
--
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.