Don't duplicate the dispatch loop just for RetC profiling
commit0aa1e0143d30378a5f616b3774c327e94e5489eb
authorbsimmers <bsimmers@fb.com>
Tue, 27 May 2014 23:49:30 +0000 (27 16:49 -0700)
committerJoelMarcey <joelm@fb.com>
Fri, 30 May 2014 05:49:53 +0000 (29 22:49 -0700)
tree7a7ed66f437f87b3108107fa29f47d000ad6cd6b
parent209fd8e933d6e1629444bacd9016c45767b52b41
Don't duplicate the dispatch loop just for RetC profiling

Summary: For the interpreter-based warmup profiling, we just call
shouldProfile() in each bytecode's implementation. I see no reason why RetC
should be any different.

Reviewed By: @edwinsmith

Differential Revision: D1350436
hphp/runtime/base/execution-context.h
hphp/runtime/vm/bytecode.cpp