Patent ID: 9250865
Filing Date: 2016-02-02
CPC Classification: G06F

Claim Text:
1. A method for selective speculative class-based optimization, the method comprising: performing, by one or more processors, a type propagation analysis of a class by a just in time compiler; determining by the just in time compiler whether a type of the class is a fixed type; in response to determining the type of the class is not a fixed type, determining by the just in time compiler whether the class has a sub-class; creating, by one or more processors, a virtual synthetic property method associated with the class by a runtime including a virtual machine (VM) and the just in time compiler, wherein the virtual synthetic property method provides a set of property methods specifically in support of an implementation of a selective speculative class-based optimization system that leverages support from an underlying data processing system, wherein the virtual synthetic property method is accommodated in an enhanced VM using a stack frame type generated by the just in time compiler, wherein the just in time compiler in combination with the enhanced virtual machine creates the stack frame type, wherein the stack frame type has metadata associated for throwing an exception and possessing an invisibility property, and wherein the virtual synthetic property method is invisible in an exception back trace; inlining, by one or more processors, the virtual synthetic property method including a virtual guard; and creating, by one or more processors, a slow path using the virtual synthetic property method, wherein the slow path handles executions of the virtual synthetic property method in response to sub-classes of the class being loaded at a future time, wherein the sub-classes of the class override an implementation of the virtual synthetic property method.