| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 void JumpTarget::Jump(Result* arg) { | 93 void JumpTarget::Jump(Result* arg) { |
| 94 ASSERT(cgen_ != NULL); | 94 ASSERT(cgen_ != NULL); |
| 95 ASSERT(cgen_->has_valid_frame()); | 95 ASSERT(cgen_->has_valid_frame()); |
| 96 | 96 |
| 97 cgen_->frame()->Push(arg); | 97 cgen_->frame()->Push(arg); |
| 98 Jump(); | 98 Jump(); |
| 99 } | 99 } |
| 100 | 100 |
| 101 | 101 |
| 102 void JumpTarget::Jump(Result* arg0, Result* arg1) { |
| 103 ASSERT(cgen_ != NULL); |
| 104 ASSERT(cgen_->has_valid_frame()); |
| 105 |
| 106 cgen_->frame()->Push(arg0); |
| 107 cgen_->frame()->Push(arg1); |
| 108 Jump(); |
| 109 } |
| 110 |
| 111 |
| 102 void JumpTarget::Branch(Condition cc, Hint hint) { | 112 void JumpTarget::Branch(Condition cc, Hint hint) { |
| 103 ASSERT(cgen_ != NULL); | 113 ASSERT(cgen_ != NULL); |
| 104 ASSERT(cgen_->has_valid_frame()); | 114 ASSERT(cgen_->has_valid_frame()); |
| 105 ASSERT(!cgen_->has_cc()); | 115 ASSERT(!cgen_->has_cc()); |
| 106 | 116 |
| 107 if (is_bound()) { | 117 if (is_bound()) { |
| 108 // Backward branch. We have an expected frame to merge to on the | 118 // Backward branch. We have an expected frame to merge to on the |
| 109 // backward edge. We negate the condition and emit the merge code | 119 // backward edge. We negate the condition and emit the merge code |
| 110 // here. | 120 // here. |
| 111 // | 121 // |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 other_target_->set_code_generator(cgen_); | 372 other_target_->set_code_generator(cgen_); |
| 363 #ifdef DEBUG | 373 #ifdef DEBUG |
| 364 is_shadowing_ = false; | 374 is_shadowing_ = false; |
| 365 #endif | 375 #endif |
| 366 } | 376 } |
| 367 | 377 |
| 368 #undef __ | 378 #undef __ |
| 369 | 379 |
| 370 | 380 |
| 371 } } // namespace v8::internal | 381 } } // namespace v8::internal |
| OLD | NEW |