Updated the composer framework tests

Summary: Closes https://github.com/facebook/hhvm/pull/3371

Reviewed By: @ptarjan

Differential Revision: D1487076
Added predis to the framework test suite

Summary: This pull adds predis 1.0.0 to the framework test suite. We're excluding all the tests that are dependent on redis actually running on the server.
Closes https://github.com/facebook/hhvm/pull/3384

Reviewed By: @fredemmott

Differential Revision: D1488845

Pulled By: svcscm
Added phpunit-mock-objects to the framework tests

Summary: Since we're testing phpunit and mockery, it only makes sense to test this library too.
Closes https://github.com/facebook/hhvm/pull/3402

Reviewed By: @ptarjan

Differential Revision: D1487058
Minor refactoring/cleanup in gdb tools

Summary: Nothing to see here.

Reviewed By: @edwinsmith

Differential Revision: D1491456
Add some lookup commands for GDB

Summary: Create two new GDB prefix commands:
  - lookup func <FuncId>
  - lookup litstr <Id> [Unit*]

They lookup the expected object and calls the print command on them (so
that $ and $$ and ${#} work as expected).

Also add a `unit' command which sets the "current Unit", used by various
commands (like `lookup litstr' and `hhx').

Finally, improve printing in `hhx':
  - literal strings for SA immediates instead of IDs
  - print short ints as ints only, instead of both ints and chars
  - remove the <> around immediates
  - make output format more like `x'

Reviewed By: @edwinsmith

Differential Revision: D1491458
Port walkstk into GDB Python bindings

Summary: This is a hybrid of @markw65's `walkstk` and `walkstk2` commands.  It
walks the $rbp chain, printing out a backtrace including both native and
VM frames and functions.  The output format is briefer, and does not
contain the instruction found at $rip.

Reviewed By: @markw65

Differential Revision: D1491681
Updated reactphp framework tests to 0.4.1

Summary: We're still at `100%` passing tests.

Just a heads up that when 0.5.0 is released, we will have trouble testing it in this way since most of the code has been removed from the repo and moved into separate component repos so the test suite in the main repo no longer hits most of the code.
Closes https://github.com/facebook/hhvm/pull/3377

Reviewed By: @ptarjan

Differential Revision: D1488870
Rework the code relocation api

Summary: Cleanup to make it easier and more efficient to relocate multiple blocks simultaneously. For N tracelets of length L, reduces time from O(N*N*L.log(L)) to O(N.L.log(N.L))

Reviewed By: @edwinsmith

Differential Revision: D1491229
Re-record assetic

Summary: I will bisect why this changed

Reviewed By: @fredemmott

Differential Revision: D1492394
Add some comments to FrameState.

Summary: No functionality change.

Reviewed By: @bertmaher

Differential Revision: D1492234
Enable most optimizations with loops

Summary: Currently disables refcount-opts and reoptimize for regions that have
loops. This is controlled by a new field in IRBuilder, which should go
away once those two passes are fixed.

Reviewed By: @ottoni

Differential Revision: D1484156
Add test for gmp ignoring base for hex-like strings

Summary: Found by intermitently-failing mediawiki test

Reviewed By: @LiraNuna

Differential Revision: D1488998
Updated the drupal framework tests to 8.0-alpha13

Summary: This uncovers one error:
```
1) Drupal\Tests\Core\Config\Entity\ConfigEntityBaseUnitTest::testSort

RUN TEST FILE:  cd /root/hhvm/hphp/test/frameworks/framework_downloads/drupal/core && /root/hhvm/hphp/test/frameworks/../../hhvm/hhvm -v Repo.Local.Mode=-- -v Repo.Central.Path=/tmp/framework-testDgjSb2 --config /root/hhvm/hphp/test/frameworks/php.ini -c /root/hhvm/hphp/test/frameworks/.generated.php.ini /root/hhvm/hphp/test/frameworks/vendor/bin/phpunit --debug  -c /root/hhvm/hphp/test/frameworks/framework_downloads/drupal/core/phpunit.xml.dist --filter 'Drupal\\Tests\\Core\\Config\\Entity\\ConfigEntityBaseUnitTest::testSort'

Failed asserting that two variables reference the same object.

/root/hhvm/hphp/test/frameworks/framework_downloads/drupal/core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php:432
/root/hhvm/hphp/test/frameworks/vendor/phpunit/phpunit/src/TextUI/Command.php:179
/root/hhvm/hphp/test/frameworks/vendor/phpunit/phpunit/src/TextUI/Command.php:132
```
Closes https://github.com/facebook/hhvm/pull/3373

Reviewed By: @ptarjan

Differential Revision: D1487081