| 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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 } | 593 } |
| 594 | 594 |
| 595 if (output_count_ - 1 == frame_index) iterator->Done(); | 595 if (output_count_ - 1 == frame_index) iterator->Done(); |
| 596 } | 596 } |
| 597 | 597 |
| 598 | 598 |
| 599 #define __ masm()-> | 599 #define __ masm()-> |
| 600 | 600 |
| 601 void Deoptimizer::EntryGenerator::Generate() { | 601 void Deoptimizer::EntryGenerator::Generate() { |
| 602 GeneratePrologue(); | 602 GeneratePrologue(); |
| 603 CpuFeatures::Scope scope(SSE2); |
| 603 | 604 |
| 604 // Save all general purpose registers before messing with them. | 605 // Save all general purpose registers before messing with them. |
| 605 const int kNumberOfRegisters = Register::kNumRegisters; | 606 const int kNumberOfRegisters = Register::kNumRegisters; |
| 606 | 607 |
| 607 const int kDoubleRegsSize = kDoubleSize * | 608 const int kDoubleRegsSize = kDoubleSize * |
| 608 XMMRegister::kNumAllocatableRegisters; | 609 XMMRegister::kNumAllocatableRegisters; |
| 609 __ subq(rsp, Immediate(kDoubleRegsSize)); | 610 __ subq(rsp, Immediate(kDoubleRegsSize)); |
| 610 | 611 |
| 611 for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; ++i) { | 612 for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; ++i) { |
| 612 XMMRegister xmm_reg = XMMRegister::FromAllocationIndex(i); | 613 XMMRegister xmm_reg = XMMRegister::FromAllocationIndex(i); |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 } | 807 } |
| 807 __ bind(&done); | 808 __ bind(&done); |
| 808 } | 809 } |
| 809 | 810 |
| 810 #undef __ | 811 #undef __ |
| 811 | 812 |
| 812 | 813 |
| 813 } } // namespace v8::internal | 814 } } // namespace v8::internal |
| 814 | 815 |
| 815 #endif // V8_TARGET_ARCH_X64 | 816 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |