BaseL instructions and corresponding tests
commit1609bc54ead2e33ca6326fe970d023e454813809
authorJames Wu <jjwu@fb.com>
Fri, 10 Sep 2021 22:51:51 +0000 (10 15:51 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 10 Sep 2021 23:24:06 +0000 (10 16:24 -0700)
tree86cf7be574a34eaf336ed1e6f62b0fbd2af8d7c4
parent1a0355ec2ca3957eb04ddef8e83c28313caf7c0a
BaseL instructions and corresponding tests

Summary:
This implements BaseL immediates for readonly. See corresponding tests for all property assignments.

After this diff, all nonlist, non inout assignments for readonly should be working correctly.

Reviewed By: oulgen

Differential Revision: D30768270

fbshipit-source-id: 89ab1a45aaa613c42d3c6b748aac451945180e8c
18 files changed:
hphp/hack/src/hhbc/hhbc_by_ref/emit_expression.rs
hphp/hack/src/hhbc/hhbc_by_ref/emit_statement.rs
hphp/hack/src/hhbc/hhbc_by_ref/instruction_sequence.rs
hphp/hack/src/parser/readonly_check.rs
hphp/test/slow/readonly/class_vec_array_assign_ok.php [new file with mode: 0644]
hphp/test/slow/readonly/class_vec_array_assign_ok.php.expectf [new file with mode: 0644]
hphp/test/slow/readonly/class_vector_array_assign.php [new file with mode: 0644]
hphp/test/slow/readonly/class_vector_array_assign.php.expectf [new file with mode: 0644]
hphp/test/slow/readonly/local_variable_dict_ok.php [new file with mode: 0644]
hphp/test/slow/readonly/local_variable_dict_ok.php.expectf [new file with mode: 0644]
hphp/test/slow/readonly/local_variable_vec_ok.php [new file with mode: 0644]
hphp/test/slow/readonly/local_variable_vec_ok.php.expectf [new file with mode: 0644]
hphp/test/slow/readonly/local_variable_vector.php [new file with mode: 0644]
hphp/test/slow/readonly/local_variable_vector.php.expectf [new file with mode: 0644]
hphp/test/slow/readonly/prop_vec_ok.php [new file with mode: 0644]
hphp/test/slow/readonly/prop_vec_ok.php.expectf [new file with mode: 0644]
hphp/test/slow/readonly/prop_vec_readonly_error.php [new file with mode: 0644]
hphp/test/slow/readonly/prop_vec_readonly_error.php.expectf [new file with mode: 0644]