| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index a184bf4017bbe188c0fc96840bb930d65c639006..1579d2e3f0b19ef84e0b8ace616f0122dff6783c 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -6591,12 +6591,7 @@ void JSFunction::ReplaceCode(Code* code) {
|
| }
|
|
|
| bool JSFunction::has_feedback_vector() const {
|
| - SharedFunctionInfo* shared = this->shared();
|
| -
|
| - return (feedback_vector_cell()->value() !=
|
| - shared->GetIsolate()->heap()->empty_feedback_vector() ||
|
| - (shared->feedback_metadata()->slot_count() == 0 &&
|
| - shared->num_literals() == 0));
|
| + return !feedback_vector_cell()->value()->IsUndefined(GetIsolate());
|
| }
|
|
|
| Context* JSFunction::context() {
|
|
|