| Index: src/arm/macro-assembler-arm.h
|
| diff --git a/src/arm/macro-assembler-arm.h b/src/arm/macro-assembler-arm.h
|
| index cff9ac7f631cf1ed7d78273793a59a995c425338..9abd5a0c3da381152c086379481c6e4e179e0610 100644
|
| --- a/src/arm/macro-assembler-arm.h
|
| +++ b/src/arm/macro-assembler-arm.h
|
| @@ -1429,7 +1429,14 @@ class MacroAssembler: public Assembler {
|
| // 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.
|
| @@ -1449,6 +1456,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.
|
| };
|
|
|
|
|
|
|