Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 6a787fa42fe3eb61c6379c7bac9e780359d1121d..7125feced2d2b192823b2c55c0d26d71378bedb7 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -3463,16 +3463,12 @@ LiteralsArray* LiteralsArray::cast(Object* object) { |
return reinterpret_cast<LiteralsArray*>(object); |
} |
-bool LiteralsArray::has_feedback_vector() const { |
- return !get(kVectorIndex)->IsUndefined(this->GetIsolate()); |
-} |
TypeFeedbackVector* LiteralsArray::feedback_vector() const { |
- if (length() == 0 || !has_feedback_vector()) { |
+ if (length() == 0) { |
return TypeFeedbackVector::cast( |
- this->GetIsolate()->heap()->empty_type_feedback_vector()); |
+ const_cast<FixedArray*>(FixedArray::cast(this))); |
} |
- |
return TypeFeedbackVector::cast(get(kVectorIndex)); |
} |
@@ -6627,13 +6623,6 @@ void JSFunction::ReplaceCode(Code* code) { |
} |
} |
-bool JSFunction::has_literals_array() const { |
- SharedFunctionInfo* shared = this->shared(); |
- |
- return (literals() != shared->GetIsolate()->heap()->empty_literals_array() || |
- (shared->feedback_metadata()->slot_count() == 0 && |
- shared->num_literals() == 0)); |
-} |
Context* JSFunction::context() { |
return Context::cast(READ_FIELD(this, kContextOffset)); |