Refactor back ends into implementations of BackEnd.
commit877db59cb8fbf1b8a67f6377f3be70d36a06dad7
authorJason Evans <je@fb.com>
Tue, 22 Apr 2014 00:28:25 +0000 (21 17:28 -0700)
committerSara Golemon <sgolemon@fb.com>
Tue, 22 Apr 2014 05:48:59 +0000 (21 22:48 -0700)
tree76d919ec68f3517da2add9409e6ad6be6db0502e
parentedbfb50341e4a11664d5056391dc211c89b4d9b2
Refactor back ends into implementations of BackEnd.

Summary: Mechanically refactor explicit architecture-specific code branches into
implementations of a pure-virtual BackEnd class.  The initial BackEnd
API is intentionally uneven and incomplete; it serves as a foundation
for further refactoring and refinement.

Reviewed By: @jdelong

Differential Revision: D1233038
52 files changed:
hphp/runtime/base/arch.h [copied from hphp/runtime/vm/jit/arch.h with 87% similarity]
hphp/runtime/base/program-functions.cpp
hphp/runtime/server/http-protocol.cpp
hphp/runtime/vm/jit/abi-arm.h
hphp/runtime/vm/jit/abi-x64.h
hphp/runtime/vm/jit/abi.h [copied from hphp/runtime/vm/jit/arch.h with 57% similarity]
hphp/runtime/vm/jit/back-end-arm.cpp [new file with mode: 0644]
hphp/runtime/vm/jit/back-end-arm.h [copied from hphp/runtime/vm/jit/arch.h with 77% similarity]
hphp/runtime/vm/jit/back-end-x64.cpp [new file with mode: 0644]
hphp/runtime/vm/jit/back-end-x64.h [moved from hphp/runtime/vm/jit/arch.h with 75% similarity]
hphp/runtime/vm/jit/back-end.cpp [moved from hphp/runtime/vm/jit/func-prologues.h with 58% similarity]
hphp/runtime/vm/jit/back-end.h [new file with mode: 0644]
hphp/runtime/vm/jit/check.cpp
hphp/runtime/vm/jit/code-gen-arm.cpp
hphp/runtime/vm/jit/code-gen-arm.h
hphp/runtime/vm/jit/code-gen-helpers-arm.cpp
hphp/runtime/vm/jit/code-gen-helpers-x64.cpp
hphp/runtime/vm/jit/code-gen-x64.cpp
hphp/runtime/vm/jit/code-gen-x64.h
hphp/runtime/vm/jit/code-gen.cpp
hphp/runtime/vm/jit/code-gen.h
hphp/runtime/vm/jit/debug-guards.cpp
hphp/runtime/vm/jit/func-prologues-arm.cpp
hphp/runtime/vm/jit/func-prologues-arm.h
hphp/runtime/vm/jit/func-prologues-x64.cpp
hphp/runtime/vm/jit/func-prologues-x64.h
hphp/runtime/vm/jit/function-entry-helpers-x64.cpp
hphp/runtime/vm/jit/ir-translator.cpp
hphp/runtime/vm/jit/jump-smash.cpp [deleted file]
hphp/runtime/vm/jit/jump-smash.h [deleted file]
hphp/runtime/vm/jit/mc-generator-internal.h
hphp/runtime/vm/jit/mc-generator.cpp
hphp/runtime/vm/jit/mc-generator.h
hphp/runtime/vm/jit/phys-reg.cpp
hphp/runtime/vm/jit/phys-reg.h
hphp/runtime/vm/jit/print.cpp
hphp/runtime/vm/jit/reg-algorithms.cpp
hphp/runtime/vm/jit/reg-alloc-arm.h [new file with mode: 0644]
hphp/runtime/vm/jit/reg-alloc-x64.h [copied from hphp/runtime/vm/jit/reg-alloc.cpp with 64% similarity]
hphp/runtime/vm/jit/reg-alloc.cpp
hphp/runtime/vm/jit/reg-alloc.h
hphp/runtime/vm/jit/service-requests-arm.cpp
hphp/runtime/vm/jit/service-requests-arm.h
hphp/runtime/vm/jit/service-requests-inline.h [new file with mode: 0644]
hphp/runtime/vm/jit/service-requests-x64.cpp
hphp/runtime/vm/jit/service-requests-x64.h
hphp/runtime/vm/jit/service-requests.h
hphp/runtime/vm/jit/srcdb.cpp
hphp/runtime/vm/jit/target-cache.cpp
hphp/runtime/vm/jit/unique-stubs-arm.cpp
hphp/runtime/vm/jit/unique-stubs-x64.cpp
hphp/runtime/vm/jit/xls.cpp