[iwyu] Fix ic.h

R=ishell@chromium.org

Bug: v8:7965
Change-Id: Ia67e567790f4a5b39e24504c13c472091776ec4f
Reviewed-on: https://chromium-review.googlesource.com/c/1303296
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Reviewed-by: Igor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57067}
This commit is contained in:
Clemens Hammacher 2018-10-27 17:10:04 +02:00 committed by Commit Bot
parent 72e6c758c3
commit f3a3e0599f
3 changed files with 9 additions and 7 deletions

View File

@ -60,13 +60,20 @@ bool IC::AddressIsDeoptimizedCode() const {
return AddressIsDeoptimizedCode(isolate(), address());
}
// static
bool IC::AddressIsDeoptimizedCode(Isolate* isolate, Address address) {
Code* host =
isolate->inner_pointer_to_code_cache()->GetCacheEntry(address)->code;
return (host->kind() == Code::OPTIMIZED_FUNCTION &&
host->marked_for_deoptimization());
}
bool IC::vector_needs_update() {
return (!vector_set_ &&
(state() != MEGAMORPHIC ||
Smi::ToInt(nexus()->GetFeedbackExtra()->cast<Smi>()) != ELEMENT));
}
} // namespace internal
} // namespace v8

View File

@ -84,11 +84,7 @@ class IC {
Address address);
bool is_vector_set() { return vector_set_; }
bool vector_needs_update() {
return (!vector_set_ &&
(state() != MEGAMORPHIC ||
Smi::ToInt(nexus()->GetFeedbackExtra()->cast<Smi>()) != ELEMENT));
}
inline bool vector_needs_update();
// Configure for most states.
bool ConfigureVectorState(IC::State new_state, Handle<Object> key);

View File

@ -33,7 +33,6 @@ AUTO_EXCLUDE = [
'src/compiler/js-context-specialization.h',
'src/compiler/raw-machine-assembler.h',
'src/dateparser-inl.h',
'src/ic/ic.h',
'src/regexp/jsregexp.h',
'src/snapshot/object-deserializer.h',
'src/transitions.h',