Replacing Table of Contents (TOC)-setting instructions in code with TOC predicting instructions
First Claim
Patent Images
1. A computer program product for facilitating processing within a computing environment, the computer program product comprising:
- a computer readable storage medium readable by a processing circuit and storing instructions for performing a method comprising;
determining whether code includes an instruction sequence to compute a value of a pointer to a reference data structure;
replacing, based on determining the code includes the instruction sequence, the instruction sequence in the code with a set instruction, the set instruction predicting the value of the pointer to the reference data structure;
adding a verify instruction to the code to verify the value that was predicted; and
verifying the value using the verify instruction, the verifying including;
adding an offset obtained from the verify instruction to a first value obtained from a first location specified using the verify instruction to obtain a result;
comparing the result to a second value obtained from a second location specified using the verify instruction; and
determining a successful verification based on the comparing indicating a particular relationship between the result and the second value.
1 Assignment
0 Petitions
Accused Products
Abstract
Table of Contents (TOC)-setting instructions are replaced in code with TOC predicting instructions. A determination is made as to whether code includes an instruction sequence to compute a value of a pointer to a reference data structure, such as a TOC. Based on determining the code includes the instruction sequence, the instruction sequence in the code is replaced with a set instruction. The set instruction predicts the value of the pointer to the reference data structure.
-
Citations
16 Claims
-
1. A computer program product for facilitating processing within a computing environment, the computer program product comprising:
a computer readable storage medium readable by a processing circuit and storing instructions for performing a method comprising; determining whether code includes an instruction sequence to compute a value of a pointer to a reference data structure; replacing, based on determining the code includes the instruction sequence, the instruction sequence in the code with a set instruction, the set instruction predicting the value of the pointer to the reference data structure; adding a verify instruction to the code to verify the value that was predicted; and verifying the value using the verify instruction, the verifying including; adding an offset obtained from the verify instruction to a first value obtained from a first location specified using the verify instruction to obtain a result; comparing the result to a second value obtained from a second location specified using the verify instruction; and determining a successful verification based on the comparing indicating a particular relationship between the result and the second value. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
9. A computer system for facilitating processing within a computing environment, the computer system comprising:
-
a memory; and a processor in communication with the memory, wherein the computer system is configured to perform a method, said method comprising; determining whether code includes an instruction sequence to compute a value of a pointer to a reference data structure; replacing, based on determining the code includes the instruction sequence, the instruction sequence in the code with a set instruction, the set instruction predicting the value of the pointer to the reference data structure; adding a verify instruction to the code to verify the value that was predicted; and verifying the value using the verify instruction, the verifying including; adding an offset obtained from the verify instruction to a first value obtained from a first location specified using the verify instruction to obtain a result; comparing the result to a second value obtained from a second location specified using the verify instruction; and determining a successful verification based on the comparing indicating a particular relationship between the result and the second value. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
Specification