Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index b61e1ef57ed27cf77589e5c46f5b5e664c7de05f..e698c658f30260c3ae09b2746604ec41490e7571 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -1872,9 +1872,6 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) { |
__ TailCallRuntime(strict() ? Runtime::kStrictEquals : Runtime::kEquals, 2, |
1); |
} else { |
- int native_context_index = is_strong(strength()) |
- ? Context::COMPARE_STRONG_BUILTIN_INDEX |
- : Context::COMPARE_BUILTIN_INDEX; |
__ push(Immediate(Smi::FromInt(NegativeComparisonResult(cc)))); |
// Restore return address on the stack. |
@@ -1882,7 +1879,9 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) { |
// Call the native; it returns -1 (less), 0 (equal), or 1 (greater) |
// tagged as a small integer. |
- __ InvokeBuiltin(native_context_index, JUMP_FUNCTION); |
+ __ TailCallRuntime( |
+ is_strong(strength()) ? Runtime::kCompare_Strong : Runtime::kCompare, 3, |
+ 1); |
} |
__ bind(&miss); |