On 2009/05/22 11:07:25, Kasper Lund wrote:
> LGTM, but it would be nice to simplify AddAll and make sure that
repeated access
> to stuff like other.length_ is fast. Maybe you should extend
test-list.cc to
> make sure AddAll works as intended?

AddAll has been simplified and the memcpy part has been removed.  It
seems to make no performance difference.  Simple test case added to
test-list.

> http://codereview.chromium.org/115705/diff/1003/1006
> File src/list-inl.h (right):

> http://codereview.chromium.org/115705/diff/1003/1006#newcode49
> Line 49: int result_length = length_ + other.length_;
> There's a mixture of other.length() and other.length_ access in this
function.

Fixed.

> http://codereview.chromium.org/115705/diff/1003/1007
> File src/virtual-frame.cc (right):

> http://codereview.chromium.org/115705/diff/1003/1007#newcode40
> Line 40: : elements_(original->elements_.capacity()),
> Maybe length would be enough here?

Fixed.

http://codereview.chromium.org/115705

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

Reply via email to