Skip to content

Commit 3b6b21f

Browse files
backesV8 LUCI CQ
authored andcommitted
[liftoff] Allow bailout for missing ARMv7
The bailout is there explicitly in the code, so we should allow it in {CheckBailoutAllowed}. [email protected] Bug: v8:12527 Change-Id: Ifd906afb5f034f05c2bf7d9a28e3ab458549e7ef Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3372915 Reviewed-by: Andreas Haas <[email protected]> Commit-Queue: Clemens Backes <[email protected]> Cr-Commit-Position: refs/heads/main@{#78515}
1 parent 1b3d232 commit 3b6b21f

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/wasm/baseline/arm/liftoff-assembler-arm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ inline void EmitAnyTrue(LiftoffAssembler* assm, LiftoffRegister dst,
442442

443443
int LiftoffAssembler::PrepareStackFrame() {
444444
if (!CpuFeatures::IsSupported(ARMv7)) {
445-
bailout(kUnsupportedArchitecture, "Armv6 not supported");
445+
bailout(kUnsupportedArchitecture, "Liftoff needs ARMv7");
446446
return 0;
447447
}
448448
uint32_t offset = static_cast<uint32_t>(pc_offset());

src/wasm/baseline/liftoff-compiler.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,13 @@ void CheckBailoutAllowed(LiftoffBailoutReason reason, const char* detail,
316316
return;
317317
#endif
318318

319+
#if V8_TARGET_ARCH_ARM
320+
// Allow bailout for missing ARMv7 support.
321+
if (!CpuFeatures::IsSupported(ARMv7) && reason == kUnsupportedArchitecture) {
322+
return;
323+
}
324+
#endif
325+
319326
#define LIST_FEATURE(name, ...) kFeature_##name,
320327
constexpr WasmFeatures kExperimentalFeatures{
321328
FOREACH_WASM_EXPERIMENTAL_FEATURE_FLAG(LIST_FEATURE)};

0 commit comments

Comments
 (0)