| 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 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1676 // address. It expects to find the address just after the svc instruction. | 1676 // address. It expects to find the address just after the svc instruction. |
| 1677 BlockConstPoolScope block_const_pool(this); | 1677 BlockConstPoolScope block_const_pool(this); |
| 1678 if (code >= 0) { | 1678 if (code >= 0) { |
| 1679 svc(kStopCode + code, cond); | 1679 svc(kStopCode + code, cond); |
| 1680 } else { | 1680 } else { |
| 1681 svc(kStopCode + kMaxStopCode, cond); | 1681 svc(kStopCode + kMaxStopCode, cond); |
| 1682 } | 1682 } |
| 1683 emit(reinterpret_cast<Instr>(msg)); | 1683 emit(reinterpret_cast<Instr>(msg)); |
| 1684 } | 1684 } |
| 1685 #else // def __arm__ | 1685 #else // def __arm__ |
| 1686 #ifdef CAN_USE_ARMV5_INSTRUCTIONS | |
| 1687 if (cond != al) { | 1686 if (cond != al) { |
| 1688 Label skip; | 1687 Label skip; |
| 1689 b(&skip, NegateCondition(cond)); | 1688 b(&skip, NegateCondition(cond)); |
| 1690 bkpt(0); | 1689 bkpt(0); |
| 1691 bind(&skip); | 1690 bind(&skip); |
| 1692 } else { | 1691 } else { |
| 1693 bkpt(0); | 1692 bkpt(0); |
| 1694 } | 1693 } |
| 1695 #else // ndef CAN_USE_ARMV5_INSTRUCTIONS | |
| 1696 svc(0x9f0001, cond); | |
| 1697 #endif // ndef CAN_USE_ARMV5_INSTRUCTIONS | |
| 1698 #endif // def __arm__ | 1694 #endif // def __arm__ |
| 1699 } | 1695 } |
| 1700 | 1696 |
| 1701 | 1697 |
| 1702 void Assembler::bkpt(uint32_t imm16) { // v5 and above | 1698 void Assembler::bkpt(uint32_t imm16) { // v5 and above |
| 1703 ASSERT(is_uint16(imm16)); | 1699 ASSERT(is_uint16(imm16)); |
| 1704 emit(al | B24 | B21 | (imm16 >> 4)*B8 | BKPT | (imm16 & 0xf)); | 1700 emit(al | B24 | B21 | (imm16 >> 4)*B8 | BKPT | (imm16 & 0xf)); |
| 1705 } | 1701 } |
| 1706 | 1702 |
| 1707 | 1703 |
| (...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3083 | 3079 |
| 3084 // Since a constant pool was just emitted, move the check offset forward by | 3080 // Since a constant pool was just emitted, move the check offset forward by |
| 3085 // the standard interval. | 3081 // the standard interval. |
| 3086 next_buffer_check_ = pc_offset() + kCheckPoolInterval; | 3082 next_buffer_check_ = pc_offset() + kCheckPoolInterval; |
| 3087 } | 3083 } |
| 3088 | 3084 |
| 3089 | 3085 |
| 3090 } } // namespace v8::internal | 3086 } } // namespace v8::internal |
| 3091 | 3087 |
| 3092 #endif // V8_TARGET_ARCH_ARM | 3088 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |