Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index c3e52b192979c15a017c11fa9f5a8d310964acd8..854a6a5809c5b0f82599fd6b365e352416d1c0dd 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -1380,7 +1380,7 @@ void FullCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { |
__ mov(edi, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |
__ Move(eax, Immediate(Smi::FromInt(expr->literal_index()))); |
__ Move(ecx, Immediate(expr->pattern())); |
- __ Move(edx, Immediate(expr->flags())); |
+ __ Move(edx, Immediate(Smi::FromInt(expr->flags()))); |
FastCloneRegExpStub stub(isolate()); |
__ CallStub(&stub); |
context()->Plug(eax); |