rename Self_ -> SelfCls
commit36cfa660b60f126bb3c5b1ad6aea6302f361bcfc
authorEdwin Smith <smith@fb.com>
Wed, 2 Mar 2022 17:17:22 +0000 (2 09:17 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 2 Mar 2022 17:17:22 +0000 (2 09:17 -0800)
tree96ecbb4c2492af7cc895bfe6e244f3ae2b432c23
parent2edfb1e7cd6f625f56f69b35fc58d2c756e999fd
rename Self_ -> SelfCls

Summary:
`Self` is a Rust keyword, so having an instruction called Self requires
annoying special case naming, like `Self_` in a few places. Let's rename the opcode.

While we're at it, a few related names are changed, for consistency. Here is the full list:
* Self -> SelfCls (opcode and SpecialClsRef)
* Parent -> ParentCls (opcode and SpecialClsRef)
* Static -> LateBoundCls (just the SpecialClsRef)

Reviewed By: mofarrell

Differential Revision: D34536364

fbshipit-source-id: 0d9126fa3da38c632f233fed23a9a255ad733276
23 files changed:
hphp/doc/bytecode.specification
hphp/hack/src/hackc/bytecode_printer/print.rs
hphp/hack/src/hackc/emitter/emit_body.rs
hphp/hack/src/hackc/emitter/emit_class.rs
hphp/hack/src/hackc/emitter/emit_expression.rs
hphp/hack/src/hackc/emitter/emit_memoize_method.rs
hphp/hack/src/hackc/emitter/instruction_sequence.rs
hphp/hack/src/hackc/hhbc/ast_class_expr.rs
hphp/hack/src/hackc/hhbc/hhbc_ast.rs
hphp/hack/src/hackc/hhvm_cxx/hhvm_hhbc_defs/hhvm_hhbc_defs_ffi.rs
hphp/hhbbc/dce.cpp
hphp/hhbbc/interp.cpp
hphp/runtime/vm/bytecode.cpp
hphp/runtime/vm/hhbc-shared.h
hphp/runtime/vm/hhbc.cpp
hphp/runtime/vm/hhbc.h
hphp/runtime/vm/jit/irgen-basic.cpp
hphp/runtime/vm/jit/irgen-call.cpp
hphp/runtime/vm/jit/region-tracelet.cpp
hphp/runtime/vm/jit/translator.cpp
hphp/runtime/vm/super-inlining-bros.cpp
hphp/runtime/vm/taint/interpreter.cpp
hphp/runtime/vm/taint/interpreter.h