Add an AliasCls bytecode
commit11c8d50365dd91376c5b59fc0774954b685b906e
authorMark Williams <mwilliams@fb.com>
Wed, 15 Mar 2017 14:24:25 +0000 (15 07:24 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 15 Mar 2017 14:42:43 +0000 (15 07:42 -0700)
tree29251d5c32d1f4ec4eb8741e0a5e6fd7ce09c9c0
parent891bc22a89b16fb462cb5cb3efb0e8095ba976ef
Add an AliasCls bytecode

Summary:
We shouldn't allow dynamic alias_class calls in repo-authoritative
mode; so turn statically known calls into a bytecode, and forbid calls
to the builtin in repo-auth mode.

Reviewed By: swtaarrs, jano

Differential Revision: D4705816

fbshipit-source-id: 6332ea61fbf6393844dfbab3cf81997279cafdd9
13 files changed:
hphp/compiler/analysis/emitter.cpp
hphp/doc/bytecode.specification
hphp/hhbbc/interp.cpp
hphp/hhbbc/optimize.cpp
hphp/hhbbc/parse.cpp
hphp/hhbbc/representation.h
hphp/runtime/ext/std/ext_std_classobj.cpp
hphp/runtime/vm/bytecode.cpp
hphp/runtime/vm/hhbc.h
hphp/runtime/vm/jit/irgen-interpone.cpp
hphp/runtime/vm/jit/translator.cpp
hphp/runtime/vm/unit.cpp
hphp/runtime/vm/unit.h