Patent ID: 8291393

Claim:
A method for performing inlining in a just-in-time compiler, the method implemented by a computer, the method comprising: beginning compilation of a first code of a program, wherein the first code comprises an interruptible code and a non-interruptible code; establishing a try region around a second code of the program to establish a wrapped second code, wherein the try region comprises a boundary between the interruptible and non-interruptible code such that a third code that modifies an observable state of the program cannot be moved across the boundary, wherein the second code comprises, relative to the first code, the other of the interruptible code and the non-interruptible code, wherein the first code is different from the second code, and wherein the third code is different from the first code and the second code; inlining the wrapped second code with the first code during compilation; completing compilation of the first code having the wrapped second code inlined to form a resultant code; and storing the resultant code.