Index: src/runtime/runtime-object.cc |
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc |
index d16fad8c1a2b6d2f2098caace96a376cf885830d..d8da0feade376bcfa1821299357ba6e0bd481365 100644 |
--- a/src/runtime/runtime-object.cc |
+++ b/src/runtime/runtime-object.cc |
@@ -725,7 +725,7 @@ RUNTIME_FUNCTION(Runtime_DefineDataPropertyInLiteral) { |
CONVERT_PROPERTY_ATTRIBUTES_CHECKED(attrs, 3); |
CONVERT_SMI_ARG_CHECKED(set_function_name, 4); |
- if (FLAG_harmony_function_name && set_function_name) { |
+ if (set_function_name) { |
DCHECK(value->IsJSFunction()); |
JSFunction::SetName(Handle<JSFunction>::cast(value), name, |
isolate->factory()->empty_string()); |
@@ -794,8 +794,7 @@ RUNTIME_FUNCTION(Runtime_DefineGetterPropertyUnchecked) { |
CONVERT_ARG_HANDLE_CHECKED(JSFunction, getter, 2); |
CONVERT_PROPERTY_ATTRIBUTES_CHECKED(attrs, 3); |
- if (FLAG_harmony_function_name && |
- String::cast(getter->shared()->name())->length() == 0) { |
+ if (String::cast(getter->shared()->name())->length() == 0) { |
JSFunction::SetName(getter, name, isolate->factory()->get_string()); |
} |
@@ -815,8 +814,7 @@ RUNTIME_FUNCTION(Runtime_DefineSetterPropertyUnchecked) { |
CONVERT_ARG_HANDLE_CHECKED(JSFunction, setter, 2); |
CONVERT_PROPERTY_ATTRIBUTES_CHECKED(attrs, 3); |
- if (FLAG_harmony_function_name && |
- String::cast(setter->shared()->name())->length() == 0) { |
+ if (String::cast(setter->shared()->name())->length() == 0) { |
JSFunction::SetName(setter, name, isolate->factory()->set_string()); |
} |