Index: src/runtime/runtime-object.cc |
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc |
index c7e9cf3c9241efdb05e38f4127e41feb47b840d8..c7efb1c84eca93c85503c1867f5b5c98f108cc5a 100644 |
--- a/src/runtime/runtime-object.cc |
+++ b/src/runtime/runtime-object.cc |
@@ -671,38 +671,6 @@ RUNTIME_FUNCTION(Runtime_DefineDataPropertyInLiteral) { |
return *object; |
} |
-RUNTIME_FUNCTION(Runtime_DefineDataProperty) { |
- HandleScope scope(isolate); |
- DCHECK(args.length() == 5); |
- CONVERT_ARG_HANDLE_CHECKED(JSReceiver, receiver, 0); |
- CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); |
- CONVERT_ARG_HANDLE_CHECKED(Object, value, 2); |
- CONVERT_PROPERTY_ATTRIBUTES_CHECKED(attrs, 3); |
- CONVERT_SMI_ARG_CHECKED(set_function_name, 4); |
- |
- if (set_function_name) { |
- DCHECK(value->IsJSFunction()); |
- JSFunction::SetName(Handle<JSFunction>::cast(value), name, |
- isolate->factory()->empty_string()); |
- } |
- |
- PropertyDescriptor desc; |
- desc.set_writable(!(attrs & ReadOnly)); |
- desc.set_enumerable(!(attrs & DontEnum)); |
- desc.set_configurable(!(attrs & DontDelete)); |
- desc.set_value(value); |
- |
- Maybe<bool> result = JSReceiver::DefineOwnProperty(isolate, receiver, name, |
- &desc, Object::DONT_THROW); |
- RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate); |
- if (result.IsNothing()) { |
- DCHECK(isolate->has_pending_exception()); |
- return isolate->heap()->exception(); |
- } |
- |
- return *receiver; |
-} |
- |
// Return property without being observable by accessors or interceptors. |
RUNTIME_FUNCTION(Runtime_GetDataProperty) { |
HandleScope scope(isolate); |