| Index: src/ia32/code-stubs-ia32.cc
|
| diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc
|
| index 11655713b3b7a0892aed7595340fd6e74aa12399..7435ccd8aa12f7bce975dbd2423ebc4edec4138a 100644
|
| --- a/src/ia32/code-stubs-ia32.cc
|
| +++ b/src/ia32/code-stubs-ia32.cc
|
| @@ -1696,7 +1696,7 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) {
|
| // Check for undefined. undefined OP undefined is false even though
|
| // undefined == undefined.
|
| __ cmp(edx, isolate()->factory()->undefined_value());
|
| - if (strong()) {
|
| + if (is_strong(strength())) {
|
| // In strong mode, this comparison must throw, so call the runtime.
|
| __ j(equal, &runtime_call, Label::kFar);
|
| } else {
|
| @@ -1722,7 +1722,7 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) {
|
| // Call runtime on identical symbols since we need to throw a TypeError.
|
| __ cmpb(ecx, static_cast<uint8_t>(SYMBOL_TYPE));
|
| __ j(equal, &runtime_call, Label::kFar);
|
| - if (strong()) {
|
| + if (is_strong(strength())) {
|
| // We have already tested for smis and heap numbers, so if both
|
| // arguments are not strings we must proceed to the slow case.
|
| __ test(ecx, Immediate(kIsNotStringMask));
|
| @@ -1914,7 +1914,8 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) {
|
| if (cc == equal) {
|
| builtin = strict() ? Builtins::STRICT_EQUALS : Builtins::EQUALS;
|
| } else {
|
| - builtin = strong() ? Builtins::COMPARE_STRONG : Builtins::COMPARE;
|
| + builtin =
|
| + is_strong(strength()) ? Builtins::COMPARE_STRONG : Builtins::COMPARE;
|
| __ push(Immediate(Smi::FromInt(NegativeComparisonResult(cc))));
|
| }
|
|
|
| @@ -3645,7 +3646,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);
|
| __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET);
|
|
|
|
|