Record correct size for cold and frozen in tc dumps
commit4a85c6e9a9b83df2a48542b6dd1c5c51d7955fd0
authorBrett Simmers <bsimmers@fb.com>
Fri, 9 Dec 2016 08:56:37 +0000 (9 00:56 -0800)
committerHhvm Bot <hhvm-bot-bot@fb.com>
Mon, 12 Dec 2016 21:09:19 +0000 (12 13:09 -0800)
tree1f7ae35d93e2919b25b769055344e7aefb853473
parentf24b3bf71c28ca215a5e6e6d909889cf307d8fbe
Record correct size for cold and frozen in tc dumps

Summary:
coldSize() and frozenSize() include the 4 bytes for the size, stored
before the start of the actual code. Use coldCodeSize() and frozenCodeSize()
instead.

Reviewed By: ottoni

Differential Revision: D4299537

fbshipit-source-id: 52ab546e1b7022a4055482ee77142ab2635e6d7d
hphp/runtime/vm/jit/tc-region.cpp
hphp/tools/tc-print/offline-x86-code.cpp
hphp/tools/tc-print/tc-print.cpp
hphp/tools/tc-print/tc-print.h