https://codereview.chromium.org/52643002/diff/190001/src/heap-snapshot-generator.cc
File src/heap-snapshot-generator.cc (right):
https://codereview.chromium.org/52643002/diff/190001/src/heap-snapshot-generator.cc#newcode1382
src/heap-snapshot-generator.cc:1382:
Code::Kind2String(shared->code()->kind())));
style: indent 4 characters
https://codereview.chromium.org/52643002/diff/190001/src/heap-snapshot-generator.cc#newcode1476
src/heap-snapshot-generator.cc:1476: case Code::STUB: {
if (code->kind() == Code::STUB) { would be more concise.
https://codereview.chromium.org/52643002/diff/190001/src/heap-snapshot-generator.cc#newcode1772
src/heap-snapshot-generator.cc:1772: &&
all_references_[all_index]->IsCode()) {
This should always be a code. But we can leave this check to be on the
safe side.
https://codereview.chromium.org/52643002/diff/190001/src/heap-snapshot-generator.cc#newcode1774
src/heap-snapshot-generator.cc:1774: builtins->name(all_index -
prev_tag_index));
Can we replace this prev_tag_index with builtin_index and use it here
instead?
...
if (all_references_[all_index]->IsCode()) {
explorer->TagCodeObject(Code::cast(all_references_[all_index]),
builtins->name(builtin_index));
}
builtin_index++;
...
https://codereview.chromium.org/52643002/diff/190001/src/heap-snapshot-generator.cc#newcode1777
src/heap-snapshot-generator.cc:1777: if
(reference_tags_[tags_index].index == all_index) {
As discussed offline this should be
while (reference_tags_[tags_index].index == all_index) ++tags_index;
to work correctly in case there are empty groups. This can be addressed
separately though with a separate test.
https://codereview.chromium.org/52643002/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.