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#newcode1476
src/heap-snapshot-generator.cc:1476: case Code::STUB: {
On 2013/10/31 14:24:02, Yury Semikhatsky wrote:
if (code->kind() == Code::STUB) { would be more concise.

... and make the function overloaded ;-)

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));
On 2013/10/31 14:24:02, Yury Semikhatsky wrote:
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++;
...

I'd event move the increment inside if

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.

Reply via email to