[LayoutNG] Final parts of inflow layout as separate method.
This saves 448 (of 2928) bytes per in-flow layout recursion [*]. This part of the code uses a lot of stack, because of quite a few local variables, but also due to a CHECK(), which alone costs 272 bytes [*]. It's the "child_bfc_block_offset.value()" line that contains the CHECK(has_value()). Fun fact: The compiler would have optimized away the CHECK if our code had called has_value() on its own first. [*] Linux 64bit release. Bug: 930637 Change-Id: I3afe43e8d72e5432b3ff9c3c113ce4f8067b873f Reviewed-on: https://chromium-review.googlesource.com/c/1472619 Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#632814}
Showing
Please register or sign in to comment