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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 for (int i = 0; i < Register::kNumRegisters; i++) { | 543 for (int i = 0; i < Register::kNumRegisters; i++) { |
544 input_->SetRegister(i, i * 4); | 544 input_->SetRegister(i, i * 4); |
545 } | 545 } |
546 input_->SetRegister(sp.code(), reinterpret_cast<intptr_t>(frame->sp())); | 546 input_->SetRegister(sp.code(), reinterpret_cast<intptr_t>(frame->sp())); |
547 input_->SetRegister(fp.code(), reinterpret_cast<intptr_t>(frame->fp())); | 547 input_->SetRegister(fp.code(), reinterpret_cast<intptr_t>(frame->fp())); |
548 for (int i = 0; i < DoubleRegister::kNumAllocatableRegisters; i++) { | 548 for (int i = 0; i < DoubleRegister::kNumAllocatableRegisters; i++) { |
549 input_->SetDoubleRegister(i, 0.0); | 549 input_->SetDoubleRegister(i, 0.0); |
550 } | 550 } |
551 | 551 |
552 // Fill the frame content from the actual data on the frame. | 552 // Fill the frame content from the actual data on the frame. |
553 for (intptr_t i = 0; i < input_->GetFrameSize(); i += kPointerSize) { | 553 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) { |
554 input_->SetFrameSlot(i, Memory::uint32_at(tos + i)); | 554 input_->SetFrameSlot(i, Memory::uint32_at(tos + i)); |
555 } | 555 } |
556 } | 556 } |
557 | 557 |
558 | 558 |
559 #define __ masm()-> | 559 #define __ masm()-> |
560 | 560 |
561 // This code tries to be close to ia32 code so that any changes can be | 561 // This code tries to be close to ia32 code so that any changes can be |
562 // easily ported. | 562 // easily ported. |
563 void Deoptimizer::EntryGenerator::Generate() { | 563 void Deoptimizer::EntryGenerator::Generate() { |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 __ push(ip); | 762 __ push(ip); |
763 __ b(&done); | 763 __ b(&done); |
764 ASSERT(masm()->pc_offset() - start == table_entry_size_); | 764 ASSERT(masm()->pc_offset() - start == table_entry_size_); |
765 } | 765 } |
766 __ bind(&done); | 766 __ bind(&done); |
767 } | 767 } |
768 | 768 |
769 #undef __ | 769 #undef __ |
770 | 770 |
771 } } // namespace v8::internal | 771 } } // namespace v8::internal |
OLD | NEW |