| 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 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1777 } | 1777 } |
| 1778 | 1778 |
| 1779 | 1779 |
| 1780 bool Assembler::ImmediateFitsAddrMode1Instruction(int32_t imm32) { | 1780 bool Assembler::ImmediateFitsAddrMode1Instruction(int32_t imm32) { |
| 1781 uint32_t dummy1; | 1781 uint32_t dummy1; |
| 1782 uint32_t dummy2; | 1782 uint32_t dummy2; |
| 1783 return fits_shifter(imm32, &dummy1, &dummy2, NULL); | 1783 return fits_shifter(imm32, &dummy1, &dummy2, NULL); |
| 1784 } | 1784 } |
| 1785 | 1785 |
| 1786 | 1786 |
| 1787 void Assembler::BlockConstPoolFor(int instructions) { |
| 1788 BlockConstPoolBefore(pc_offset() + instructions * kInstrSize); |
| 1789 } |
| 1790 |
| 1791 |
| 1787 // Debugging. | 1792 // Debugging. |
| 1788 void Assembler::RecordJSReturn() { | 1793 void Assembler::RecordJSReturn() { |
| 1789 WriteRecordedPositions(); | 1794 WriteRecordedPositions(); |
| 1790 CheckBuffer(); | 1795 CheckBuffer(); |
| 1791 RecordRelocInfo(RelocInfo::JS_RETURN); | 1796 RecordRelocInfo(RelocInfo::JS_RETURN); |
| 1792 } | 1797 } |
| 1793 | 1798 |
| 1794 | 1799 |
| 1795 void Assembler::RecordComment(const char* msg) { | 1800 void Assembler::RecordComment(const char* msg) { |
| 1796 if (FLAG_debug_code) { | 1801 if (FLAG_debug_code) { |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2020 bind(&after_pool); | 2025 bind(&after_pool); |
| 2021 } | 2026 } |
| 2022 | 2027 |
| 2023 // Since a constant pool was just emitted, move the check offset forward by | 2028 // Since a constant pool was just emitted, move the check offset forward by |
| 2024 // the standard interval. | 2029 // the standard interval. |
| 2025 next_buffer_check_ = pc_offset() + kCheckConstInterval; | 2030 next_buffer_check_ = pc_offset() + kCheckConstInterval; |
| 2026 } | 2031 } |
| 2027 | 2032 |
| 2028 | 2033 |
| 2029 } } // namespace v8::internal | 2034 } } // namespace v8::internal |
| OLD | NEW |