Get rid of forward exit on DoubleAsInt32
[WebKit-https.git] / Source / JavaScriptCore / assembler / AbstractMacroAssembler.h
index a0b7b73867d04bed919e09fd511481bfd36d273e..2cb452b8739e7e57a7761852787757cbc96408fb 100644 (file)
@@ -29,6 +29,7 @@
 #include "AssemblerBuffer.h"
 #include "CodeLocation.h"
 #include "MacroAssemblerCodeRef.h"
+#include "Options.h"
 #include <wtf/CryptographicallyRandomNumber.h>
 #include <wtf/Noncopyable.h>
 
@@ -63,6 +64,21 @@ inline bool isX86()
 #endif
 }
 
+inline bool optimizeForARMv7s()
+{
+    return isARMv7s() && Options::enableArchitectureSpecificOptimizations();
+}
+
+inline bool optimizeForARM64()
+{
+    return isARM64() && Options::enableArchitectureSpecificOptimizations();
+}
+
+inline bool optimizeForX86()
+{
+    return isX86() && Options::enableArchitectureSpecificOptimizations();
+}
+
 class LinkBuffer;
 class RepatchBuffer;
 class Watchpoint;