avoid cloning scope in emit_body
commitfd743b00662d0a9578286d71e1e4dbd0c0cc9f58
authorSteve Cao <shiqicao@fb.com>
Thu, 9 Apr 2020 02:38:04 +0000 (8 19:38 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 9 Apr 2020 02:44:34 +0000 (8 19:44 -0700)
tree49a462a71ffe87cd9cfc41aabf049fb2bf4f9141
parent383bb4f6ee3e9ec127ea43b4f82676bd031ab126
avoid cloning scope in emit_body

Summary:
- cloning scope can be avoided
- move `scope` out of `Args`, otherwise it is not easy to move scope out of `Args`

Differential Revision: D20912746

fbshipit-source-id: 91a6a28433fc60e212692ba773aacd4727d67e71
hphp/hack/src/hhbc/emit_body.rs
hphp/hack/src/hhbc/emit_function.rs
hphp/hack/src/hhbc/emit_method.rs