Index: src/mips64/code-stubs-mips64.cc |
diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc |
index d6a02fdcd714f8d3e6e3358eeb16a1e95fc852b2..8c539b40f829d3a9d564b38e3c47b5029d675082 100644 |
--- a/src/mips64/code-stubs-mips64.cc |
+++ b/src/mips64/code-stubs-mips64.cc |
@@ -93,7 +93,7 @@ void InternalArrayNArgumentsConstructorStub::InitializeDescriptor( |
static void EmitIdenticalObjectComparison(MacroAssembler* masm, Label* slow, |
- Condition cc, bool strong); |
+ Condition cc, Strength strength); |
static void EmitSmiNonsmiComparison(MacroAssembler* masm, |
Register lhs, |
Register rhs, |
@@ -272,7 +272,7 @@ void DoubleToIStub::Generate(MacroAssembler* masm) { |
// Equality is almost reflexive (everything but NaN), so this is a test |
// for "identity and not NaN". |
static void EmitIdenticalObjectComparison(MacroAssembler* masm, Label* slow, |
- Condition cc, bool strong) { |
+ Condition cc, Strength strength) { |
Label not_identical; |
Label heap_number, return_equal; |
Register exp_mask_reg = t1; |
@@ -291,7 +291,7 @@ static void EmitIdenticalObjectComparison(MacroAssembler* masm, Label* slow, |
__ Branch(slow, greater, t0, Operand(FIRST_SPEC_OBJECT_TYPE)); |
// Call runtime on identical symbols since we need to throw a TypeError. |
__ Branch(slow, eq, t0, Operand(SYMBOL_TYPE)); |
- if (strong) { |
+ if (is_strong(strength)) { |
// Call the runtime on anything that is converted in the semantics, since |
// we need to throw a TypeError. Smis have already been ruled out. |
__ Branch(&return_equal, eq, t0, Operand(HEAP_NUMBER_TYPE)); |
@@ -305,7 +305,7 @@ static void EmitIdenticalObjectComparison(MacroAssembler* masm, Label* slow, |
__ Branch(slow, greater, t0, Operand(FIRST_SPEC_OBJECT_TYPE)); |
// Call runtime on identical symbols since we need to throw a TypeError. |
__ Branch(slow, eq, t0, Operand(SYMBOL_TYPE)); |
- if (strong) { |
+ if (is_strong(strength)) { |
// Call the runtime on anything that is converted in the semantics, |
// since we need to throw a TypeError. Smis and heap numbers have |
// already been ruled out. |
@@ -595,7 +595,7 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) { |
// Handle the case where the objects are identical. Either returns the answer |
// or goes to slow. Only falls through if the objects were not identical. |
- EmitIdenticalObjectComparison(masm, &slow, cc, strong()); |
+ EmitIdenticalObjectComparison(masm, &slow, cc, strength()); |
// If either is a Smi (we know that not both are), then they can only |
// be strictly equal if the other is a HeapNumber. |
@@ -723,7 +723,8 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) { |
if (cc == eq) { |
native = strict() ? Builtins::STRICT_EQUALS : Builtins::EQUALS; |
} else { |
- native = strong() ? Builtins::COMPARE_STRONG : Builtins::COMPARE; |
+ native = |
+ is_strong(strength()) ? Builtins::COMPARE_STRONG : Builtins::COMPARE; |
int ncr; // NaN compare result. |
if (cc == lt || cc == le) { |
ncr = GREATER; |
@@ -3800,7 +3801,7 @@ void CompareICStub::GenerateNumbers(MacroAssembler* masm) { |
__ bind(&unordered); |
__ bind(&generic_stub); |
- CompareICStub stub(isolate(), op(), strong(), CompareICState::GENERIC, |
+ CompareICStub stub(isolate(), op(), strength(), CompareICState::GENERIC, |
CompareICState::GENERIC, CompareICState::GENERIC); |
__ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); |