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); | |
604 | 603 |
605 // Save all general purpose registers before messing with them. | 604 // Save all general purpose registers before messing with them. |
606 const int kNumberOfRegisters = Register::kNumRegisters; | 605 const int kNumberOfRegisters = Register::kNumRegisters; |
607 | 606 |
608 const int kDoubleRegsSize = kDoubleSize * | 607 const int kDoubleRegsSize = kDoubleSize * |
609 XMMRegister::kNumAllocatableRegisters; | 608 XMMRegister::kNumAllocatableRegisters; |
610 __ subq(rsp, Immediate(kDoubleRegsSize)); | 609 __ subq(rsp, Immediate(kDoubleRegsSize)); |
611 | 610 |
612 for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; ++i) { | 611 for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; ++i) { |
613 XMMRegister xmm_reg = XMMRegister::FromAllocationIndex(i); | 612 XMMRegister xmm_reg = XMMRegister::FromAllocationIndex(i); |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 } | 806 } |
808 __ bind(&done); | 807 __ bind(&done); |
809 } | 808 } |
810 | 809 |
811 #undef __ | 810 #undef __ |
812 | 811 |
813 | 812 |
814 } } // namespace v8::internal | 813 } } // namespace v8::internal |
815 | 814 |
816 #endif // V8_TARGET_ARCH_X64 | 815 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |