Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 484a74e5e2960f60388acb149152bc39a29341a1..acad2f7d44a5a9ddb887d05513c71ea126cdbc4a 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1098,7 +1098,6 @@ void Genesis::InitializeGlobal(Handle<GlobalObject> global_object, |
Isolate* isolate = global_object->GetIsolate(); |
Factory* factory = isolate->factory(); |
- Heap* heap = isolate->heap(); |
Handle<ScriptContextTable> script_context_table = |
factory->NewScriptContextTable(); |
@@ -1287,27 +1286,6 @@ void Genesis::InitializeGlobal(Handle<GlobalObject> global_object, |
initial_map->set_unused_property_fields(0); |
initial_map->set_instance_size(initial_map->instance_size() + |
num_fields * kPointerSize); |
- |
- // RegExp prototype object is itself a RegExp. |
- Handle<Map> proto_map = Map::Copy(initial_map, "RegExpPrototype"); |
- DCHECK(proto_map->prototype() == *isolate->initial_object_prototype()); |
- Handle<JSObject> proto = factory->NewJSObjectFromMap(proto_map); |
- proto->InObjectPropertyAtPut(JSRegExp::kSourceFieldIndex, |
- heap->query_colon_string()); |
- proto->InObjectPropertyAtPut(JSRegExp::kGlobalFieldIndex, |
- heap->false_value()); |
- proto->InObjectPropertyAtPut(JSRegExp::kIgnoreCaseFieldIndex, |
- heap->false_value()); |
- proto->InObjectPropertyAtPut(JSRegExp::kMultilineFieldIndex, |
- heap->false_value()); |
- proto->InObjectPropertyAtPut(JSRegExp::kLastIndexFieldIndex, |
- Smi::FromInt(0), |
- SKIP_WRITE_BARRIER); // It's a Smi. |
- proto_map->set_is_prototype_map(true); |
- Map::SetPrototype(initial_map, proto); |
- factory->SetRegExpIrregexpData(Handle<JSRegExp>::cast(proto), |
- JSRegExp::IRREGEXP, factory->empty_string(), |
- JSRegExp::Flags(0), 0); |
} |
// Initialize the embedder data slot. |