Makes <<__Memoize>> work with static methods
commit7b7fe4c408021c789f4f940642722625f4eebdda
authorPhil Saltzman <psaltzman@fb.com>
Mon, 18 Aug 2014 22:06:32 +0000 (18 15:06 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Mon, 18 Aug 2014 22:30:25 +0000 (18 15:30 -0700)
treefeffa8512c7b3003954258b85f1ff879a1dd97c0
parentde757668573d722a6d3944a2b1829cf04ebc9d06
Makes <<__Memoize>> work with static methods

Summary: Next will be top level methods. The tests feel a little thin here, but I think the main memoization tests cover most of what needs to be tested so I just added tests to show that it works with a static method. Let me know what you think I'm missing

Reviewed By: @jano

Differential Revision: D1502068
hphp/compiler/analysis/emitter.cpp
hphp/compiler/analysis/emitter.h
hphp/test/quick/memoize_static.php
hphp/test/quick/memoize_static.php.expect [new file with mode: 0644]
hphp/test/quick/memoize_static.php.expectf [deleted file]