Commit ea468d53 authored by Jakob Kummerow's avatar Jakob Kummerow Committed by Commit Bot

Fix one more LookupIterator

to properly choose named or indexed mode

Bug: chromium:1059738
Change-Id: Icd086fee31079f52770742afa54fc946acb1fd81
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2101005
Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Auto-Submit: Jakob Kummerow <jkummerow@chromium.org>
Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66702}
parent a44c71e7
......@@ -1460,11 +1460,10 @@ MaybeHandle<Object> StoreIC::Store(Handle<Object> object, Handle<Name> name,
// TODO(verwaest): Let SetProperty do the migration, since storing a property
// might deprecate the current map again, if value does not fit.
if (MigrateDeprecated(isolate(), object)) {
Handle<Object> result;
ASSIGN_RETURN_ON_EXCEPTION(
isolate(), result, Object::SetProperty(isolate(), object, name, value),
Object);
return result;
LookupIterator::Key key(isolate(), name);
LookupIterator it(isolate(), object, key);
MAYBE_RETURN_NULL(Object::SetProperty(&it, value, StoreOrigin::kNamed));
return value;
}
bool use_ic = (state() != NO_FEEDBACK) && FLAG_use_ic;
......
// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
var o = {4294967295: ({4294967295: NaN}) + "foo"};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment