| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 14e7d5a7d60e26d97daacdd419e02e6be0b5de7d..2073a1392a66b90101d340b86fee85879d3bcfa9 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -1244,31 +1244,16 @@ void Genesis::InitializeGlobal(Handle<GlobalObject> global_object,
|
| Map::EnsureDescriptorSlack(initial_map, 5);
|
|
|
| {
|
| - // ECMA-262, section 15.10.7.1.
|
| - DataDescriptor field(factory->source_string(),
|
| + // ES6 21.2.3.2.1
|
| + DataDescriptor field(factory->regexp_source_symbol(),
|
| JSRegExp::kSourceFieldIndex, final,
|
| Representation::Tagged());
|
| initial_map->AppendDescriptor(&field);
|
| }
|
| {
|
| - // ECMA-262, section 15.10.7.2.
|
| - DataDescriptor field(factory->global_string(),
|
| - JSRegExp::kGlobalFieldIndex, final,
|
| - Representation::Tagged());
|
| - initial_map->AppendDescriptor(&field);
|
| - }
|
| - {
|
| - // ECMA-262, section 15.10.7.3.
|
| - DataDescriptor field(factory->ignore_case_string(),
|
| - JSRegExp::kIgnoreCaseFieldIndex, final,
|
| - Representation::Tagged());
|
| - initial_map->AppendDescriptor(&field);
|
| - }
|
| - {
|
| - // ECMA-262, section 15.10.7.4.
|
| - DataDescriptor field(factory->multiline_string(),
|
| - JSRegExp::kMultilineFieldIndex, final,
|
| - Representation::Tagged());
|
| + DataDescriptor field(factory->regexp_flags_symbol(),
|
| + JSRegExp::kFlagsFieldIndex, final,
|
| + Representation::Smi());
|
| initial_map->AppendDescriptor(&field);
|
| }
|
| {
|
|
|