| 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 2127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2138 emit(al | B24 | B21 | (imm16 >> 4)*B8 | BKPT | (imm16 & 0xf)); | 2138 emit(al | B24 | B21 | (imm16 >> 4)*B8 | BKPT | (imm16 & 0xf)); |
| 2139 } | 2139 } |
| 2140 | 2140 |
| 2141 | 2141 |
| 2142 void Assembler::svc(uint32_t imm24, Condition cond) { | 2142 void Assembler::svc(uint32_t imm24, Condition cond) { |
| 2143 DCHECK(is_uint24(imm24)); | 2143 DCHECK(is_uint24(imm24)); |
| 2144 emit(cond | 15*B24 | imm24); | 2144 emit(cond | 15*B24 | imm24); |
| 2145 } | 2145 } |
| 2146 | 2146 |
| 2147 | 2147 |
| 2148 void Assembler::dmb(BarrierOption option) { |
| 2149 emit(kSpecialCondition | 0x57ff*B12 | 5*B4 | option); |
| 2150 } |
| 2151 |
| 2152 |
| 2153 void Assembler::dsb(BarrierOption option) { |
| 2154 emit(kSpecialCondition | 0x57ff*B12 | 4*B4 | option); |
| 2155 } |
| 2156 |
| 2157 |
| 2158 void Assembler::isb(BarrierOption option) { |
| 2159 emit(kSpecialCondition | 0x57ff*B12 | 6*B4 | option); |
| 2160 } |
| 2161 |
| 2162 |
| 2148 // Coprocessor instructions. | 2163 // Coprocessor instructions. |
| 2149 void Assembler::cdp(Coprocessor coproc, | 2164 void Assembler::cdp(Coprocessor coproc, |
| 2150 int opcode_1, | 2165 int opcode_1, |
| 2151 CRegister crd, | 2166 CRegister crd, |
| 2152 CRegister crn, | 2167 CRegister crn, |
| 2153 CRegister crm, | 2168 CRegister crm, |
| 2154 int opcode_2, | 2169 int opcode_2, |
| 2155 Condition cond) { | 2170 Condition cond) { |
| 2156 DCHECK(is_uint4(opcode_1) && is_uint3(opcode_2)); | 2171 DCHECK(is_uint4(opcode_1) && is_uint3(opcode_2)); |
| 2157 emit(cond | B27 | B26 | B25 | (opcode_1 & 15)*B20 | crn.code()*B16 | | 2172 emit(cond | B27 | B26 | B25 | (opcode_1 & 15)*B20 | crn.code()*B16 | |
| (...skipping 1975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4133 DCHECK(is_uint12(offset)); | 4148 DCHECK(is_uint12(offset)); |
| 4134 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset)); | 4149 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset)); |
| 4135 } | 4150 } |
| 4136 } | 4151 } |
| 4137 | 4152 |
| 4138 | 4153 |
| 4139 } // namespace internal | 4154 } // namespace internal |
| 4140 } // namespace v8 | 4155 } // namespace v8 |
| 4141 | 4156 |
| 4142 #endif // V8_TARGET_ARCH_ARM | 4157 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |