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 dc317087f5d20e88529918ffc655f908ebbd3d20..6ab9cd2c324be9c1d4f3992dbc7214858972d0f6 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -1412,8 +1412,10 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
__ Push(x3, x2, x1, x0); |
__ CallRuntime(Runtime::kCreateObjectLiteral); |
} else { |
+ __ Push(cp); |
FastCloneShallowObjectStub stub(isolate(), expr->properties_count()); |
__ CallStub(&stub); |
+ __ Pop(cp); |
} |
PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG); |