| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 while (ok && input_offset >= 0) { | 399 while (ok && input_offset >= 0) { |
| 400 ok = DoOsrTranslateCommand(&iterator, &input_offset); | 400 ok = DoOsrTranslateCommand(&iterator, &input_offset); |
| 401 } | 401 } |
| 402 | 402 |
| 403 // If translation of any command failed, continue using the input frame. | 403 // If translation of any command failed, continue using the input frame. |
| 404 if (!ok) { | 404 if (!ok) { |
| 405 delete output_[0]; | 405 delete output_[0]; |
| 406 output_[0] = input_; | 406 output_[0] = input_; |
| 407 output_[0]->SetPc(reinterpret_cast<uint32_t>(from_)); | 407 output_[0]->SetPc(reinterpret_cast<uint32_t>(from_)); |
| 408 } else { | 408 } else { |
| 409 // Setup the frame pointer and the context pointer. | 409 // Set up the frame pointer and the context pointer. |
| 410 // All OSR stack frames are dynamically aligned to an 8-byte boundary. | 410 // All OSR stack frames are dynamically aligned to an 8-byte boundary. |
| 411 int frame_pointer = input_->GetRegister(ebp.code()); | 411 int frame_pointer = input_->GetRegister(ebp.code()); |
| 412 if ((frame_pointer & 0x4) == 0) { | 412 if ((frame_pointer & 0x4) == 0) { |
| 413 // Return address at FP + 4 should be aligned, so FP mod 8 should be 4. | 413 // Return address at FP + 4 should be aligned, so FP mod 8 should be 4. |
| 414 frame_pointer -= kPointerSize; | 414 frame_pointer -= kPointerSize; |
| 415 has_alignment_padding_ = 1; | 415 has_alignment_padding_ = 1; |
| 416 } | 416 } |
| 417 output_[0]->SetRegister(ebp.code(), frame_pointer); | 417 output_[0]->SetRegister(ebp.code(), frame_pointer); |
| 418 output_[0]->SetRegister(esi.code(), input_->GetRegister(esi.code())); | 418 output_[0]->SetRegister(esi.code(), input_->GetRegister(esi.code())); |
| 419 | 419 |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 } | 821 } |
| 822 __ bind(&done); | 822 __ bind(&done); |
| 823 } | 823 } |
| 824 | 824 |
| 825 #undef __ | 825 #undef __ |
| 826 | 826 |
| 827 | 827 |
| 828 } } // namespace v8::internal | 828 } } // namespace v8::internal |
| 829 | 829 |
| 830 #endif // V8_TARGET_ARCH_IA32 | 830 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |