Index: src/arm64/assembler-arm64.h |
diff --git a/src/arm64/assembler-arm64.h b/src/arm64/assembler-arm64.h |
index 41060122d8ba52d66bb1711b9093e0d9055d3632..95321c8453cda11687d1a508634e4ec3d013f56f 100644 |
--- a/src/arm64/assembler-arm64.h |
+++ b/src/arm64/assembler-arm64.h |
@@ -2150,15 +2150,14 @@ class PatchingAssembler : public Assembler { |
// If more or fewer instructions than expected are generated or if some |
// relocation information takes space in the buffer, the PatchingAssembler |
// will crash trying to grow the buffer. |
- PatchingAssembler(Instruction* start, unsigned count) |
- : Assembler(NULL, |
- reinterpret_cast<byte*>(start), |
- count * kInstructionSize + kGap) { |
+ PatchingAssembler(Isolate* isolate, Instruction* start, unsigned count) |
+ : Assembler(isolate, reinterpret_cast<byte*>(start), |
+ count * kInstructionSize + kGap) { |
StartBlockPools(); |
} |
- PatchingAssembler(byte* start, unsigned count) |
- : Assembler(NULL, start, count * kInstructionSize + kGap) { |
+ PatchingAssembler(Isolate* isolate, byte* start, unsigned count) |
+ : Assembler(isolate, start, count * kInstructionSize + kGap) { |
// Block constant pool emission. |
StartBlockPools(); |
} |
@@ -2173,7 +2172,7 @@ class PatchingAssembler : public Assembler { |
DCHECK(IsConstPoolEmpty()); |
// Flush the Instruction cache. |
size_t length = buffer_size_ - kGap; |
- Assembler::FlushICacheWithoutIsolate(buffer_, length); |
+ Assembler::FlushICache(isolate(), buffer_, length); |
} |
// See definition of PatchAdrFar() for details. |