| OLD | NEW |
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 void SpillAll(); | 199 void SpillAll(); |
| 200 | 200 |
| 201 // Spill all occurrences of a specific register from the frame. | 201 // Spill all occurrences of a specific register from the frame. |
| 202 void Spill(Register reg); | 202 void Spill(Register reg); |
| 203 | 203 |
| 204 // Spill all occurrences of an arbitrary register if possible. Return the | 204 // Spill all occurrences of an arbitrary register if possible. Return the |
| 205 // register spilled or no_reg if it was not possible to free any register | 205 // register spilled or no_reg if it was not possible to free any register |
| 206 // (ie, they all have frame-external references). | 206 // (ie, they all have frame-external references). |
| 207 Register SpillAnyRegister(); | 207 Register SpillAnyRegister(); |
| 208 | 208 |
| 209 // True if making the frame mergable via MakeMergable will generate code. | |
| 210 bool RequiresMergeCode(); | |
| 211 | |
| 212 // Ensure that this frame is in a state where an arbitrary frame of the | 209 // Ensure that this frame is in a state where an arbitrary frame of the |
| 213 // right size could be merged to it. May emit code. | 210 // right size could be merged to it. May emit code. |
| 214 void MakeMergable(); | 211 void MakeMergable(); |
| 215 | 212 |
| 216 // Make this virtual frame have a state identical to an expected virtual | 213 // Make this virtual frame have a state identical to an expected virtual |
| 217 // frame. As a side effect, code may be emitted to make this frame match | 214 // frame. As a side effect, code may be emitted to make this frame match |
| 218 // the expected one. | 215 // the expected one. |
| 219 void MergeTo(VirtualFrame* expected); | 216 void MergeTo(VirtualFrame* expected); |
| 220 | 217 |
| 221 // Detach a frame from its code generator, perhaps temporarily. This | 218 // Detach a frame from its code generator, perhaps temporarily. This |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 // Called after all register-to-memory and register-to-register | 532 // Called after all register-to-memory and register-to-register |
| 536 // moves have been made. After this function returns, the frames | 533 // moves have been made. After this function returns, the frames |
| 537 // should be equal. | 534 // should be equal. |
| 538 void MergeMoveMemoryToRegisters(VirtualFrame* expected); | 535 void MergeMoveMemoryToRegisters(VirtualFrame* expected); |
| 539 }; | 536 }; |
| 540 | 537 |
| 541 | 538 |
| 542 } } // namespace v8::internal | 539 } } // namespace v8::internal |
| 543 | 540 |
| 544 #endif // V8_VIRTUAL_FRAME_IA32_H_ | 541 #endif // V8_VIRTUAL_FRAME_IA32_H_ |
| OLD | NEW |