OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 2730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2741 // Don't bother to check for the emit calls below. | 2741 // Don't bother to check for the emit calls below. |
2742 next_buffer_check_ = no_const_pool_before_; | 2742 next_buffer_check_ = no_const_pool_before_; |
2743 | 2743 |
2744 // Emit jump over constant pool if necessary. | 2744 // Emit jump over constant pool if necessary. |
2745 Label after_pool; | 2745 Label after_pool; |
2746 if (require_jump) b(&after_pool); | 2746 if (require_jump) b(&after_pool); |
2747 | 2747 |
2748 RecordComment("[ Constant Pool"); | 2748 RecordComment("[ Constant Pool"); |
2749 | 2749 |
2750 // Put down constant pool marker "Undefined instruction" as specified by | 2750 // Put down constant pool marker "Undefined instruction" as specified by |
2751 // A3.1 Instruction set encoding. | 2751 // A5.6 (ARMv7) Instruction set encoding. |
2752 emit(0x03000000 | num_prinfo_); | 2752 emit(kConstantPoolMarker | num_prinfo_); |
2753 | 2753 |
2754 // Emit constant pool entries. | 2754 // Emit constant pool entries. |
2755 for (int i = 0; i < num_prinfo_; i++) { | 2755 for (int i = 0; i < num_prinfo_; i++) { |
2756 RelocInfo& rinfo = prinfo_[i]; | 2756 RelocInfo& rinfo = prinfo_[i]; |
2757 ASSERT(rinfo.rmode() != RelocInfo::COMMENT && | 2757 ASSERT(rinfo.rmode() != RelocInfo::COMMENT && |
2758 rinfo.rmode() != RelocInfo::POSITION && | 2758 rinfo.rmode() != RelocInfo::POSITION && |
2759 rinfo.rmode() != RelocInfo::STATEMENT_POSITION); | 2759 rinfo.rmode() != RelocInfo::STATEMENT_POSITION); |
2760 Instr instr = instr_at(rinfo.pc()); | 2760 Instr instr = instr_at(rinfo.pc()); |
2761 | 2761 |
2762 // Instruction to patch must be a ldr/str [pc, #offset]. | 2762 // Instruction to patch must be a ldr/str [pc, #offset]. |
(...skipping 21 matching lines...) Expand all Loading... |
2784 | 2784 |
2785 // Since a constant pool was just emitted, move the check offset forward by | 2785 // Since a constant pool was just emitted, move the check offset forward by |
2786 // the standard interval. | 2786 // the standard interval. |
2787 next_buffer_check_ = pc_offset() + kCheckConstInterval; | 2787 next_buffer_check_ = pc_offset() + kCheckConstInterval; |
2788 } | 2788 } |
2789 | 2789 |
2790 | 2790 |
2791 } } // namespace v8::internal | 2791 } } // namespace v8::internal |
2792 | 2792 |
2793 #endif // V8_TARGET_ARCH_ARM | 2793 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |