| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // of forward-reaching frames and merge-point labels are copied. | 107 // of forward-reaching frames and merge-point labels are copied. |
| 108 // All virtual frame pointers are copied, not the pointed-to frames. | 108 // All virtual frame pointers are copied, not the pointed-to frames. |
| 109 // The previous state of the destination is overwritten, without | 109 // The previous state of the destination is overwritten, without |
| 110 // deallocating pointed-to virtual frames. | 110 // deallocating pointed-to virtual frames. |
| 111 void CopyTo(JumpTarget* destination); | 111 void CopyTo(JumpTarget* destination); |
| 112 | 112 |
| 113 // Emit a jump to the target. There must be a current frame at the | 113 // Emit a jump to the target. There must be a current frame at the |
| 114 // jump and there will be no current frame after the jump. | 114 // jump and there will be no current frame after the jump. |
| 115 void Jump(); | 115 void Jump(); |
| 116 void Jump(Result* arg); | 116 void Jump(Result* arg); |
| 117 void Jump(Result* arg0, Result* arg1); |
| 117 | 118 |
| 118 // Emit a conditional branch to the target. There must be a current | 119 // Emit a conditional branch to the target. There must be a current |
| 119 // frame at the branch. The current frame will fall through to the | 120 // frame at the branch. The current frame will fall through to the |
| 120 // code after the branch. | 121 // code after the branch. |
| 121 void Branch(Condition cc, Hint hint = no_hint); | 122 void Branch(Condition cc, Hint hint = no_hint); |
| 122 void Branch(Condition cc, Result* arg, Hint hint = no_hint); | 123 void Branch(Condition cc, Result* arg, Hint hint = no_hint); |
| 123 void Branch(Condition cc, Result* arg0, Result* arg1, Hint hint = no_hint); | 124 void Branch(Condition cc, Result* arg0, Result* arg1, Hint hint = no_hint); |
| 124 | 125 |
| 125 // Bind a jump target. If there is no current frame at the binding | 126 // Bind a jump target. If there is no current frame at the binding |
| 126 // site, there must be at least one frame reaching via a forward | 127 // site, there must be at least one frame reaching via a forward |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 bool is_shadowing_; | 205 bool is_shadowing_; |
| 205 #endif | 206 #endif |
| 206 | 207 |
| 207 DISALLOW_COPY_AND_ASSIGN(ShadowTarget); | 208 DISALLOW_COPY_AND_ASSIGN(ShadowTarget); |
| 208 }; | 209 }; |
| 209 | 210 |
| 210 | 211 |
| 211 } } // namespace v8::internal | 212 } } // namespace v8::internal |
| 212 | 213 |
| 213 #endif // V8_JUMP_TARGET_H_ | 214 #endif // V8_JUMP_TARGET_H_ |
| OLD | NEW |