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

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

Change-Id: I31266daf46ddc67390379f935568e3443593a262
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1703988
Reviewed-by: Clemens Hammacher <clemensh@chromium.org>
Commit-Queue: Yu Yin <xwafish@gmail.com>
Cr-Commit-Position: refs/heads/master@{#62756}
This commit is contained in:
Yu Yin 2019-07-17 11:09:41 +08:00 committed by Commit Bot
parent a99512c700
commit db2c7dd43f
2 changed files with 15 additions and 15 deletions

View File

@ -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);

View File

@ -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();