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 2686b16f30fe26b55fcfcae60a47c5dadf0903c6..f31bad90b46f26c73bc625319705a6710be3d512 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -1416,7 +1416,7 @@ void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { |
__ movp(rdi, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); |
__ Move(rax, Smi::FromInt(expr->literal_index())); |
__ Move(rcx, expr->pattern()); |
- __ Move(rdx, expr->flags()); |
+ __ Move(rdx, Smi::FromInt(expr->flags())); |
FastCloneRegExpStub stub(isolate()); |
__ CallStub(&stub); |
context()->Plug(rax); |