Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 5bd6c08caaa4cdaf3ec1e21137495f4d2636cb27..ffc821b166d4b9b0860a68533458161295f13fc5 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -681,26 +681,30 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) { |
__ Push(lhs, rhs); |
// Figure out which native to call and setup the arguments. |
- Builtins::JavaScript native; |
- if (cc == eq) { |
- native = strict() ? Builtins::STRICT_EQUALS : Builtins::EQUALS; |
+ if (cc == eq && strict()) { |
+ __ TailCallRuntime(Runtime::kStrictEquals, 2, 1); |
} else { |
- native = |
- is_strong(strength()) ? Builtins::COMPARE_STRONG : Builtins::COMPARE; |
- int ncr; // NaN compare result |
- if (cc == lt || cc == le) { |
- ncr = GREATER; |
+ Builtins::JavaScript native; |
+ if (cc == eq) { |
+ native = Builtins::EQUALS; |
} else { |
- DCHECK(cc == gt || cc == ge); // remaining cases |
- ncr = LESS; |
+ native = |
+ is_strong(strength()) ? Builtins::COMPARE_STRONG : Builtins::COMPARE; |
+ int ncr; // NaN compare result |
+ if (cc == lt || cc == le) { |
+ ncr = GREATER; |
+ } else { |
+ DCHECK(cc == gt || cc == ge); // remaining cases |
+ ncr = LESS; |
+ } |
+ __ mov(r0, Operand(Smi::FromInt(ncr))); |
+ __ push(r0); |
} |
- __ mov(r0, Operand(Smi::FromInt(ncr))); |
- __ push(r0); |
- } |
- // Call the native; it returns -1 (less), 0 (equal), or 1 (greater) |
- // tagged as a small integer. |
- __ InvokeBuiltin(native, JUMP_FUNCTION); |
+ // Call the native; it returns -1 (less), 0 (equal), or 1 (greater) |
+ // tagged as a small integer. |
+ __ InvokeBuiltin(native, JUMP_FUNCTION); |
+ } |
__ bind(&miss); |
GenerateMiss(masm); |