Index: src/code-stub-assembler.cc |
diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc |
index 2613011210ceda6caa13a59a652cfb0130a8b45c..e5fdc850b98a80f7c2a5d25ee7d664c7c217763c 100644 |
--- a/src/code-stub-assembler.cc |
+++ b/src/code-stub-assembler.cc |
@@ -5541,8 +5541,7 @@ Node* CodeStubAssembler::ElementOffsetFromIndex(Node* index_node, |
Node* CodeStubAssembler::LoadTypeFeedbackVectorForStub() { |
Node* function = |
LoadFromParentFrame(JavaScriptFrameConstants::kFunctionOffset); |
- Node* literals = LoadObjectField(function, JSFunction::kLiteralsOffset); |
- return LoadObjectField(literals, LiteralsArray::kFeedbackVectorOffset); |
+ return LoadObjectField(function, JSFunction::kFeedbackVectorOffset); |
} |
void CodeStubAssembler::UpdateFeedback(Node* feedback, |
@@ -8341,8 +8340,8 @@ Node* CodeStubAssembler::AllocateFunctionWithMapAndContext(Node* map, |
Heap::kEmptyFixedArrayRootIndex); |
StoreObjectFieldRoot(fun, JSObject::kElementsOffset, |
Heap::kEmptyFixedArrayRootIndex); |
- StoreObjectFieldRoot(fun, JSFunction::kLiteralsOffset, |
- Heap::kEmptyLiteralsArrayRootIndex); |
+ StoreObjectFieldRoot(fun, JSFunction::kFeedbackVectorOffset, |
+ Heap::kEmptyTypeFeedbackVectorRootIndex); |
StoreObjectFieldRoot(fun, JSFunction::kPrototypeOrInitialMapOffset, |
Heap::kTheHoleValueRootIndex); |
StoreObjectFieldNoWriteBarrier(fun, JSFunction::kSharedFunctionInfoOffset, |