Index: src/ppc/code-stubs-ppc.cc |
diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc |
index 2233961da96a3c852ef6eccfc071e471b8ec9cb9..5eaa2a71eb1e5fc589bb7fb3a848529d9630c79d 100644 |
--- a/src/ppc/code-stubs-ppc.cc |
+++ b/src/ppc/code-stubs-ppc.cc |
@@ -711,9 +711,6 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) { |
__ TailCallRuntime(strict() ? Runtime::kStrictEquals : Runtime::kEquals, 2, |
1); |
} else { |
- int context_index = is_strong(strength()) |
- ? Context::COMPARE_STRONG_BUILTIN_INDEX |
- : Context::COMPARE_BUILTIN_INDEX; |
int ncr; // NaN compare result |
if (cc == lt || cc == le) { |
ncr = GREATER; |
@@ -726,7 +723,9 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) { |
// Call the native; it returns -1 (less), 0 (equal), or 1 (greater) |
// tagged as a small integer. |
- __ InvokeBuiltin(context_index, JUMP_FUNCTION); |
+ __ TailCallRuntime( |
+ is_strong(strength()) ? Runtime::kCompare_Strong : Runtime::kCompare, 3, |
+ 1); |
} |
__ bind(&miss); |