| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 // Emit a move and remove it from the move graph. | 65 // Emit a move and remove it from the move graph. |
| 66 void EmitMove(int index); | 66 void EmitMove(int index); |
| 67 | 67 |
| 68 // Emit a move from one stack slot to another. | 68 // Emit a move from one stack slot to another. |
| 69 void EmitStackSlotMove(int index); | 69 void EmitStackSlotMove(int index); |
| 70 | 70 |
| 71 // Verify the move list before performing moves. | 71 // Verify the move list before performing moves. |
| 72 void Verify(); | 72 void Verify(); |
| 73 | 73 |
| 74 // Register used to break cycle in moves list. | |
| 75 static const Register kSavedValue; | |
| 76 | |
| 77 LCodeGen* cgen_; | 74 LCodeGen* cgen_; |
| 78 | 75 |
| 79 // List of moves not yet resolved. | 76 // List of moves not yet resolved. |
| 80 ZoneList<LMoveOperands> moves_; | 77 ZoneList<LMoveOperands> moves_; |
| 81 | 78 |
| 82 int root_index_; | 79 int root_index_; |
| 83 bool in_cycle_; | 80 bool in_cycle_; |
| 84 LOperand* saved_destination_; | 81 LOperand* saved_destination_; |
| 85 | 82 |
| 86 // We use the root register as a scratch in a few places. When that happens, | 83 // We use the root register as a scratch in a few places. When that happens, |
| 87 // this flag is set to indicate that it needs to be restored. | 84 // this flag is set to indicate that it needs to be restored. |
| 88 bool need_to_restore_root_; | 85 bool need_to_restore_root_; |
| 89 }; | 86 }; |
| 90 | 87 |
| 91 } } // namespace v8::internal | 88 } } // namespace v8::internal |
| 92 | 89 |
| 93 #endif // V8_A64_LITHIUM_GAP_RESOLVER_A64_H_ | 90 #endif // V8_A64_LITHIUM_GAP_RESOLVER_A64_H_ |
| OLD | NEW |