Commit d9abfa15 authored by Mu Tao's avatar Mu Tao Committed by Commit Bot

[mips][compiler] Replace remaining mutable reference arguments

Port 2304c194

Change-Id: I0e46424ddb647355d21b1e54cf96b1e5503627ce
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1800572
Auto-Submit: Mu Tao <pamilty@gmail.com>
Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#63716}
parent 6ad781cc
......@@ -269,29 +269,29 @@ FPUCondition FlagsConditionToConditionCmpFPU(bool* predicate,
FlagsCondition condition) {
switch (condition) {
case kEqual:
predicate = true;
*predicate = true;
return EQ;
case kNotEqual:
predicate = false;
*predicate = false;
return EQ;
case kUnsignedLessThan:
predicate = true;
*predicate = true;
return OLT;
case kUnsignedGreaterThanOrEqual:
predicate = false;
*predicate = false;
return OLT;
case kUnsignedLessThanOrEqual:
predicate = true;
*predicate = true;
return OLE;
case kUnsignedGreaterThan:
predicate = false;
*predicate = false;
return OLE;
case kUnorderedEqual:
case kUnorderedNotEqual:
predicate = true;
*predicate = true;
break;
default:
predicate = true;
*predicate = true;
break;
}
UNREACHABLE();
......
......@@ -282,29 +282,29 @@ FPUCondition FlagsConditionToConditionCmpFPU(bool* predicate,
FlagsCondition condition) {
switch (condition) {
case kEqual:
predicate = true;
*predicate = true;
return EQ;
case kNotEqual:
predicate = false;
*predicate = false;
return EQ;
case kUnsignedLessThan:
predicate = true;
*predicate = true;
return OLT;
case kUnsignedGreaterThanOrEqual:
predicate = false;
*predicate = false;
return OLT;
case kUnsignedLessThanOrEqual:
predicate = true;
*predicate = true;
return OLE;
case kUnsignedGreaterThan:
predicate = false;
*predicate = false;
return OLE;
case kUnorderedEqual:
case kUnorderedNotEqual:
predicate = true;
*predicate = true;
break;
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