Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index c2911234446f063c1b86b34eb4231187da0cc24e..61fcfe0b4622a7054902dd332cf419954141c424 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -280,6 +280,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) |