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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 for (int i = 0; i < Register::kNumRegisters; i++) { | 614 for (int i = 0; i < Register::kNumRegisters; i++) { |
615 input_->SetRegister(i, i * 4); | 615 input_->SetRegister(i, i * 4); |
616 } | 616 } |
617 input_->SetRegister(esp.code(), reinterpret_cast<intptr_t>(frame->sp())); | 617 input_->SetRegister(esp.code(), reinterpret_cast<intptr_t>(frame->sp())); |
618 input_->SetRegister(ebp.code(), reinterpret_cast<intptr_t>(frame->fp())); | 618 input_->SetRegister(ebp.code(), reinterpret_cast<intptr_t>(frame->fp())); |
619 for (int i = 0; i < DoubleRegister::kNumAllocatableRegisters; i++) { | 619 for (int i = 0; i < DoubleRegister::kNumAllocatableRegisters; i++) { |
620 input_->SetDoubleRegister(i, 0.0); | 620 input_->SetDoubleRegister(i, 0.0); |
621 } | 621 } |
622 | 622 |
623 // Fill the frame content from the actual data on the frame. | 623 // Fill the frame content from the actual data on the frame. |
624 for (intptr_t i = 0; i < input_->GetFrameSize(); i += kPointerSize) { | 624 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) { |
625 input_->SetFrameSlot(i, Memory::uint32_at(tos + i)); | 625 input_->SetFrameSlot(i, Memory::uint32_at(tos + i)); |
626 } | 626 } |
627 } | 627 } |
628 | 628 |
629 | 629 |
630 #define __ masm()-> | 630 #define __ masm()-> |
631 | 631 |
632 void Deoptimizer::EntryGenerator::Generate() { | 632 void Deoptimizer::EntryGenerator::Generate() { |
633 GeneratePrologue(); | 633 GeneratePrologue(); |
634 CpuFeatures::Scope scope(SSE2); | 634 CpuFeatures::Scope scope(SSE2); |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 } | 792 } |
793 __ bind(&done); | 793 __ bind(&done); |
794 } | 794 } |
795 | 795 |
796 #undef __ | 796 #undef __ |
797 | 797 |
798 | 798 |
799 } } // namespace v8::internal | 799 } } // namespace v8::internal |
800 | 800 |
801 #endif // V8_TARGET_ARCH_IA32 | 801 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |