http://codereview.chromium.org/6538080/diff/5001/src/hydrogen-instructions.h
File src/hydrogen-instructions.h (right):

http://codereview.chromium.org/6538080/diff/5001/src/hydrogen-instructions.h#newcode725
src/hydrogen-instructions.h:725: class HOperandContainer {
On 2011/02/22 15:00:39, Kevin Millikin wrote:
This is essentially the same as the corresponding Lithium container.
Let's
consider adding to utils a generic EmbeddedContainer template class
parameterized over type and length.

I agree - for that I need to factor out the printing functionality from
the lithium-version of the OperandContainer. It seemed like a too big
change to at once, so I'll do it separately.

http://codereview.chromium.org/6538080/diff/5001/src/hydrogen-instructions.h#newcode728
src/hydrogen-instructions.h:728: for (int i = 0; i < NumElements; i++)
elems_[i] = NULL;
On 2011/02/22 15:00:39, Kevin Millikin wrote:
We should be able to zero initialize the elems_ by naming it in the
initializer
list:

HOperandContainer() : elems_() { }

I've started using that style, so there is precedent.

Done. (but somehow I don't trust all compilers to do the right thing...)

http://codereview.chromium.org/6538080/

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

Reply via email to