Commit d891b500 authored by verwaest's avatar verwaest Committed by Commit bot

[IC] Also use LoadNonexistentDH for keyed loads

Unlike the old manually written LoadNonexistent stub, the data handler properly supports keyed loads out of the box. Simply remove the condition that disables it.

BUG=

Review-Url: https://codereview.chromium.org/2693913002
Cr-Commit-Position: refs/heads/master@{#43165}
parent 43fc15bb
...@@ -1130,12 +1130,8 @@ void LoadIC::UpdateCaches(LookupIterator* lookup) { ...@@ -1130,12 +1130,8 @@ void LoadIC::UpdateCaches(LookupIterator* lookup) {
lookup->state() == LookupIterator::ACCESS_CHECK) { lookup->state() == LookupIterator::ACCESS_CHECK) {
code = slow_stub(); code = slow_stub();
} else if (!lookup->IsFound()) { } else if (!lookup->IsFound()) {
if (IsLoadIC() || IsLoadGlobalIC()) { TRACE_HANDLER_STATS(isolate(), LoadIC_LoadNonexistentDH);
TRACE_HANDLER_STATS(isolate(), LoadIC_LoadNonexistentDH); code = LoadNonExistent(receiver_map(), lookup->name());
code = LoadNonExistent(receiver_map(), lookup->name());
} else {
code = slow_stub();
}
} else { } else {
if (IsLoadGlobalIC() && lookup->state() == LookupIterator::DATA && if (IsLoadGlobalIC() && lookup->state() == LookupIterator::DATA &&
lookup->GetReceiver().is_identical_to(lookup->GetHolder<Object>())) { lookup->GetReceiver().is_identical_to(lookup->GetHolder<Object>())) {
......
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