Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 95b2d76becb7f746ca6db359afd95629686052c5..382bc8e1bbf35921c3ee5a85249e6ab4d5147e23 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -3054,7 +3054,7 @@ LanguageMode AstGraphBuilder::language_mode() const { |
VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( |
FeedbackVectorSlot slot) const { |
- return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); |
+ return VectorSlotPair(handle(info()->closure()->feedback_vector()), slot); |
} |
@@ -3690,10 +3690,10 @@ Node* AstGraphBuilder::BuildLoadNativeContextField(int index) { |
Node* AstGraphBuilder::BuildLoadFeedbackVector() { |
if (!feedback_vector_.is_set()) { |
Node* closure = GetFunctionClosure(); |
- Node* shared = BuildLoadImmutableObjectField( |
- closure, JSFunction::kSharedFunctionInfoOffset); |
+ Node* literals = |
+ BuildLoadImmutableObjectField(closure, JSFunction::kLiteralsOffset); |
Node* vector = BuildLoadImmutableObjectField( |
- shared, SharedFunctionInfo::kFeedbackVectorOffset); |
+ literals, LiteralsArray::kFeedbackVectorOffset); |
feedback_vector_.set(vector); |
} |
return feedback_vector_.get(); |