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 6b68524678000eda2247d565b9434e8846c19c98..50a5af56d1ad4dfb765ad5b114e11fa4bb95de33 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -1539,6 +1539,7 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
__ Move(rcx, constant_elements); |
FastCloneShallowArrayStub stub(isolate(), allocation_site_mode); |
__ CallStub(&stub); |
+ RestoreContext(); |
} |
PrepareForBailoutForId(expr->CreateLiteralId(), BailoutState::TOS_REGISTER); |