Index: src/builtins/arm64/builtins-arm64.cc |
diff --git a/src/builtins/arm64/builtins-arm64.cc b/src/builtins/arm64/builtins-arm64.cc |
index b4a728a9da3196e70baa786a2745156ab98d7119..7d7aed66ad27b963816b2e5be30b39987cfe991b 100644 |
--- a/src/builtins/arm64/builtins-arm64.cc |
+++ b/src/builtins/arm64/builtins-arm64.cc |
@@ -2479,8 +2479,10 @@ void Builtins::Generate_CallFunction(MacroAssembler* masm, |
__ SmiTag(x0); |
__ Push(x0, x1); |
__ Mov(x0, x3); |
+ __ Push(cp); |
ToObjectStub stub(masm->isolate()); |
__ CallStub(&stub); |
+ __ Pop(cp); |
__ Mov(x3, x0); |
__ Pop(x1, x0); |
__ SmiUntag(x0); |