Commit c26c3338 authored by Georgia Kouveli's avatar Georgia Kouveli Committed by Commit Bot

[test] Remove superflous FlushICache calls.

MakeAssemblerBufferExecutable now flushes the i-cache, so we do
not need to do that again.

Change-Id: I46f5619167114cdb84064ef363106bee64282d1f
Reviewed-on: https://chromium-review.googlesource.com/1152813Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Commit-Queue: Georgia Kouveli <georgia.kouveli@arm.com>
Cr-Commit-Position: refs/heads/master@{#54822}
parent c608122b
...@@ -199,7 +199,6 @@ static void InitializeVM() { ...@@ -199,7 +199,6 @@ static void InitializeVM() {
#define RUN() \ #define RUN() \
MakeAssemblerBufferExecutable(buf, allocated); \ MakeAssemblerBufferExecutable(buf, allocated); \
Assembler::FlushICache(buf, masm.SizeOfGeneratedCode()); \
{ \ { \
void (*test_function)(void); \ void (*test_function)(void); \
memcpy(&test_function, &buf, sizeof(buf)); \ memcpy(&test_function, &buf, sizeof(buf)); \
......
...@@ -117,7 +117,6 @@ ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate, ...@@ -117,7 +117,6 @@ ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate,
CodeDesc desc; CodeDesc desc;
masm.GetCode(isolate, &desc); masm.GetCode(isolate, &desc);
MakeAssemblerBufferExecutable(buffer, allocated); MakeAssemblerBufferExecutable(buffer, allocated);
Assembler::FlushICache(buffer, allocated);
return (reinterpret_cast<ConvertDToIFunc>( return (reinterpret_cast<ConvertDToIFunc>(
reinterpret_cast<intptr_t>(buffer))); reinterpret_cast<intptr_t>(buffer)));
} }
......
...@@ -129,7 +129,6 @@ ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate, ...@@ -129,7 +129,6 @@ ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate,
CodeDesc desc; CodeDesc desc;
masm.GetCode(isolate, &desc); masm.GetCode(isolate, &desc);
MakeAssemblerBufferExecutable(buffer, allocated); MakeAssemblerBufferExecutable(buffer, allocated);
Assembler::FlushICache(buffer, allocated);
return (reinterpret_cast<ConvertDToIFunc>( return (reinterpret_cast<ConvertDToIFunc>(
reinterpret_cast<intptr_t>(buffer))); reinterpret_cast<intptr_t>(buffer)));
} }
......
...@@ -130,7 +130,6 @@ ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate, ...@@ -130,7 +130,6 @@ ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate,
CodeDesc desc; CodeDesc desc;
masm.GetCode(isolate, &desc); masm.GetCode(isolate, &desc);
MakeAssemblerBufferExecutable(buffer, allocated); MakeAssemblerBufferExecutable(buffer, allocated);
Assembler::FlushICache(buffer, allocated);
return (reinterpret_cast<ConvertDToIFunc>( return (reinterpret_cast<ConvertDToIFunc>(
reinterpret_cast<intptr_t>(buffer))); reinterpret_cast<intptr_t>(buffer)));
} }
......
...@@ -127,7 +127,6 @@ ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate, ...@@ -127,7 +127,6 @@ ConvertDToIFunc MakeConvertDToIFuncTrampoline(Isolate* isolate,
CodeDesc desc; CodeDesc desc;
masm.GetCode(isolate, &desc); masm.GetCode(isolate, &desc);
MakeAssemblerBufferExecutable(buffer, allocated); MakeAssemblerBufferExecutable(buffer, allocated);
Assembler::FlushICache(buffer, allocated);
return (reinterpret_cast<ConvertDToIFunc>( return (reinterpret_cast<ConvertDToIFunc>(
reinterpret_cast<intptr_t>(buffer))); reinterpret_cast<intptr_t>(buffer)));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment