Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index de7a103c7edf132f02f239391a2d0f8c7261cd29..d6e744f1c205725ed8e016580017aecad7f6672e 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -514,10 +514,10 @@ |
Node* BytecodeGraphBuilder::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(); |
@@ -525,8 +525,7 @@ |
VectorSlotPair BytecodeGraphBuilder::CreateVectorSlotPair(int slot_id) { |
- Handle<TypeFeedbackVector> feedback_vector = |
- handle(info()->closure()->feedback_vector()); |
+ Handle<TypeFeedbackVector> feedback_vector = info()->feedback_vector(); |
FeedbackVectorSlot slot; |
if (slot_id >= TypeFeedbackVector::kReservedIndexCount) { |
slot = feedback_vector->ToSlot(slot_id); |