Make lookupPhpFile and lookupIncludeRoot traffic in Unit* instead of PhpFile*
commit312d873fe51880e17db8e13b5c9f3d7851dd83b5
authorJordan DeLong <jdelong@fb.com>
Sat, 14 Jun 2014 03:19:09 +0000 (13 20:19 -0700)
committerfacebook-github-bot <githubbot@fb.com>
Wed, 18 Jun 2014 21:35:45 +0000 (18 14:35 -0700)
tree81a019aaf706a61c9b5ad4e6604e72f0f2d3ee8f
parentb039f13d20e7853cd6afce579f7aff3e8351580e
Make lookupPhpFile and lookupIncludeRoot traffic in Unit* instead of PhpFile*

Summary: All anyone does with PhpFiles these days is get the Unit* out
of it.  (They used to reference count them, but Mark fixed that a
while back, and now it's a bit redundant.)  Trying to get them out of
the m_evaledFilesMap requires more testing (to ensure the keys are the
same as phpFile->getFileName)---maybe later.

Reviewed By: @mxw

Differential Revision: D1383936
hphp/runtime/base/builtin-functions.cpp
hphp/runtime/base/execution-context.h
hphp/runtime/base/file-repository.cpp
hphp/runtime/base/program-functions.cpp
hphp/runtime/ext/std/ext_std_options.cpp
hphp/runtime/vm/bytecode.cpp
hphp/runtime/vm/debugger-hook.cpp
hphp/runtime/vm/jit/translator.cpp
hphp/runtime/vm/unit.cpp