# =======================================================
@depends(target, "--enable-record-tuple")
def jit_default(target, enable_record_tuple):
- if enable_record_tuple:
- return False
- if target.cpu in (
- "x86",
- "x86_64",
- "arm",
- "aarch64",
- "mips32",
- "mips64",
- "loongarch64",
- ):
- return True
+ #if enable_record_tuple:
+ # return False
+ #if target.cpu in (
+ # "x86",
+ # "x86_64",
+ # "arm",
+ # "aarch64",
+ # "mips32",
+ # "mips64",
+ # "loongarch64",
+ #):
+ # return True
return False
}""" % {
"fun_name": fun_name,
}
- if cpu_arch == "arm":
- return r"""
- INLINE_ATTR void %(fun_name)s() {
- asm volatile ("dmb sy\n\t" ::: "memory");
- }""" % {
- "fun_name": fun_name,
- }
+ #if cpu_arch == "arm":
+ # return r"""
+ # INLINE_ATTR void %(fun_name)s() {
+ # asm volatile ("dmb sy\n\t" ::: "memory");
+ # }""" % {
+ # "fun_name": fun_name,
+ # }
raise Exception("Unexpected arch")
def generate_atomics_header(c_out):
contents = ""
- if cpu_arch in ("x86", "x86_64", "arm", "aarch64"):
+ if cpu_arch in ("x86", "x86_64", "aarch64"):
contents += "#define JS_HAVE_GENERATED_ATOMIC_OPS 1"
# `fence` performs a full memory barrier.
// Explicitly exclude tier-1 platforms.
-#if (defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || \
- defined(_M_IX86) || defined(__arm__) || defined(__aarch64__))
-# error "Do not use on a tier-1 platform where inline assembly is available"
-#endif
+//#if (defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || \
+// defined(_M_IX86) || defined(__arm__) || defined(__aarch64__))
+//# error "Do not use on a tier-1 platform where inline assembly is available"
+//#endif
#if !(defined(__clang__) || defined(__GNUC__))
# error "This file only for gcc/Clang"