| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 // register saving than this asymmetry (see the bug report | 401 // register saving than this asymmetry (see the bug report |
| 402 // associated with this issue). | 402 // associated with this issue). |
| 403 PushRegistersFromMemory(kJSCallerSaved); | 403 PushRegistersFromMemory(kJSCallerSaved); |
| 404 } | 404 } |
| 405 #endif | 405 #endif |
| 406 | 406 |
| 407 // Reserve space for arguments. | 407 // Reserve space for arguments. |
| 408 sub(Operand(esp), Immediate(argc * kPointerSize)); | 408 sub(Operand(esp), Immediate(argc * kPointerSize)); |
| 409 | 409 |
| 410 // Get the required frame alignment for the OS. | 410 // Get the required frame alignment for the OS. |
| 411 static const int kFrameAlignment = OS::ActivationFrameAlignment(); | 411 const int kFrameAlignment = OS::ActivationFrameAlignment(); |
| 412 if (kFrameAlignment > 0) { | 412 if (kFrameAlignment > 0) { |
| 413 ASSERT(IsPowerOf2(kFrameAlignment)); | 413 ASSERT(IsPowerOf2(kFrameAlignment)); |
| 414 and_(esp, -kFrameAlignment); | 414 and_(esp, -kFrameAlignment); |
| 415 } | 415 } |
| 416 | 416 |
| 417 // Patch the saved entry sp. | 417 // Patch the saved entry sp. |
| 418 mov(Operand(ebp, ExitFrameConstants::kSPOffset), esp); | 418 mov(Operand(ebp, ExitFrameConstants::kSPOffset), esp); |
| 419 } | 419 } |
| 420 | 420 |
| 421 | 421 |
| (...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1662 | 1662 |
| 1663 // Check that the code was patched as expected. | 1663 // Check that the code was patched as expected. |
| 1664 ASSERT(masm_.pc_ == address_ + size_); | 1664 ASSERT(masm_.pc_ == address_ + size_); |
| 1665 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); | 1665 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); |
| 1666 } | 1666 } |
| 1667 | 1667 |
| 1668 | 1668 |
| 1669 } } // namespace v8::internal | 1669 } } // namespace v8::internal |
| 1670 | 1670 |
| 1671 #endif // V8_TARGET_ARCH_IA32 | 1671 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |