Index: src/mips64/macro-assembler-mips64.cc |
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
index 212a39608bc0e873776b0df4ff8e6a53a974aee1..919a310111f7db0cfd322054b4c54fb4e69dfb88 100644 |
--- a/src/mips64/macro-assembler-mips64.cc |
+++ b/src/mips64/macro-assembler-mips64.cc |
@@ -6208,11 +6208,11 @@ bool AreAliased(Register reg1, |
} |
-CodePatcher::CodePatcher(byte* address, int instructions, |
+CodePatcher::CodePatcher(Isolate* isolate, byte* address, int instructions, |
FlushICache flush_cache) |
: address_(address), |
size_(instructions * Assembler::kInstrSize), |
- masm_(NULL, address, size_ + Assembler::kGap, CodeObjectRequired::kNo), |
+ masm_(isolate, address, size_ + Assembler::kGap, CodeObjectRequired::kNo), |
flush_cache_(flush_cache) { |
// Create a new macro assembler pointing to the address of the code to patch. |
// The size is adjusted with kGap on order for the assembler to generate size |
@@ -6224,7 +6224,7 @@ CodePatcher::CodePatcher(byte* address, int instructions, |
CodePatcher::~CodePatcher() { |
// Indicate that code has changed. |
if (flush_cache_ == FLUSH) { |
- Assembler::FlushICacheWithoutIsolate(address_, size_); |
+ Assembler::FlushICache(masm_.isolate(), address_, size_); |
} |
// Check that the code was patched as expected. |
DCHECK(masm_.pc_ == address_ + size_); |