Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index 6a583a2ccd667e3bf98a1858ca67a0fd2051ec9c..a3652e534a31a77733817b70b3f4285b89691d40 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -1069,6 +1069,7 @@ void FullCodeGenerator::VisitWithStatement(WithStatement* stmt) { |
Callable callable = CodeFactory::ToObject(isolate()); |
__ Move(callable.descriptor().GetRegisterParameter(0), result_register()); |
__ Call(callable.code(), RelocInfo::CODE_TARGET); |
+ RestoreContext(); |
PrepareForBailoutForId(stmt->ToObjectId(), BailoutState::TOS_REGISTER); |
PushOperand(result_register()); |
PushFunctionArgumentForContextAllocation(); |