Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index 14c97c832f18c2e9aa329f44c3e7838c6f31bfd3..862762e5b208c70042b5d90a48350fd28728f8e9 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -2224,6 +2224,18 @@ void BytecodeGraphBuilder::VisitDebugger() { |
DEBUG_BREAK_BYTECODE_LIST(DEBUG_BREAK); |
#undef DEBUG_BREAK |
+void BytecodeGraphBuilder::VisitIncBlockCounter() { |
+ DCHECK(FLAG_block_coverage); |
+ |
+ Node* slot = jsgraph()->Constant(bytecode_iterator().GetImmediateOperand(0)); |
+ Node* vector = jsgraph()->Constant(feedback_vector()); |
+ |
+ const Operator* op = javascript()->CallRuntime(Runtime::kIncBlockCounter); |
+ |
+ Node* node = NewNode(op, vector, slot); |
+ environment()->RecordAfterState(node, Environment::kAttachFrameState); |
jgruber
2017/06/01 11:56:27
Ross: Is RecordAfterState needed here?
|
+} |
+ |
void BytecodeGraphBuilder::VisitForInPrepare() { |
PrepareEagerCheckpoint(); |
Node* receiver = |