Conditional compilation of bytecode
First Claim
Patent Images
1. A method, comprising:
- identifying, by a processor, a defined pattern in a bytecode derived from a high level programming language module;
evaluating, by the processor, a conditional expression associated with the defined pattern, wherein the conditional expression comprises a symbolic name of a system property of the high level programming language, an operator, and an identifier of an execution platform;
excluding from a scope of compilation, in view of the evaluating, a portion of bytecode associated with the defined pattern, wherein the portion comprises code exploiting execution platform-specific capabilities; and
compiling, in view of the scope of compilation, the bytecode into a native code.
1 Assignment
0 Petitions
Accused Products
Abstract
A processor may perform conditional just-in-time (JIT) compilation. An example method may comprise: identifying, by the processor, a defined pattern in a byte stream derived from a high level programming language module; evaluating a conditional expression associated with the defined pattern, wherein the conditional expression comprises an execution platform identifier; and compiling the byte stream into a native code, while excluding, in view of the evaluating, a portion of byte stream associated with the defined pattern.
-
Citations
18 Claims
-
1. A method, comprising:
-
identifying, by a processor, a defined pattern in a bytecode derived from a high level programming language module; evaluating, by the processor, a conditional expression associated with the defined pattern, wherein the conditional expression comprises a symbolic name of a system property of the high level programming language, an operator, and an identifier of an execution platform; excluding from a scope of compilation, in view of the evaluating, a portion of bytecode associated with the defined pattern, wherein the portion comprises code exploiting execution platform-specific capabilities; and compiling, in view of the scope of compilation, the bytecode into a native code. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A non-transitory computer-readable storage medium comprising executable instructions to cause a processor to:
-
identify, by the processor, a defined pattern in a bytecode derived from a high level programming language module; evaluate, by the processor, a conditional expression associated with the defined pattern, wherein the conditional expression comprises a symbolic name of a system property of the high level programming language, an operator, and a an identifier of an execution platform; exclude from a scope of compilation, in view of the evaluating, a portion of bytecode associated with the defined pattern, wherein the portion comprises code exploiting execution platform-specific capabilities; and compile, in view of the scope of compilation, the bytecode into a native code. - View Dependent Claims (9, 10, 11, 12, 13)
-
-
14. A system, comprising:
-
a memory; and a processor, operatively coupled to the memory, the processor to; identify a defined pattern in a bytecode derived from a high level programming language module; evaluate a conditional expression associated with the defined pattern, wherein the conditional expression comprises a symbolic name of a system property of the high level programming language, an operator, and an identifier of an execution platform; exclude from a scope of compilation, in view of the evaluating, a portion of bytecode associated with the defined pattern, wherein the portion comprises code exploiting execution platform-specific capabilities; and compile, in view of the scope of compilation, the bytecode into a native code. - View Dependent Claims (15, 16, 17, 18)
-
Specification