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