Commit db2c7dd4 authored by Yu Yin's avatar Yu Yin Committed by Commit Bot

[mips][wasm] Fix non-const references in Liftoff.

Fix build error which is introduced by 9f8d52df
https://crrev.com/c/1701844

Change-Id: I31266daf46ddc67390379f935568e3443593a262
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1703988Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Commit-Queue: Yu Yin <xwafish@gmail.com>
Cr-Commit-Position: refs/heads/master@{#62756}
parent a99512c7
......@@ -1239,25 +1239,25 @@ inline FPUCondition ConditionToConditionCmpFPU(Condition condition,
bool* predicate) {
switch (condition) {
case kEqual:
predicate = true;
*predicate = true;
return EQ;
case kUnequal:
predicate = false;
*predicate = false;
return EQ;
case kUnsignedLessThan:
predicate = true;
*predicate = true;
return OLT;
case kUnsignedGreaterEqual:
predicate = false;
*predicate = false;
return OLT;
case kUnsignedLessEqual:
predicate = true;
*predicate = true;
return OLE;
case kUnsignedGreaterThan:
predicate = false;
*predicate = false;
return OLE;
default:
predicate = true;
*predicate = true;
break;
}
UNREACHABLE();
......@@ -1312,7 +1312,7 @@ void LiftoffAssembler::emit_f64_set_cond(Condition cond, Register dst,
TurboAssembler::li(dst, 1);
bool predicate;
FPUCondition fcond = liftoff::ConditionToConditionCmpFPU(cond, predicate);
FPUCondition fcond = liftoff::ConditionToConditionCmpFPU(cond, &predicate);
TurboAssembler::CompareF64(fcond, lhs, rhs);
if (predicate) {
TurboAssembler::LoadZeroIfNotFPUCondition(dst);
......
......@@ -1098,25 +1098,25 @@ inline FPUCondition ConditionToConditionCmpFPU(Condition condition,
bool* predicate) {
switch (condition) {
case kEqual:
predicate = true;
*predicate = true;
return EQ;
case kUnequal:
predicate = false;
*predicate = false;
return EQ;
case kUnsignedLessThan:
predicate = true;
*predicate = true;
return OLT;
case kUnsignedGreaterEqual:
predicate = false;
*predicate = false;
return OLT;
case kUnsignedLessEqual:
predicate = true;
*predicate = true;
return OLE;
case kUnsignedGreaterThan:
predicate = false;
*predicate = false;
return OLE;
default:
predicate = true;
*predicate = true;
break;
}
UNREACHABLE();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment