| 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, | 120 void Branch(Condition cc, |
| 121 Result* arg0, | 121 Result* arg0, |
| 122 Result* arg1, | 122 Result* arg1, |
| 123 Hint hint = no_hint); | 123 Hint hint = no_hint); |
| 124 | 124 |
| 125 // 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 |
| 126 // 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 |
| 127 // jump. | 127 // jump. |
| 128 virtual void Bind(); | 128 virtual void Bind(); |
| 129 virtual void Bind(Result* arg); | 129 virtual void Bind(Result* arg); |
| 130 virtual void Bind(Result* arg0, Result* arg1); | 130 void Bind(Result* arg0, Result* arg1); |
| 131 | 131 |
| 132 // 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 |
| 133 // 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 |
| 134 // 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 |
| 135 // 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. |
| 136 void Call(); | 136 void Call(); |
| 137 | 137 |
| 138 static void set_compiling_deferred_code(bool flag) { | 138 static void set_compiling_deferred_code(bool flag) { |
| 139 compiling_deferred_code_ = flag; | 139 compiling_deferred_code_ = flag; |
| 140 } | 140 } |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 // The expected height of the expression stack where the target will | 235 // The expected height of the expression stack where the target will |
| 236 // be bound, statically known at initialization time. | 236 // be bound, statically known at initialization time. |
| 237 int expected_height_; | 237 int expected_height_; |
| 238 | 238 |
| 239 DISALLOW_COPY_AND_ASSIGN(BreakTarget); | 239 DISALLOW_COPY_AND_ASSIGN(BreakTarget); |
| 240 }; | 240 }; |
| 241 | 241 |
| 242 } } // namespace v8::internal | 242 } } // namespace v8::internal |
| 243 | 243 |
| 244 #endif // V8_JUMP_TARGET_HEAVY_H_ | 244 #endif // V8_JUMP_TARGET_HEAVY_H_ |
| OLD | NEW |