summaryrefslogtreecommitdiff
path: root/deps/v8/src/builtins/accessors.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/builtins/accessors.cc')
-rw-r--r--deps/v8/src/builtins/accessors.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/deps/v8/src/builtins/accessors.cc b/deps/v8/src/builtins/accessors.cc
index 4258b07a7b..eea53bca09 100644
--- a/deps/v8/src/builtins/accessors.cc
+++ b/deps/v8/src/builtins/accessors.cc
@@ -81,12 +81,13 @@ bool Accessors::IsJSObjectFieldAccessor(Isolate* isolate, Handle<Map> map,
}
V8_WARN_UNUSED_RESULT MaybeHandle<Object>
-Accessors::ReplaceAccessorWithDataProperty(Handle<Object> receiver,
+Accessors::ReplaceAccessorWithDataProperty(Isolate* isolate,
+ Handle<Object> receiver,
Handle<JSObject> holder,
Handle<Name> name,
Handle<Object> value) {
- LookupIterator it(holder->GetIsolate(), receiver, name, holder,
- LookupIterator::OWN_SKIP_INTERCEPTOR);
+ LookupIterator it(isolate, receiver, LookupIterator::Key(isolate, name),
+ holder, LookupIterator::OWN_SKIP_INTERCEPTOR);
// Skip any access checks we might hit. This accessor should never hit in a
// situation where the caller does not have access.
if (it.state() == LookupIterator::ACCESS_CHECK) {
@@ -114,8 +115,8 @@ void Accessors::ReconfigureToDataProperty(
Handle<JSObject>::cast(Utils::OpenHandle(*info.Holder()));
Handle<Name> name = Utils::OpenHandle(*key);
Handle<Object> value = Utils::OpenHandle(*val);
- MaybeHandle<Object> result =
- Accessors::ReplaceAccessorWithDataProperty(receiver, holder, name, value);
+ MaybeHandle<Object> result = Accessors::ReplaceAccessorWithDataProperty(
+ isolate, receiver, holder, name, value);
if (result.is_null()) {
isolate->OptionalRescheduleException(false);
} else {