Index: src/builtins/builtins-constructor.cc |
diff --git a/src/builtins/builtins-constructor.cc b/src/builtins/builtins-constructor.cc |
index db3ffb0b91c4ee7b712aeac68cc26257c7fecfcc..4f28e27ad3c551a5406e587e723015d2cf53b625 100644 |
--- a/src/builtins/builtins-constructor.cc |
+++ b/src/builtins/builtins-constructor.cc |
@@ -120,13 +120,14 @@ |
// Initialize the rest of the function. |
Node* empty_fixed_array = HeapConstant(factory->empty_fixed_array()); |
- Node* empty_literals_array = HeapConstant(factory->empty_literals_array()); |
StoreObjectFieldNoWriteBarrier(result, JSObject::kPropertiesOffset, |
empty_fixed_array); |
StoreObjectFieldNoWriteBarrier(result, JSObject::kElementsOffset, |
empty_fixed_array); |
+ Node* literals_array = LoadFixedArrayElement( |
+ feedback_vector, slot, 0, CodeStubAssembler::SMI_PARAMETERS); |
StoreObjectFieldNoWriteBarrier(result, JSFunction::kLiteralsOffset, |
- empty_literals_array); |
+ literals_array); |
StoreObjectFieldNoWriteBarrier( |
result, JSFunction::kPrototypeOrInitialMapOffset, TheHoleConstant()); |
StoreObjectFieldNoWriteBarrier(result, JSFunction::kSharedFunctionInfoOffset, |