Index: src/full-codegen/x64/full-codegen-x64.cc |
diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc |
index 0c2ad01e472ce9eb9a58e25adb8644a586fbbe25..7f08ef04450fbe8c6a519539f12d7a2d130f0175 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -3178,6 +3178,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. |