| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // at the label. | 123 // at the label. |
| 124 ASSERT(code_generator_ != NULL); | 124 ASSERT(code_generator_ != NULL); |
| 125 ASSERT(masm_ != NULL); | 125 ASSERT(masm_ != NULL); |
| 126 ASSERT(!code_generator_->IsActualFunctionReturn(this)); | 126 ASSERT(!code_generator_->IsActualFunctionReturn(this)); |
| 127 | 127 |
| 128 VirtualFrame* current_frame = code_generator_->frame(); | 128 VirtualFrame* current_frame = code_generator_->frame(); |
| 129 ASSERT(current_frame != NULL); | 129 ASSERT(current_frame != NULL); |
| 130 ASSERT(expected_frame_ == NULL); | 130 ASSERT(expected_frame_ == NULL); |
| 131 | 131 |
| 132 expected_frame_ = new VirtualFrame(current_frame); | 132 expected_frame_ = new VirtualFrame(current_frame); |
| 133 // Adjust the expected frame's height to account for the return address | 133 // Adjust the expected frame's height to account for the return address |
| 134 // pushed by the call instruction. | 134 // pushed by the call instruction. |
| 135 expected_frame_->Adjust(1); | 135 expected_frame_->Adjust(1); |
| 136 | 136 |
| 137 __ bl(&label_); | 137 __ bl(&label_); |
| 138 // Postcondition: there is both a current frame and an expected frame at | 138 // Postcondition: there is both a current frame and an expected frame at |
| 139 // the label. The current frame is one shorter than the one at the label | 139 // the label. The current frame is one shorter than the one at the label |
| 140 // (which contains the return address in memory). | 140 // (which contains the return address in memory). |
| 141 } | 141 } |
| 142 | 142 |
| 143 | 143 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 205 |
| 206 #ifdef DEBUG | 206 #ifdef DEBUG |
| 207 is_shadowing_ = false; | 207 is_shadowing_ = false; |
| 208 #endif | 208 #endif |
| 209 } | 209 } |
| 210 | 210 |
| 211 #undef __ | 211 #undef __ |
| 212 | 212 |
| 213 | 213 |
| 214 } } // namespace v8::internal | 214 } } // namespace v8::internal |
| OLD | NEW |