Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: src/bootstrapper.cc

Issue 1409013006: Revert of Implement flag and source getters on RegExp.prototype. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@rproto
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/api.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 2073a1392a66b90101d340b86fee85879d3bcfa9..14e7d5a7d60e26d97daacdd419e02e6be0b5de7d 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1244,16 +1244,31 @@
Map::EnsureDescriptorSlack(initial_map, 5);
{
- // ES6 21.2.3.2.1
- DataDescriptor field(factory->regexp_source_symbol(),
+ // ECMA-262, section 15.10.7.1.
+ DataDescriptor field(factory->source_string(),
JSRegExp::kSourceFieldIndex, final,
Representation::Tagged());
initial_map->AppendDescriptor(&field);
}
{
- DataDescriptor field(factory->regexp_flags_symbol(),
- JSRegExp::kFlagsFieldIndex, final,
- Representation::Smi());
+ // 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());
initial_map->AppendDescriptor(&field);
}
{
« no previous file with comments | « src/api.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698