Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 2526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2537 int count = 0; | 2537 int count = 0; |
| 2538 while (!save_iterator.Done()) { | 2538 while (!save_iterator.Done()) { |
| 2539 __ movsd(XMMRegister::FromAllocationIndex(save_iterator.Current()), | 2539 __ movsd(XMMRegister::FromAllocationIndex(save_iterator.Current()), |
| 2540 MemOperand(rsp, count * kDoubleSize)); | 2540 MemOperand(rsp, count * kDoubleSize)); |
| 2541 save_iterator.Advance(); | 2541 save_iterator.Advance(); |
| 2542 count++; | 2542 count++; |
| 2543 } | 2543 } |
| 2544 } | 2544 } |
| 2545 if (NeedsEagerFrame()) { | 2545 if (NeedsEagerFrame()) { |
| 2546 __ movq(rsp, rbp); | 2546 __ movq(rsp, rbp); |
| 2547 info_->set_frame_destroy_offset(masm_->pc_offset()); | |
|
loislo
2013/04/26 13:46:19
do we have the same code on the other platforms
| |
| 2547 __ pop(rbp); | 2548 __ pop(rbp); |
| 2548 } | 2549 } |
| 2549 if (instr->has_constant_parameter_count()) { | 2550 if (instr->has_constant_parameter_count()) { |
| 2550 __ Ret((ToInteger32(instr->constant_parameter_count()) + 1) * kPointerSize, | 2551 __ Ret((ToInteger32(instr->constant_parameter_count()) + 1) * kPointerSize, |
| 2551 rcx); | 2552 rcx); |
| 2552 } else { | 2553 } else { |
| 2553 Register reg = ToRegister(instr->parameter_count()); | 2554 Register reg = ToRegister(instr->parameter_count()); |
| 2554 // The argument count parameter is a smi | 2555 // The argument count parameter is a smi |
| 2555 __ SmiToInteger32(reg, reg); | 2556 __ SmiToInteger32(reg, reg); |
| 2556 Register return_addr_reg = reg.is(rcx) ? rbx : rcx; | 2557 Register return_addr_reg = reg.is(rcx) ? rbx : rcx; |
| (...skipping 3131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5688 FixedArray::kHeaderSize - kPointerSize)); | 5689 FixedArray::kHeaderSize - kPointerSize)); |
| 5689 __ bind(&done); | 5690 __ bind(&done); |
| 5690 } | 5691 } |
| 5691 | 5692 |
| 5692 | 5693 |
| 5693 #undef __ | 5694 #undef __ |
| 5694 | 5695 |
| 5695 } } // namespace v8::internal | 5696 } } // namespace v8::internal |
| 5696 | 5697 |
| 5697 #endif // V8_TARGET_ARCH_X64 | 5698 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |