Index: src/arm/macro-assembler-arm.cc |
=================================================================== |
--- src/arm/macro-assembler-arm.cc (revision 6683) |
+++ src/arm/macro-assembler-arm.cc (working copy) |
@@ -2379,7 +2379,6 @@ |
} |
-#ifdef ENABLE_DEBUGGER_SUPPORT |
CodePatcher::CodePatcher(byte* address, int instructions) |
: address_(address), |
instructions_(instructions), |
@@ -2402,17 +2401,23 @@ |
} |
-void CodePatcher::Emit(Instr x) { |
- masm()->emit(x); |
+void CodePatcher::Emit(Instr instr) { |
+ masm()->emit(instr); |
} |
void CodePatcher::Emit(Address addr) { |
masm()->emit(reinterpret_cast<Instr>(addr)); |
} |
-#endif // ENABLE_DEBUGGER_SUPPORT |
+void CodePatcher::EmitCondition(Condition cond) { |
+ Instr instr = Assembler::instr_at(masm_.pc_); |
+ instr = (instr & ~kCondMask) | cond; |
+ masm_.emit(instr); |
+} |
+ |
+ |
} } // namespace v8::internal |
#endif // V8_TARGET_ARCH_ARM |