Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index d409029e48059c22cf12cd4f9c96e2cf815dda3a..1ebf3ffc14a10466462009f4de8e4fcebeb34998 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -802,6 +802,21 @@ void BytecodeGraphBuilder::VisitStaDataPropertyInLiteral() { |
environment()->RecordAfterState(node, Environment::kAttachFrameState); |
} |
+void BytecodeGraphBuilder::VisitCollectTypeProfile() { |
+ PrepareEagerCheckpoint(); |
+ |
+ Node* name = |
+ environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(0)); |
+ Node* value = environment()->LookupAccumulator(); |
+ VectorSlotPair feedback = |
+ CreateVectorSlotPair(bytecode_iterator().GetIndexOperand(1)); |
+ |
+ const Operator* op = javascript()->CollectTypeProfile(feedback); |
+ |
+ Node* node = NewNode(op, name, value); |
+ environment()->RecordAfterState(node, Environment::kAttachFrameState); |
+} |
+ |
void BytecodeGraphBuilder::VisitLdaContextSlot() { |
const Operator* op = javascript()->LoadContext( |
bytecode_iterator().GetUnsignedImmediateOperand(2), |