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 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
586 (DwVfpRegister::kNumAllocatableRegisters - 1)); | 586 (DwVfpRegister::kNumAllocatableRegisters - 1)); |
587 #ifdef DEBUG | 587 #ifdef DEBUG |
588 for (int i = 0; i <= (DwVfpRegister::kNumAllocatableRegisters - 1); i++) { | 588 for (int i = 0; i <= (DwVfpRegister::kNumAllocatableRegisters - 1); i++) { |
589 ASSERT((DwVfpRegister::FromAllocationIndex(i).code() <= last.code()) && | 589 ASSERT((DwVfpRegister::FromAllocationIndex(i).code() <= last.code()) && |
590 (DwVfpRegister::FromAllocationIndex(i).code() >= first.code())); | 590 (DwVfpRegister::FromAllocationIndex(i).code() >= first.code())); |
591 } | 591 } |
592 #endif | 592 #endif |
593 __ vstm(db_w, sp, first, last); | 593 __ vstm(db_w, sp, first, last); |
594 | 594 |
595 // Push all 16 registers (needed to populate FrameDescription::registers_). | 595 // Push all 16 registers (needed to populate FrameDescription::registers_). |
596 // TODO(1588) Note that using pc with stm is deprecated, so we should perhaps | |
597 // handle this a bit differently. | |
m.m.capewell
2011/08/12 11:50:54
The ARM ARM also deprecates using sp in an stm. Ad
| |
596 __ stm(db_w, sp, restored_regs | sp.bit() | lr.bit() | pc.bit()); | 598 __ stm(db_w, sp, restored_regs | sp.bit() | lr.bit() | pc.bit()); |
597 | 599 |
598 const int kSavedRegistersAreaSize = | 600 const int kSavedRegistersAreaSize = |
599 (kNumberOfRegisters * kPointerSize) + kDoubleRegsSize; | 601 (kNumberOfRegisters * kPointerSize) + kDoubleRegsSize; |
600 | 602 |
601 // Get the bailout id from the stack. | 603 // Get the bailout id from the stack. |
602 __ ldr(r2, MemOperand(sp, kSavedRegistersAreaSize)); | 604 __ ldr(r2, MemOperand(sp, kSavedRegistersAreaSize)); |
603 | 605 |
604 // Get the address of the location in the code object if possible (r3) (return | 606 // Get the address of the location in the code object if possible (r3) (return |
605 // address for lazy deoptimization) and compute the fp-to-sp delta in | 607 // address for lazy deoptimization) and compute the fp-to-sp delta in |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
763 __ push(ip); | 765 __ push(ip); |
764 __ b(&done); | 766 __ b(&done); |
765 ASSERT(masm()->pc_offset() - start == table_entry_size_); | 767 ASSERT(masm()->pc_offset() - start == table_entry_size_); |
766 } | 768 } |
767 __ bind(&done); | 769 __ bind(&done); |
768 } | 770 } |
769 | 771 |
770 #undef __ | 772 #undef __ |
771 | 773 |
772 } } // namespace v8::internal | 774 } } // namespace v8::internal |
OLD | NEW |