Improve detection on FindLibs
Merge pull request #1381 from PocketRent/find-libs

Improve detection on FindLibs
Put abi-x64.h in X64 namespace

For consistency with abi-arm.h. This doesn't cause too much X64::
line-noise (since files like code-gen-x64.cpp just do `using namespace
X64`), and it shines a light on some spurious platform dependencies,
which are now well-marked for when future ARM codegen stumbles across
them.

Reviewed By: @edwinsmith

Differential Revision: D1104447
Experimental memoization profiler

A small profiler which looks for memoization opprotunities. It's fairly ghetto right now, and dumps its output to stderr, but it's useful as is now so I'm gonna put it in. It's not hooked up anywhere, but if you're interested in how to hook it up, run it, and intrepret the output lemme know.

Reviewed By: @hermanventer

Differential Revision: D1100611
ARM codegen for LdStack and DbgAssertRefCount

This was the top punt. Implementing that just moved a bunch of punting
to DbgAssertRefCount, so I implemented that too.

Reviewed By: @edwinsmith

Differential Revision: D1104532
Remove Mem and Refs flags, because they are dead

These flags aren't used for anything, so it's hard to know
what semantics they're supposed to have.  If we want to add something
similar in the future it will probably be just as easy to reason
through what we want from each opcode instead of trying to use these.

Reviewed By: @jdelong

Differential Revision: D1100600
Fix Phar's directory detection

I screwed up the prefix check. Something that is a directory has to have a `/` between the prefix and the file, not just any character.

Closes #1334

Reviewed By: @JoelMarcey

Differential Revision: D1104260
throw an exception if the DateTime is invalid (take 2)

This reverts commit 14ce743eb5b6f82a411aff93d4129344e3ea02a3.

Reviewed By: @elgenie

Differential Revision: D1073188
Remove dead dtorStubs

They were dead code.  After a brief chat on IRC we agreed
to get rid of them.

Reviewed By: @jdelong

Differential Revision: D1104938
More vestigial bits of Mem and Refs flags

Missed these pieces when killing them

Reviewed By: @jdelong

Differential Revision: D1106119
Remove useHHIR param from TraceletContext::recordRead

It doesn't look like this flag actually has any effects
now... am I missing something?

Reviewed By: @swtaarrs

Differential Revision: D1106158
Add hash_copy()

Missing piece of hash API

Reviewed By: @ptarjan

Differential Revision: D1104737
Fix cmake freetype include directory

Fixed overwriting FREETYPE_INCLUDE_DIRS when freetype located at
non-default path.
Merge pull request #1403 from javer/cmake-freetype

Fix cmake freetype include directory
Check for 32 bit OS first in the CMake file

Otherwise users may waste time installing missing dependencies just to get that error at the end
Merge pull request #1407 from brandonwamboldt/fix-cmake-priority

Check for 32 bit OS first in the CMake file
Fix some minor markdown formatting issues
Merge pull request #1422 from brandonwamboldt/fix-markdown-1

Fix some minor markdown formatting issues
Convert XLS m_pending to priority_queue

Simpler than explicitly doing heap operations on a vector.

Reviewed By: @swtaarrs

Differential Revision: D1106561
fix preg segfault

`php_pcre_replace` isn't guaranteed to return a String or Boolean. Lets just proxy the result back if it isn't a string instead of assuming and segfaulting the async tier.

Reviewed By: @markw65

Differential Revision: D1106633