Commit e60b983b authored by Marja Hölttä's avatar Marja Hölttä Committed by Commit Bot

[in-place weak refs] Remove unnecessary WeakCell check in IC

The parameter cannot be a WeakCell here anymore.

BUG=v8:7308

Change-Id: Ie96312e0988e801d3bf52368d731e3b0cf9cc2dc
Reviewed-on: https://chromium-review.googlesource.com/1167047Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54972}
parent ff0473d6
......@@ -2587,7 +2587,7 @@ RUNTIME_FUNCTION(Runtime_CloneObjectIC_Slow) {
RUNTIME_FUNCTION(Runtime_StoreCallbackProperty) {
Handle<JSObject> receiver = args.at<JSObject>(0);
Handle<JSObject> holder = args.at<JSObject>(1);
Handle<HeapObject> callback_or_cell = args.at<HeapObject>(2);
Handle<HeapObject> callback = args.at<HeapObject>(2);
Handle<Name> name = args.at<Name>(3);
Handle<Object> value = args.at(4);
CONVERT_LANGUAGE_MODE_ARG_CHECKED(language_mode, 5);
......@@ -2599,12 +2599,7 @@ RUNTIME_FUNCTION(Runtime_StoreCallbackProperty) {
language_mode));
}
Handle<AccessorInfo> info(
callback_or_cell->IsWeakCell()
? AccessorInfo::cast(WeakCell::cast(*callback_or_cell)->value())
: AccessorInfo::cast(*callback_or_cell),
isolate);
Handle<AccessorInfo> info(AccessorInfo::cast(*callback), isolate);
DCHECK(info->IsCompatibleReceiver(*receiver));
ShouldThrow should_throw =
......
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