Index: src/ia32/codegen-ia32.cc |
diff --git a/src/ia32/codegen-ia32.cc b/src/ia32/codegen-ia32.cc |
index 2e7b19c5d42b22338dc7c80b3702a16b6b8cee47..cf42dd99852d4bd2ee27e9b62cfa79a0b8f98e8d 100644 |
--- a/src/ia32/codegen-ia32.cc |
+++ b/src/ia32/codegen-ia32.cc |
@@ -187,13 +187,13 @@ class LabelConverter { |
}; |
-MemMoveFunction CreateMemMoveFunction() { |
+MemMoveFunction CreateMemMoveFunction(Isolate* isolate) { |
size_t actual_size; |
// Allocate buffer in executable space. |
byte* buffer = |
static_cast<byte*>(base::OS::Allocate(1 * KB, &actual_size, true)); |
- if (buffer == NULL) return NULL; |
- MacroAssembler masm(NULL, buffer, static_cast<int>(actual_size), |
+ if (buffer == nullptr) return nullptr; |
+ MacroAssembler masm(isolate, buffer, static_cast<int>(actual_size), |
CodeObjectRequired::kNo); |
LabelConverter conv(buffer); |
@@ -507,7 +507,7 @@ MemMoveFunction CreateMemMoveFunction() { |
CodeDesc desc; |
masm.GetCode(&desc); |
DCHECK(!RelocInfo::RequiresRelocation(desc)); |
- Assembler::FlushICacheWithoutIsolate(buffer, actual_size); |
+ Assembler::FlushICache(isolate, buffer, actual_size); |
base::OS::ProtectCode(buffer, actual_size); |
// TODO(jkummerow): It would be nice to register this code creation event |
// with the PROFILE / GDBJIT system. |