Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index e77abae3a4f74f177ade6329185197b7de8f2626..5718d42b7c18bb59be260d60b5fb90241e844fa9 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -297,6 +297,14 @@ void JSGenericLowering::LowerJSStoreDataPropertyInLiteral(Node* node) { |
ReplaceWithRuntimeCall(node, Runtime::kDefineDataPropertyInLiteral); |
} |
+void JSGenericLowering::LowerJSCollectTypeProfile(Node* node) { |
+ DataPropertyParameters const& p = DataPropertyParametersOf(node->op()); |
+ node->InsertInputs(zone(), 2, 2); |
+ node->ReplaceInput(2, jsgraph()->HeapConstant(p.feedback().vector())); |
+ node->ReplaceInput(3, jsgraph()->SmiConstant(p.feedback().index())); |
+ ReplaceWithRuntimeCall(node, Runtime::kStoreTypeInformation); |
+} |
+ |
void JSGenericLowering::LowerJSDeleteProperty(Node* node) { |
LanguageMode language_mode = OpParameter<LanguageMode>(node); |
ReplaceWithRuntimeCall(node, is_strict(language_mode) |