| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // expected frame if any is reset. | 85 // expected frame if any is reset. |
| 86 void Unuse() { | 86 void Unuse() { |
| 87 label_.Unuse(); | 87 label_.Unuse(); |
| 88 delete expected_frame_; | 88 delete expected_frame_; |
| 89 expected_frame_ = NULL; | 89 expected_frame_ = NULL; |
| 90 } | 90 } |
| 91 | 91 |
| 92 // Emit a jump to the target. There must be a current frame before the | 92 // Emit a jump to the target. There must be a current frame before the |
| 93 // jump and there will be no current frame after the jump. | 93 // jump and there will be no current frame after the jump. |
| 94 void Jump(); | 94 void Jump(); |
| 95 void Jump(Result* arg); |
| 95 | 96 |
| 96 // Emit a conditional branch to the target. If there is no current frame, | 97 // Emit a conditional branch to the target. If there is no current frame, |
| 97 // there must be one expected at the target. | 98 // there must be one expected at the target. |
| 98 void Branch(Condition cc, Hint hint = no_hint); | 99 void Branch(Condition cc, Hint hint = no_hint); |
| 99 void Branch(Condition cc, Result* arg, Hint hint = no_hint); | 100 void Branch(Condition cc, Result* arg, Hint hint = no_hint); |
| 100 | 101 |
| 101 // Bind a jump target. There must be a current frame and no expected | 102 // Bind a jump target. There must be a current frame and no expected |
| 102 // frame at the target (targets are only bound once). | 103 // frame at the target (targets are only bound once). |
| 103 void Bind(); | 104 void Bind(); |
| 104 void Bind(Result* arg); | 105 void Bind(Result* arg); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 169 |
| 169 #ifdef DEBUG | 170 #ifdef DEBUG |
| 170 bool is_shadowing_; | 171 bool is_shadowing_; |
| 171 #endif | 172 #endif |
| 172 }; | 173 }; |
| 173 | 174 |
| 174 | 175 |
| 175 } } // namespace v8::internal | 176 } } // namespace v8::internal |
| 176 | 177 |
| 177 #endif // V8_JUMP_TARGET_H_ | 178 #endif // V8_JUMP_TARGET_H_ |
| OLD | NEW |