Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index c7ea5eb3ca2e55467fc3947f5a374b2af42af5e3..8139c1dbc9d3b5d4fc4aa154fed2025570b7965b 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -3208,6 +3208,7 @@ void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
// Convert old value into a number. |
__ Call(isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET); |
+ RestoreContext(); |
PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER); |
// Save result for postfix expressions. |