A method and system of adaptive dynamic compiler resolution. At least some
of the illustrative embodiments are a computer-implemented method
comprising compiling a source file containing an application program (the
application program comprising a method, and wherein the compiling
creates a destination file containing a compiled version of the
application program), and inserting in the compiled version of the
application program a series of commands that (when executed at run time
of the application program) generate a first optimized version of the
method using a first value available at run time, and generate a second
optimized version of the method using a second value available at run
time.