Camil Demetrescu edited approach.tex  over 8 years ago

Commit id: c3c989049e4aae1caf75359df8d266c19834654b

deletions | additions      

       

The key to platform independence in our approach is to encode the entire OSR machinery at intermediate representation level, without resorting to machine-level code manipulation.  \subsection{Overview}  \label{ss:overview}  Consider the generic OSR scenario shown Figure~\ref{fi:overview-osr}. A base function \textsf{f} is executed and it can either terminate normally (dashed lines), or an OSR event may transfer control to a variant \textsf{f'}. The decision of whether an OSR should be fired at a given point is based on a condition: examples include a guard that tests whether \textsf{f} has become unsafe, or a profile counter that reaches a certain hotness threshold, indicating that \textsf{f} is taking longer than expected and is worth optimizing.  %\ref{fi:overview-osr-final}