LGTM (if it does not crash)
http://codereview.chromium.org/6824078/diff/12010/src/ia32/code-stubs-ia32.cc File src/ia32/code-stubs-ia32.cc (right): http://codereview.chromium.org/6824078/diff/12010/src/ia32/code-stubs-ia32.cc#newcode6659 src/ia32/code-stubs-ia32.cc:6659: __ HasScanOnScavenge(object_, value_, &scan_on_scavenge); On 2011/04/23 17:00:11, Erik Corry wrote:
On 2011/04/16 17:50:36, Vyacheslav Egorov wrote: > I think it is uber confusing that sometimes regs.object() is used
and
sometimes > object_ is used. Unify?
No they are not always the same register.
If they are not the same it does not matter in this particular case, does it? As far as I see from the code they should contain the same value at this point. http://codereview.chromium.org/6824078/diff/12010/src/ia32/macro-assembler-ia32-inl.h File src/ia32/macro-assembler-ia32-inl.h (right): http://codereview.chromium.org/6824078/diff/12010/src/ia32/macro-assembler-ia32-inl.h#newcode120 src/ia32/macro-assembler-ia32-inl.h:120: shl_cl(mask_scratch); On 2011/04/23 17:00:11, Erik Corry wrote:
On 2011/04/16 17:50:36, Vyacheslav Egorov wrote: > What about using bt based code for this operations?
I don't think it's a win.
I did performance measurements. I should some irrelevant improvements and some minor regressions. Overall it was performance neutral but the code was smaller. I don't have any strong opinion about this though. http://codereview.chromium.org/6824078/diff/12010/src/ia32/macro-assembler-ia32-inl.h#newcode125 src/ia32/macro-assembler-ia32-inl.h:125: j(zero, &word_boundary); On 2011/04/23 17:00:11, Erik Corry wrote:
On 2011/04/16 17:50:36, Vyacheslav Egorov wrote: > shl(mask_scratch, 1); > j(carry, &word_boundary); > > ?
At least on the p4, add is faster than shift, so that would appear to
be a
deoptimization.
Ok http://codereview.chromium.org/6824078/diff/19007/src/ia32/code-stubs-ia32.h File src/ia32/code-stubs-ia32.h (right): http://codereview.chromium.org/6824078/diff/19007/src/ia32/code-stubs-ia32.h#newcode521 src/ia32/code-stubs-ia32.h:521: regs_(NULL) { you can just make RegisterAllocation a member of RecordWriteStub instead of storing pointer to a stack allocated value. the same with slow case label. http://codereview.chromium.org/6824078/ -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
