| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <assert.h> // For assert | 5 #include <assert.h> // For assert |
| 6 #include <limits.h> // For LONG_MIN, LONG_MAX. | 6 #include <limits.h> // For LONG_MIN, LONG_MAX. |
| 7 | 7 |
| 8 #if V8_TARGET_ARCH_PPC | 8 #if V8_TARGET_ARCH_PPC |
| 9 | 9 |
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 | 45 |
| 46 | 46 |
| 47 void MacroAssembler::Jump(intptr_t target, RelocInfo::Mode rmode, | 47 void MacroAssembler::Jump(intptr_t target, RelocInfo::Mode rmode, |
| 48 Condition cond, CRegister cr) { | 48 Condition cond, CRegister cr) { |
| 49 Label skip; | 49 Label skip; |
| 50 | 50 |
| 51 if (cond != al) b(NegateCondition(cond), &skip, cr); | 51 if (cond != al) b(NegateCondition(cond), &skip, cr); |
| 52 | 52 |
| 53 DCHECK(rmode == RelocInfo::CODE_TARGET || rmode == RelocInfo::RUNTIME_ENTRY || | 53 DCHECK(rmode == RelocInfo::CODE_TARGET || rmode == RelocInfo::RUNTIME_ENTRY || |
| 54 rmode == RelocInfo::CONSTRUCT_CALL); | 54 rmode == RelocInfo::CODE_TARGET); |
| 55 | 55 |
| 56 mov(ip, Operand(target, rmode)); | 56 mov(ip, Operand(target, rmode)); |
| 57 mtctr(ip); | 57 mtctr(ip); |
| 58 bctr(); | 58 bctr(); |
| 59 | 59 |
| 60 bind(&skip); | 60 bind(&skip); |
| 61 } | 61 } |
| 62 | 62 |
| 63 | 63 |
| 64 void MacroAssembler::Jump(Address target, RelocInfo::Mode rmode, Condition cond, | 64 void MacroAssembler::Jump(Address target, RelocInfo::Mode rmode, Condition cond, |
| (...skipping 4338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4403 } | 4403 } |
| 4404 if (mag.shift > 0) srawi(result, result, mag.shift); | 4404 if (mag.shift > 0) srawi(result, result, mag.shift); |
| 4405 ExtractBit(r0, dividend, 31); | 4405 ExtractBit(r0, dividend, 31); |
| 4406 add(result, result, r0); | 4406 add(result, result, r0); |
| 4407 } | 4407 } |
| 4408 | 4408 |
| 4409 } // namespace internal | 4409 } // namespace internal |
| 4410 } // namespace v8 | 4410 } // namespace v8 |
| 4411 | 4411 |
| 4412 #endif // V8_TARGET_ARCH_PPC | 4412 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |