I also split up the monstrous RecordWriteStub::Generate function into 6
parts to
make it a little easier to understand and renamed the class responsible for
register allocation in the stub to RegisterAllocation.
http://codereview.chromium.org/6824078/diff/12010/src/heap.cc
File src/heap.cc (right):
http://codereview.chromium.org/6824078/diff/12010/src/heap.cc#newcode518
src/heap.cc:518: StackGuard::Continue(GC_REQUEST);
On 2011/04/16 17:50:36, Vyacheslav Egorov wrote:
Move to IncrementalMarking::Finalize
Done.
http://codereview.chromium.org/6824078/diff/12010/src/heap.h
File src/heap.h (right):
http://codereview.chromium.org/6824078/diff/12010/src/heap.h#newcode815
src/heap.h:815: scan_on_scavenge_pages_++;
On 2011/04/16 17:50:36, Vyacheslav Egorov wrote:
++ -> --
oops.
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#newcode6548
src/ia32/code-stubs-ia32.cc:6548: void SaveTheRest() {
On 2011/04/16 17:50:36, Vyacheslav Egorov wrote:
When calling into C you need to save only eax, ecx and edx. All other
registers
are callee save.
Also SaveTheRest does not tell much. Maybe rename it into
SaveVolatileRegisters,
SaveCallerSaveRegisters etc.
Done.
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/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.
http://codereview.chromium.org/6824078/diff/12010/src/ia32/code-stubs-ia32.cc#newcode6668
src/ia32/code-stubs-ia32.cc:6668: __ InOldSpaceIsBlack(regs.object(),
regs.scratch0(), regs.scratch1(),
On 2011/04/16 17:50:36, Vyacheslav Egorov wrote:
argument per line
Done.
http://codereview.chromium.org/6824078/diff/12010/src/ia32/code-stubs-ia32.cc#newcode6680
src/ia32/code-stubs-ia32.cc:6680: __ InOldSpaceIsBlack(regs.object(),
regs.scratch0(), regs.scratch1(),
On 2011/04/16 17:50:36, Vyacheslav Egorov wrote:
argument per line
Done.
http://codereview.chromium.org/6824078/diff/12010/src/ia32/code-stubs-ia32.cc#newcode6696
src/ia32/code-stubs-ia32.cc:6696: __ MarkBlack(regs.scratch0(), // The
value.
On 2011/04/16 17:50:36, Vyacheslav Egorov wrote:
MarkBlack is a confusing name for the function that does not mark all
objects
black.
Changed to EnsureNotWhite
http://codereview.chromium.org/6824078/diff/12010/src/ia32/code-stubs-ia32.cc#newcode6718
src/ia32/code-stubs-ia32.cc:6718:
ExternalReference::incremental_marking_record_write_function(), 2);
On 2011/04/16 17:50:36, Vyacheslav Egorov wrote:
you can have stripped version of C function that does not check
already checked
conditions
TODO added for this
http://codereview.chromium.org/6824078/diff/12010/src/ia32/codegen-ia32.cc
File src/ia32/codegen-ia32.cc (right):
http://codereview.chromium.org/6824078/diff/12010/src/ia32/codegen-ia32.cc#newcode7844
src/ia32/codegen-ia32.cc:7844: __ int3();
On 2011/04/16 17:50:36, Vyacheslav Egorov wrote:
???
I don't want to bother fixing this zombie code.
http://codereview.chromium.org/6824078/diff/12010/src/ia32/full-codegen-ia32.cc
File src/ia32/full-codegen-ia32.cc (right):
http://codereview.chromium.org/6824078/diff/12010/src/ia32/full-codegen-ia32.cc#newcode3105
src/ia32/full-codegen-ia32.cc:3105: __ HasScanOnScavenge(index_1, temp,
&no_remembered_set);
On 2011/04/16 17:50:36, Vyacheslav Egorov wrote:
you can't always go from index_1 to the page because it can be
pointing into
large object.
Good catch.
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/16 17:50:36, Vyacheslav Egorov wrote:
What about using bt based code for this operations?
I don't think it's a win.
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/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.
http://codereview.chromium.org/6824078/diff/12010/src/ia32/macro-assembler-ia32-inl.h#newcode197
src/ia32/macro-assembler-ia32-inl.h:197: shl_cl(mask_scratch);
On 2011/04/16 17:50:36, Vyacheslav Egorov wrote:
code for cell address and mask computation can be extracted and shared
with
HasColour
Done.
http://codereview.chromium.org/6824078/diff/12010/src/ia32/macro-assembler-ia32.cc
File src/ia32/macro-assembler-ia32.cc (right):
http://codereview.chromium.org/6824078/diff/12010/src/ia32/macro-assembler-ia32.cc#newcode164
src/ia32/macro-assembler-ia32.cc:164: // of the object, so so offset
must be a multiple of kPointerSize.
On 2011/04/16 17:50:36, Vyacheslav Egorov wrote:
so so -> so
Done.
http://codereview.chromium.org/6824078/diff/12010/src/incremental-marking.h
File src/incremental-marking.h (right):
http://codereview.chromium.org/6824078/diff/12010/src/incremental-marking.h#newcode132
src/incremental-marking.h:132: static const char* kImpossibleBitPattern;
On 2011/04/16 17:50:36, Vyacheslav Egorov wrote:
Why have this strings? They are used only in assertions. Looks a bit
dirty.
Yes they are for assertions because I suspect we may be experimenting
with the values. Can't write them in binary because c doesn't have
binary literals and the endianism is in any case backwards since the
second bit is more significant than the first.
http://codereview.chromium.org/6824078/diff/12010/src/mark-compact.h
File src/mark-compact.h (right):
http://codereview.chromium.org/6824078/diff/12010/src/mark-compact.h#newcode78
src/mark-compact.h:78:
On 2011/04/16 17:50:36, Vyacheslav Egorov wrote:
remove empty line
Done.
http://codereview.chromium.org/6824078/
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev