Untangle logging dependencies

Summary: The idea here is to narrow down the amount of information EventLogger receives from its caller so that it doesn't create circular dependencies when trying to log events from most of the code in /src/client/ or /src/server/.

this is a disjoint set of (I presume flaky) tests that failed compared to the last rebase

Reviewed By: @jwatzman

Differential Revision: D1480933
Remove hphp_miarray and hphp_msarray

Reviewed By: @paroski

Differential Revision: D1491174
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
Updated the vfsstream framework tests to 1.3.0

Summary: This takes the percentage of passing test from `86.67%` to `89.04%`.
Closes https://github.com/facebook/hhvm/pull/3378

Reviewed By: @ptarjan

Differential Revision: D1491923
Revert "Enable most optimizations with loops"

Summary: This reverts commit 9f0c92ba1c1e9de9266b896d19874f45be5da325.

Was breaking hphp_dbgo_jit_loops run.

Reviewed By: @bertmaher, @ptarjan

Differential Revision: D1493916
Implement `idx` gdb command

Summary: Much like the corresponding PHP operation, `idx` is intended to take an
arbitrary container and an index and return container[index].  Currently
it only operates on vectors and generic objects, but support for more
containers is coming soon.

Reviewed By: @alexmalyshev

Differential Revision: D1493896
Updated the framework tests to a newer version of yii

Summary: We might as well test against a newer version of Yii since the version we are currently testing against is locked at how it was in February.
Closes https://github.com/facebook/hhvm/pull/3380

Reviewed By: @fredemmott

Differential Revision: D1488853

Pulled By: svcscm
added missing fclose() to free the handle after a test run

Summary: this prevents that the file handle leaks.
Closes https://github.com/facebook/hhvm/pull/3372

Reviewed By: @LiraNuna

Differential Revision: D1481200

Pulled By: svcscm