Chromium Code Reviews| Index: runtime/vm/assembler_arm.cc |
| diff --git a/runtime/vm/assembler_arm.cc b/runtime/vm/assembler_arm.cc |
| index 5d69702364d5f9c8b4b724af631581ba6ea383e2..052173d17fa31fc339955e258f0057eb7c0f633a 100644 |
| --- a/runtime/vm/assembler_arm.cc |
| +++ b/runtime/vm/assembler_arm.cc |
| @@ -2261,6 +2261,14 @@ void Assembler::Asr(Register rd, Register rm, uint32_t shift_imm, |
| } |
| +void Assembler::AsrS(Register rd, Register rm, uint32_t shift_imm, |
| + Condition cond) { |
| + ASSERT(shift_imm != 0); // Do not use Asr if no shift is wanted. |
| + if (shift_imm == 32) shift_imm = 0; // Comply to UAL syntax. |
|
zra
2014/09/10 23:17:21
Please use curly braces.
Vyacheslav Egorov (Google)
2014/09/11 11:49:16
Done.
|
| + movs(rd, Operand(rm, ASR, shift_imm), cond); |
| +} |
| + |
| + |
| void Assembler::Asr(Register rd, Register rm, Register rs, Condition cond) { |
| mov(rd, Operand(rm, ASR, rs), cond); |
| } |