Index: src/arm64/code-stubs-arm64.cc |
diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc |
index 61bca1a52ea0e6f11b0b320ed2e499bcc1363f77..7173bdbf2fb612dd9e9e94ce94ae538d85a23987 100644 |
--- a/src/arm64/code-stubs-arm64.cc |
+++ b/src/arm64/code-stubs-arm64.cc |
@@ -656,9 +656,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 ((cond == lt) || (cond == le)) { |
ncr = GREATER; |
@@ -671,7 +668,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); |