| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // jump and there will be no current frame after the jump. | 110 // jump and there will be no current frame after the jump. |
| 111 virtual void Jump(); | 111 virtual void Jump(); |
| 112 virtual void Jump(Result* arg); | 112 virtual void Jump(Result* arg); |
| 113 | 113 |
| 114 // Emit a conditional branch to the target. There must be a current | 114 // Emit a conditional branch to the target. There must be a current |
| 115 // frame at the branch. The current frame will fall through to the | 115 // frame at the branch. The current frame will fall through to the |
| 116 // code after the branch. The arg is a result that is live both at | 116 // code after the branch. The arg is a result that is live both at |
| 117 // the target and the fall-through. | 117 // the target and the fall-through. |
| 118 virtual void Branch(Condition cc, Hint hint = no_hint); | 118 virtual void Branch(Condition cc, Hint hint = no_hint); |
| 119 virtual void Branch(Condition cc, Result* arg, Hint hint = no_hint); | 119 virtual void Branch(Condition cc, Result* arg, Hint hint = no_hint); |
| 120 virtual void Branch(Condition cc, |
| 121 Result* arg0, |
| 122 Result* arg1, |
| 123 Hint hint = no_hint); |
| 120 | 124 |
| 121 // Bind a jump target. If there is no current frame at the binding | 125 // Bind a jump target. If there is no current frame at the binding |
| 122 // site, there must be at least one frame reaching via a forward | 126 // site, there must be at least one frame reaching via a forward |
| 123 // jump. | 127 // jump. |
| 124 virtual void Bind(); | 128 virtual void Bind(); |
| 125 virtual void Bind(Result* arg); | 129 virtual void Bind(Result* arg); |
| 130 virtual void Bind(Result* arg0, Result* arg1); |
| 126 | 131 |
| 127 // Emit a call to a jump target. There must be a current frame at | 132 // Emit a call to a jump target. There must be a current frame at |
| 128 // the call. The frame at the target is the same as the current | 133 // the call. The frame at the target is the same as the current |
| 129 // frame except for an extra return address on top of it. The frame | 134 // frame except for an extra return address on top of it. The frame |
| 130 // after the call is the same as the frame before the call. | 135 // after the call is the same as the frame before the call. |
| 131 void Call(); | 136 void Call(); |
| 132 | 137 |
| 133 static void set_compiling_deferred_code(bool flag) { | 138 static void set_compiling_deferred_code(bool flag) { |
| 134 compiling_deferred_code_ = flag; | 139 compiling_deferred_code_ = flag; |
| 135 } | 140 } |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 bool is_shadowing_; | 277 bool is_shadowing_; |
| 273 #endif | 278 #endif |
| 274 | 279 |
| 275 DISALLOW_COPY_AND_ASSIGN(ShadowTarget); | 280 DISALLOW_COPY_AND_ASSIGN(ShadowTarget); |
| 276 }; | 281 }; |
| 277 | 282 |
| 278 | 283 |
| 279 } } // namespace v8::internal | 284 } } // namespace v8::internal |
| 280 | 285 |
| 281 #endif // V8_JUMP_TARGET_H_ | 286 #endif // V8_JUMP_TARGET_H_ |
| OLD | NEW |