Inline refactoring: move profitability assessment to LegacyPolicy
authorAndy Ayers <andya@microsoft.com>
Thu, 10 Mar 2016 00:04:11 +0000 (16:04 -0800)
committerAndy Ayers <andya@microsoft.com>
Thu, 10 Mar 2016 02:20:38 +0000 (18:20 -0800)
commit9cbd25871b360647686a79be6d9021bbefd84313
tree06bc910f599177f77f7ce817dc3e38c0c66155e0
parent587e7c08ef1edc53d2ce6bf90da0c63ba70aa00b
Inline refactoring: move profitability assessment to LegacyPolicy

LegacyPolicy now encapsulates all the computations needed to evaluate
whether an inline is profitable or not.

This completes the main objective of the refactoring effort, which
was to preserve and encapsulate the current inliner's behavior.
src/jit/compiler.cpp
src/jit/compiler.h
src/jit/flowgraph.cpp
src/jit/importer.cpp
src/jit/inline.def
src/jit/inline.h
src/jit/inlinepolicy.cpp
src/jit/inlinepolicy.h