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, ...@@ -269,29 +269,29 @@ FPUCondition FlagsConditionToConditionCmpFPU(bool* predicate,
FlagsCondition condition) { FlagsCondition condition) {
switch (condition) { switch (condition) {
case kEqual: case kEqual:
predicate = true; *predicate = true;
return EQ; return EQ;
case kNotEqual: case kNotEqual:
predicate = false; *predicate = false;
return EQ; return EQ;
case kUnsignedLessThan: case kUnsignedLessThan:
predicate = true; *predicate = true;
return OLT; return OLT;
case kUnsignedGreaterThanOrEqual: case kUnsignedGreaterThanOrEqual:
predicate = false; *predicate = false;
return OLT; return OLT;
case kUnsignedLessThanOrEqual: case kUnsignedLessThanOrEqual:
predicate = true; *predicate = true;
return OLE; return OLE;
case kUnsignedGreaterThan: case kUnsignedGreaterThan:
predicate = false; *predicate = false;
return OLE; return OLE;
case kUnorderedEqual: case kUnorderedEqual:
case kUnorderedNotEqual: case kUnorderedNotEqual:
predicate = true; *predicate = true;
break; break;
default: default:
predicate = true; *predicate = true;
break; break;
} }
UNREACHABLE(); UNREACHABLE();
......
...@@ -282,29 +282,29 @@ FPUCondition FlagsConditionToConditionCmpFPU(bool* predicate, ...@@ -282,29 +282,29 @@ FPUCondition FlagsConditionToConditionCmpFPU(bool* predicate,
FlagsCondition condition) { FlagsCondition condition) {
switch (condition) { switch (condition) {
case kEqual: case kEqual:
predicate = true; *predicate = true;
return EQ; return EQ;
case kNotEqual: case kNotEqual:
predicate = false; *predicate = false;
return EQ; return EQ;
case kUnsignedLessThan: case kUnsignedLessThan:
predicate = true; *predicate = true;
return OLT; return OLT;
case kUnsignedGreaterThanOrEqual: case kUnsignedGreaterThanOrEqual:
predicate = false; *predicate = false;
return OLT; return OLT;
case kUnsignedLessThanOrEqual: case kUnsignedLessThanOrEqual:
predicate = true; *predicate = true;
return OLE; return OLE;
case kUnsignedGreaterThan: case kUnsignedGreaterThan:
predicate = false; *predicate = false;
return OLE; return OLE;
case kUnorderedEqual: case kUnorderedEqual:
case kUnorderedNotEqual: case kUnorderedNotEqual:
predicate = true; *predicate = true;
break; break;
default: default:
predicate = true; *predicate = true;
break; break;
} }
UNREACHABLE(); 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