memcpy needs to be in .text.memcpy

Summary: It was in .text, so the linker script couldn't place it,
and it was ending up outside the map-huge portion of the text section
of the binary.

Reviewed By: @ottoni

Differential Revision: D1744089

Signature: t1:1744089:1418774491:2dd29f46100159efed7a8fca64165c284a14f97e
Simple speedup for is_dir

Summary: is_dir was calling realpath before calling stat. The only time
it needed that was so that prefix-matching on the AllowedDirectories
would work. Skip it unless we're in SafeFileMode (we could probably
be smarter here; have a version of File::TranslatePath that checks the
path against the allowed directories, then calls realpath and tries
again if it fails).

It also tried to lookup the directory in the StaticContentsCache; but
that only contains files, so pass false for useFileCache.

Reviewed By: @bertmaher

Differential Revision: D1743945
Don't use orqim on a 16-bit value

Summary: More code that was little-endian specific and getting messed up by the
llvm optimizer. In this case it was combining a write to an ObjectData's
o_attribute and m_count fields, turning the count into garbage and causing the
object to leak. I did some history digging and as far as I can tell, the only
reason this wasn't an orwim to begin with was because it was copied from some
TranslatorX64 code I wrote back in the dark days of the assembler, when we
didn't have a 16-bit version of or.

Reviewed By: @jasone

Differential Revision: D1742340
Fix some repo-mode llvm tests

Summary: - trflags is sometimes nonzero for fallback, so properly implement it
- The comment in ratToAssertType about already knowing Cell and Ref in the jit
   is only true for stack slots, not locals. Losing this type information was
   giving us a Gen base for a minstr instruction, upsetting one of the
   assertions. It was llvm-only because we change the length and shape of
   tracelets by forcing a break after FCall, and this kind of bug tends to
   depend on that.

Reviewed By: @jasone

Differential Revision: D1742487
Tweak comments on typing definitions.

Summary: union type -> intersection type

Wrap columns to 80

Reviewed By: @jwatzman

Differential Revision: D1738912

Signature: t1:1738912:1418781582:e43590a350f6ae9a020af89cf004377070f986d4
Remove dead JmpInstanceOfBitmask opcodes

Reviewed By: @mhahnenberg

Differential Revision: D1744510

Signature: t1:1744510:1418779742:fa206fa08a82f1700a0e01848bbe658ef70e7a03
Use make_shared<T> instead of shared_ptr(new T()) in a few places

Summary: It's marginally more efficient, so might as well encourage it.

Reviewed By: @swtaarrs

Differential Revision: D1744798

Signature: t1:1744798:1418813788:a1c2f67eefe87c0a8ef5ecc73031742b0cd40ed0
Add nameof command to gdb

Summary: I got tired of getting the names of things manually.

Also do a smide of cleanup.

Reviewed By: @markw65

Differential Revision: D1743369

Signature: t1:1743369:1418765252:889f9e8d7c101a87846a5540cfca69cdbd394401
Clean up TypedValue printing in gdb

Summary: Made it prettier and cleaner.

Reviewed By: @markw65

Differential Revision: D1743377

Signature: t1:1743377:1418837469:c1a30f2aef6edc75039aee2728d884ff76ba1174
Refactor gdb.execute('print (%s)%s' % (...)) as gdbprint

Reviewed By: @markw65

Differential Revision: D1743389

Signature: t1:1743389:1418837307:f0ec25b21e34bd32cf453d1fd159b5f988b83d5d
Add deref command

Summary: I'm tired of pointer wrappers.

Reviewed By: @markw65

Differential Revision: D1743504

Signature: t1:1743504:1418837230:c224b5c95a1129cf97c2bb6ac90b40372dc09d18
Punch lint in the face

Reviewed By: @markw65

Differential Revision: D1743509

Signature: t1:1743509:1418780014:29155d5ad2decff552d44e435a1874549fa673c1
Add convenience functions for `lookup func' and `idx'

Reviewed By: @markw65

Differential Revision: D1743521
Add a README

Reviewed By: @JoelMarcey

Differential Revision: D1743773

Signature: t1:1743773:1418770937:307e2cc5f54e322cffea884a6ddc1a0cc7bcd473
Make HPHP::opcodeToName(HPHP::Op)::namesArr static

Summary: This lets us find the symbol in GDB.

Reviewed By: @edwinsmith

Differential Revision: D1743854

Signature: t1:1743854:1418825809:0fd888994356968e3df30870e4cd6a38bf3ede28
Travis-CI support OS X and GCC-4.8
Setting dependency environment in cmake