Commit 576296ac authored by franzih's avatar franzih Committed by Commit bot

[IC] Delete param in ShouldRecomputeHandler.

BUG=

Review-Url: https://codereview.chromium.org/2390923003
Cr-Commit-Position: refs/heads/master@{#39957}
parent 54fb438e
...@@ -276,7 +276,7 @@ static void LookupForRead(LookupIterator* it) { ...@@ -276,7 +276,7 @@ static void LookupForRead(LookupIterator* it) {
} }
} }
bool IC::ShouldRecomputeHandler(Handle<Object> receiver, Handle<String> name) { bool IC::ShouldRecomputeHandler(Handle<String> name) {
if (!RecomputeHandlerForName(name)) return false; if (!RecomputeHandlerForName(name)) return false;
DCHECK(UseVector()); DCHECK(UseVector());
...@@ -326,7 +326,7 @@ void IC::UpdateState(Handle<Object> receiver, Handle<Object> name) { ...@@ -326,7 +326,7 @@ void IC::UpdateState(Handle<Object> receiver, Handle<Object> name) {
// Remove the target from the code cache if it became invalid // Remove the target from the code cache if it became invalid
// because of changes in the prototype chain to avoid hitting it // because of changes in the prototype chain to avoid hitting it
// again. // again.
if (ShouldRecomputeHandler(receiver, Handle<String>::cast(name))) { if (ShouldRecomputeHandler(Handle<String>::cast(name))) {
MarkRecomputeHandler(name); MarkRecomputeHandler(name);
} }
} }
......
...@@ -171,7 +171,7 @@ class IC { ...@@ -171,7 +171,7 @@ class IC {
kind_ == Code::KEYED_STORE_IC); kind_ == Code::KEYED_STORE_IC);
return kind_; return kind_;
} }
bool ShouldRecomputeHandler(Handle<Object> receiver, Handle<String> name); bool ShouldRecomputeHandler(Handle<String> name);
ExtraICState extra_ic_state() const { return extra_ic_state_; } ExtraICState extra_ic_state() const { return extra_ic_state_; }
......
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