| Index: src/mips/macro-assembler-mips.cc
|
| diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc
|
| index 72e668c58e9ae4499ac6c37bc608bfd6a0dbb540..c53bf9d0880b692593f47a8da8e45c08008e36ad 100644
|
| --- a/src/mips/macro-assembler-mips.cc
|
| +++ b/src/mips/macro-assembler-mips.cc
|
| @@ -5802,11 +5802,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
|
| @@ -5818,7 +5818,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.
|
|
|