Index: src/runtime/runtime-regexp.cc |
diff --git a/src/runtime/runtime-regexp.cc b/src/runtime/runtime-regexp.cc |
index ee5b5426c9e3a283c10400d831871e53f2cc6522..b51386a5056a3b2d4bd8b4a9572ee8f192894896 100644 |
--- a/src/runtime/runtime-regexp.cc |
+++ b/src/runtime/runtime-regexp.cc |
@@ -864,7 +864,6 @@ RUNTIME_FUNCTION(Runtime_RegExpInitializeAndCompile) { |
if (!FLAG_harmony_regexps && constructor->IsJSFunction() && |
JSFunction::cast(constructor)->initial_map() == map) { |
// If we still have the original map, set in-object properties directly. |
- regexp->InObjectPropertyAtPut(JSRegExp::kSourceFieldIndex, *source); |
// Both true and false are immovable immortal objects so no need for write |
// barrier. |
regexp->InObjectPropertyAtPut(JSRegExp::kGlobalFieldIndex, *global, |
@@ -886,8 +885,6 @@ RUNTIME_FUNCTION(Runtime_RegExpInitializeAndCompile) { |
PropertyAttributes writable = |
static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE); |
Handle<Object> zero(Smi::FromInt(0), isolate); |
- JSObject::SetOwnPropertyIgnoreAttributes(regexp, factory->source_string(), |
- source, final).Check(); |
JSObject::SetOwnPropertyIgnoreAttributes(regexp, factory->global_string(), |
global, final).Check(); |
JSObject::SetOwnPropertyIgnoreAttributes( |