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 a911b2e7993b53c8f547d53660fc3dc50c711cce..a137cb6c21271d98701b931f579e9d5eaa38f95f 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -1527,6 +1527,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); |