| Index: src/x87/macro-assembler-x87.cc
|
| diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc
|
| index 09dd474f0af3d9616de5a9ae52e5246bbd841a79..5c599e6668bc75c75db71af230bafacfdbb7915a 100644
|
| --- a/src/x87/macro-assembler-x87.cc
|
| +++ b/src/x87/macro-assembler-x87.cc
|
| @@ -2660,10 +2660,10 @@ bool AreAliased(Register reg1,
|
| #endif
|
|
|
|
|
| -CodePatcher::CodePatcher(byte* address, int size)
|
| +CodePatcher::CodePatcher(Isolate* isolate, byte* address, int size)
|
| : address_(address),
|
| size_(size),
|
| - masm_(NULL, address, size + Assembler::kGap, CodeObjectRequired::kNo) {
|
| + masm_(isolate, address, size + Assembler::kGap, CodeObjectRequired::kNo) {
|
| // 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
|
| // bytes of instructions without failing with buffer size constraints.
|
| @@ -2673,7 +2673,7 @@ CodePatcher::CodePatcher(byte* address, int size)
|
|
|
| CodePatcher::~CodePatcher() {
|
| // Indicate that code has changed.
|
| - Assembler::FlushICacheWithoutIsolate(address_, size_);
|
| + Assembler::FlushICache(masm_.isolate(), address_, size_);
|
|
|
| // Check that the code was patched as expected.
|
| DCHECK(masm_.pc_ == address_ + size_);
|
|
|