Use SrcKey in RegionContext instead of its components
commit43bf8f3d2a75d646c84edc2abc36fc37b0a6268c
authorJan Oravec <jan@fb.com>
Fri, 25 Oct 2019 20:26:41 +0000 (25 13:26 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 25 Oct 2019 20:28:53 +0000 (25 13:28 -0700)
tree127ca975aa7a4d6f9a097221b16bc991332ab1b9
parent7e0e58bd10c8ecf6d8840bf4c8076a3b3fb1cd44
Use SrcKey in RegionContext instead of its components

Summary:
RegionContext struct was carrying all[*] the fields that SrcKey already contains
and its users were often reassembling SrcKey from these fields.

Let's just use SrcKey directly in RegionContext.

Makes it possible to extend the functionality of SrcKey and let the information
propagate.

[*] except of the prologue flag, but fortunately it was not used

Reviewed By: ricklavoie

Differential Revision: D18131177

fbshipit-source-id: 345552b6de4390bd4ddaac452c02e93cf133d983
hphp/runtime/vm/jit/inlining-decider.cpp
hphp/runtime/vm/jit/region-method.cpp
hphp/runtime/vm/jit/region-selection.cpp
hphp/runtime/vm/jit/region-selection.h
hphp/runtime/vm/jit/region-tracelet.cpp
hphp/runtime/vm/jit/service-request-handlers.cpp