Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index 2f5910041d3ee860e6ed0f0d6e41b4c54165f599..e90b9d6572c69b8dc4733c0f2ffeea08bdd39673 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -983,6 +983,19 @@ void Interpreter::DoStaDataPropertyInLiteral(InterpreterAssembler* assembler) { |
__ Dispatch(); |
} |
+void Interpreter::DoCollectTypeProfile(InterpreterAssembler* assembler) { |
+ Node* name = __ LoadRegister(__ BytecodeOperandReg(0)); |
+ Node* value = __ GetAccumulator(); |
+ Node* vector_index = __ SmiTag(__ BytecodeOperandIdx(1)); |
+ |
+ Node* feedback_vector = __ LoadFeedbackVector(); |
+ Node* context = __ GetContext(); |
+ |
+ __ CallRuntime(Runtime::kCollectTypeProfile, context, name, value, |
+ feedback_vector, vector_index); |
+ __ Dispatch(); |
+} |
+ |
// LdaModuleVariable <cell_index> <depth> |
// |
// Load the contents of a module variable into the accumulator. The variable is |