[runtime] Remove "name" argument from DeleteNormalizedProperty

Bug: 
Change-Id: I335dc1259f2468e91f8fb6d5a3b13a601c807a79
Reviewed-on: https://chromium-review.googlesource.com/544875
Reviewed-by: Camillo Bruni <cbruni@chromium.org>
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#46121}
This commit is contained in:
Toon Verwaest 2017-06-22 10:07:08 +02:00 committed by Commit Bot
parent d0ea6140c2
commit baa4d4faea
3 changed files with 3 additions and 6 deletions

View File

@ -448,8 +448,7 @@ void LookupIterator::Delete() {
"DeletingProperty");
ReloadPropertyInformation<false>();
}
// TODO(verwaest): Get rid of the name_ argument.
JSReceiver::DeleteNormalizedProperty(holder, name_, number_);
JSReceiver::DeleteNormalizedProperty(holder, number_);
if (holder->IsJSObject()) {
JSObject::ReoptimizeIfPrototype(Handle<JSObject>::cast(holder));
}

View File

@ -6026,9 +6026,8 @@ Maybe<bool> JSObject::DeletePropertyWithInterceptor(LookupIterator* it,
return Just(result->IsTrue(isolate));
}
void JSReceiver::DeleteNormalizedProperty(Handle<JSReceiver> object,
Handle<Name> name, int entry) {
int entry) {
DCHECK(!object->HasFastProperties());
Isolate* isolate = object->GetIsolate();

View File

@ -1928,8 +1928,7 @@ class JSReceiver: public HeapObject {
inline NameDictionary* property_dictionary();
// Deletes an existing named property in a normalized object.
static void DeleteNormalizedProperty(Handle<JSReceiver> object,
Handle<Name> name, int entry);
static void DeleteNormalizedProperty(Handle<JSReceiver> object, int entry);
DECLARE_CAST(JSReceiver)