| Index: src/runtime/runtime-object.cc
|
| diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
|
| index 7e95e4ec9a6cfb4a71c7919cc45bdfeaab1c284c..9366892c1014054e4dfa48098800b9e553287611 100644
|
| --- a/src/runtime/runtime-object.cc
|
| +++ b/src/runtime/runtime-object.cc
|
| @@ -833,34 +833,6 @@ RUNTIME_FUNCTION(Runtime_DefineAccessorPropertyUnchecked) {
|
| }
|
|
|
|
|
| -// Implements part of 8.12.9 DefineOwnProperty.
|
| -// There are 3 cases that lead here:
|
| -// Step 4a - define a new data property.
|
| -// Steps 9b & 12 - replace an existing accessor property with a data property.
|
| -// Step 12 - update an existing data property with a data or generic
|
| -// descriptor.
|
| -RUNTIME_FUNCTION(Runtime_DefineDataPropertyUnchecked) {
|
| - HandleScope scope(isolate);
|
| - DCHECK(args.length() == 4);
|
| - CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 0);
|
| - CONVERT_ARG_HANDLE_CHECKED(Name, name, 1);
|
| - CONVERT_ARG_HANDLE_CHECKED(Object, value, 2);
|
| - CONVERT_PROPERTY_ATTRIBUTES_CHECKED(attrs, 3);
|
| -
|
| - LookupIterator it = LookupIterator::PropertyOrElement(
|
| - isolate, object, name, object, LookupIterator::OWN);
|
| - if (it.state() == LookupIterator::ACCESS_CHECK && !it.HasAccess()) {
|
| - return isolate->heap()->undefined_value();
|
| - }
|
| -
|
| - Handle<Object> result;
|
| - ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| - isolate, result, JSObject::DefineOwnPropertyIgnoreAttributes(
|
| - &it, value, attrs, JSObject::DONT_FORCE_FIELD));
|
| -
|
| - return *result;
|
| -}
|
| -
|
| RUNTIME_FUNCTION(Runtime_DefineDataPropertyInLiteral) {
|
| HandleScope scope(isolate);
|
| DCHECK(args.length() == 5);
|
|
|