Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 065b5dd70df308ec990e44ec51ee5c86296cd83f..24e4966009202655988f4601d1d88564a7ad55f4 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1702,12 +1702,8 @@ |
JSObject::AddProperty(prototype, factory->constructor_string(), |
regexp_fun, DONT_ENUM); |
- { |
- Handle<JSFunction> fun = SimpleInstallFunction( |
- prototype, "exec", Builtins::kRegExpPrototypeExec, 1, true, |
- DONT_ENUM); |
- native_context()->set_regexp_exec_function(*fun); |
- } |
+ SimpleInstallFunction(prototype, "exec", Builtins::kRegExpPrototypeExec, |
+ 1, true, DONT_ENUM); |
SimpleInstallGetter(prototype, factory->flags_string(), |
Builtins::kRegExpPrototypeFlagsGetter, true); |
@@ -1730,22 +1726,6 @@ |
SimpleInstallFunction(prototype, factory->toString_string(), |
Builtins::kRegExpPrototypeToString, 0, false, |
DONT_ENUM); |
- SimpleInstallFunction(prototype, "test", Builtins::kRegExpPrototypeTest, |
- 1, false, DONT_ENUM); |
- |
- { |
- Handle<JSFunction> fun = SimpleCreateFunction( |
- isolate, factory->InternalizeUtf8String("[Symbol.match]"), |
- Builtins::kRegExpPrototypeMatch, 1, false); |
- InstallFunction(prototype, fun, factory->match_symbol(), DONT_ENUM); |
- } |
- |
- { |
- Handle<JSFunction> fun = SimpleCreateFunction( |
- isolate, factory->InternalizeUtf8String("[Symbol.search]"), |
- Builtins::kRegExpPrototypeSearch, 1, false); |
- InstallFunction(prototype, fun, factory->search_symbol(), DONT_ENUM); |
- } |
} |
{ |
@@ -1832,7 +1812,7 @@ |
// ECMA-262, section 15.10.7.5. |
PropertyAttributes writable = |
static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE); |
- DataDescriptor field(factory->lastIndex_string(), |
+ DataDescriptor field(factory->last_index_string(), |
JSRegExp::kLastIndexFieldIndex, writable, |
Representation::Tagged()); |
initial_map->AppendDescriptor(&field); |