Add a .metadata directive to hhas
commit9b4d38c62ecd1773bd16b68eef6eb954fa766e84
authorMark Williams <mwilliams@fb.com>
Tue, 23 Jan 2018 16:05:34 +0000 (23 08:05 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 23 Jan 2018 16:15:26 +0000 (23 08:15 -0800)
treeab687cb6dedc290f504fcd27b36d2437d04a7fe5
parent6bd73ac121fc6de8fd366345135c1959ebea4805
Add a .metadata directive to hhas

Summary:
Adds a .metadata directive to hhas, which is just passed through and
preserved. It re-uses UserAttributeMap so that identical maps will be
shared; this means its ok to add the same metadata to every file in a
repo-authoritative build, because there will only be one copy at runtime.

Reviewed By: ricklavoie

Differential Revision: D6778346

fbshipit-source-id: 5fcedda8226d608eee5624519c1f7f2fe04d0cdf
hphp/hhbbc/emit.cpp
hphp/hhbbc/parse.cpp
hphp/hhbbc/representation.h
hphp/runtime/vm/as.cpp
hphp/runtime/vm/disas.cpp
hphp/runtime/vm/unit-emitter.cpp
hphp/runtime/vm/unit-emitter.h
hphp/runtime/vm/unit-inl.h
hphp/runtime/vm/unit.h