LGTM. I don't think the indexed code with two variables is as optimal, because there is also an addition to the index inside the expressions. If the compiler
knew that *length was constant, it could optimize buffer[*length + j] to
a memory operand, but I doubt it does. We know *length is constant during the
loop, so we can do it.

http://codereview.chromium.org/1865001/show

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to