Index: src/mips/macro-assembler-mips.h |
diff --git a/src/mips/macro-assembler-mips.h b/src/mips/macro-assembler-mips.h |
index acf62f25b56213162ae65f3ea6db153df7d13957..774449cab8433ecb08f83919f10c2b60383d2810 100644 |
--- a/src/mips/macro-assembler-mips.h |
+++ b/src/mips/macro-assembler-mips.h |
@@ -1614,7 +1614,14 @@ const Operand& rt = Operand(zero_reg), BranchDelaySlot bd = PROTECT |
// an assertion to fail. |
class CodePatcher { |
public: |
- CodePatcher(byte* address, int instructions); |
+ enum FlushICache { |
+ FLUSH, |
+ DONT_FLUSH |
+ }; |
+ |
+ CodePatcher(byte* address, |
+ int instructions, |
+ FlushICache flush_cache = FLUSH); |
virtual ~CodePatcher(); |
// Macro assembler to emit code. |
@@ -1634,6 +1641,7 @@ class CodePatcher { |
byte* address_; // The address of the code being patched. |
int size_; // Number of bytes of the expected patch size. |
MacroAssembler masm_; // Macro assembler used to generate the code. |
+ FlushICache flush_cache_; // Whether to flush the I cache after patching. |
}; |