Clean up VectorEffects::init
commit5dd304c0f87c88971b30254177df553c79938f13
authorbsimmers <bsimmers@fb.com>
Tue, 9 Jul 2013 20:27:23 +0000 (9 13:27 -0700)
committerSara Golemon <sgolemon@fb.com>
Wed, 10 Jul 2013 18:16:53 +0000 (10 11:16 -0700)
tree8728020273598b5ad0a5da6d38fc07f58ef03af3
parenta4c445dbfb9009ec1e2a41b5e89f8bcbe2554f9a
Clean up VectorEffects::init

This is my attempt to clean up and simplify the logic in here
a bit. It also fixes a bug that we were hitting in the region
compiler: setting an element of a StaticStr may promote it to a
CountedStr.
hphp/runtime/vm/jit/ir.h
hphp/runtime/vm/jit/test/vector.cpp
hphp/runtime/vm/jit/type.h
hphp/runtime/vm/jit/vectortranslator.cpp
hphp/test/quick/SetM-str-promotion.php [new file with mode: 0644]
hphp/test/quick/SetM-str-promotion.php.expectf [new file with mode: 0644]