diff --git a/src/execution/frames.h b/src/execution/frames.h index 80ff2eab6d..d81a9dd878 100644 --- a/src/execution/frames.h +++ b/src/execution/frames.h @@ -176,7 +176,9 @@ class StackFrame { intptr_t type = marker >> kSmiTagSize; // TODO(petermarshall): There is a bug in the arm simulators that causes // invalid frame markers. -#if defined(USE_SIMULATOR) && (V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_ARM) +#if (defined(USE_SIMULATOR) && \ + (V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_ARM)) || \ + V8_TARGET_ARCH_RISCV64 if (static_cast(type) >= Type::NUMBER_OF_TYPES) { // Appease UBSan. return Type::NUMBER_OF_TYPES;