Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 18641c0ceb4e2d774884552428f21e2d97692ada..f074e89d476e348c5d226827bef35c359a4fe592 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -2297,7 +2297,7 @@ void Factory::SetRegExpAtomData(Handle<JSRegExp> regexp, |
store->set(JSRegExp::kTagIndex, Smi::FromInt(type)); |
store->set(JSRegExp::kSourceIndex, *source); |
- store->set(JSRegExp::kFlagsIndex, Smi::FromInt(flags.value())); |
+ store->set(JSRegExp::kFlagsIndex, Smi::FromInt(flags)); |
store->set(JSRegExp::kAtomPatternIndex, *data); |
regexp->set_data(*store); |
} |
@@ -2312,7 +2312,7 @@ void Factory::SetRegExpIrregexpData(Handle<JSRegExp> regexp, |
Smi* uninitialized = Smi::FromInt(JSRegExp::kUninitializedValue); |
store->set(JSRegExp::kTagIndex, Smi::FromInt(type)); |
store->set(JSRegExp::kSourceIndex, *source); |
- store->set(JSRegExp::kFlagsIndex, Smi::FromInt(flags.value())); |
+ store->set(JSRegExp::kFlagsIndex, Smi::FromInt(flags)); |
store->set(JSRegExp::kIrregexpLatin1CodeIndex, uninitialized); |
store->set(JSRegExp::kIrregexpUC16CodeIndex, uninitialized); |
store->set(JSRegExp::kIrregexpLatin1CodeSavedIndex, uninitialized); |