| Index: runtime/vm/intermediate_language_mips.cc
|
| diff --git a/runtime/vm/intermediate_language_mips.cc b/runtime/vm/intermediate_language_mips.cc
|
| index dafa9b83cfc1c27748457030af08ebb067aa8c45..77d542eb8422013358c1ee586259631667fca46d 100644
|
| --- a/runtime/vm/intermediate_language_mips.cc
|
| +++ b/runtime/vm/intermediate_language_mips.cc
|
| @@ -400,10 +400,10 @@ static void EmitEqualityAsInstanceCall(FlowGraphCompiler* compiler,
|
| __ lw(A0, Address(SP, 0 * kWordSize));
|
| __ addiu(SP, SP, Immediate(2 * kWordSize));
|
| __ beq(A1, A0, &is_true);
|
| - __ LoadObject(V0, (kind == Token::kEQ) ? Bool::False() : Bool::True());
|
| + __ LoadObject(V0, Bool::Get(kind != Token::kEQ));
|
| __ b(&equality_done);
|
| __ Bind(&is_true);
|
| - __ LoadObject(V0, (kind == Token::kEQ) ? Bool::True() : Bool::False());
|
| + __ LoadObject(V0, Bool::Get(kind == Token::kEQ));
|
| if (kind == Token::kNE) {
|
| // Skip not-equal result conversion.
|
| __ b(&equality_done);
|
| @@ -620,12 +620,10 @@ static void EmitCheckedStrictEqual(FlowGraphCompiler* compiler,
|
| Register result = locs.out().reg();
|
| __ beq(CMPRES, ZR, &is_equal);
|
| // Not equal.
|
| - __ LoadObject(result,
|
| - (kind == Token::kEQ) ? Bool::False() : Bool::True());
|
| + __ LoadObject(result, Bool::Get(kind != Token::kEQ));
|
| __ b(&done);
|
| __ Bind(&is_equal);
|
| - __ LoadObject(result,
|
| - (kind == Token::kEQ) ? Bool::True() : Bool::False());
|
| + __ LoadObject(result, Bool::Get(kind == Token::kEQ));
|
| __ Bind(&done);
|
|
|
| } else {
|
| @@ -3954,7 +3952,7 @@ void StrictCompareInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
| const bool result = (kind() == Token::kEQ_STRICT) ?
|
| left.constant().raw() == right.constant().raw() :
|
| left.constant().raw() != right.constant().raw();
|
| - __ LoadObject(locs()->out().reg(), result ? Bool::True() : Bool::False());
|
| + __ LoadObject(locs()->out().reg(), Bool::Get(result));
|
| return;
|
| }
|
| if (left.IsConstant()) {
|
|
|