Differential D14872 Diff 40857 www/webkit2-gtk3/files/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h
Changeset View
Changeset View
Standalone View
Standalone View
www/webkit2-gtk3/files/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h
--- Source/JavaScriptCore/assembler/ARM64Assembler.h.orig 2015-08-06 08:21:27 UTC | --- Source/JavaScriptCore/assembler/ARM64Assembler.h.orig 2018-03-05 09:28:05 UTC | ||||
+++ Source/JavaScriptCore/assembler/ARM64Assembler.h | +++ Source/JavaScriptCore/assembler/ARM64Assembler.h | ||||
@@ -2862,6 +2862,8 @@ public: | @@ -2856,6 +2856,8 @@ class ARM64Assembler { (public) | ||||
{ | { | ||||
#if OS(IOS) | #if OS(IOS) | ||||
sys_cache_control(kCacheFunctionPrepareForExecution, code, size); | sys_cache_control(kCacheFunctionPrepareForExecution, code, size); | ||||
+#elif OS(FREEBSD) || OS(NETBSD) | +#elif OS(FREEBSD) || OS(NETBSD) | ||||
+ __clear_cache(code, reinterpret_cast<char*>(code) + size); | + __clear_cache(code, reinterpret_cast<char*>(code) + size); | ||||
#elif OS(LINUX) | #elif OS(LINUX) | ||||
size_t page = pageSize(); | size_t page = pageSize(); | ||||
uintptr_t current = reinterpret_cast<uintptr_t>(code); | uintptr_t current = reinterpret_cast<uintptr_t>(code); |