Conditional compilation of bytecode
AssigneeRed Hat, Inc.
InventorsFilip Eliá{hacek over (s)}, Filip Nguyen
Life of this patent
Estimating the term…
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.
Claims18
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.
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.
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.
Dependencies are inferred from the claim text.