Commit 5c5f5c08 authored by mstarzinger's avatar mstarzinger Committed by Commit bot

[turbofan] Shortcut checkpoint creation in graph builder.

R=jarin@chromium.org
BUG=v8:5021

Review-Url: https://codereview.chromium.org/2074673002
Cr-Commit-Position: refs/heads/master@{#37057}
parent 3249e23e
......@@ -4075,6 +4075,11 @@ void AstGraphBuilder::PrepareFrameState(Node* node, BailoutId ast_id,
}
void AstGraphBuilder::PrepareEagerCheckpoint(BailoutId ast_id) {
if (environment()->GetEffectDependency()->opcode() == IrOpcode::kCheckpoint) {
// We skip preparing a checkpoint if there already is one the current effect
// dependency. This is just an optimization and not need for correctness.
return;
}
if (ast_id != BailoutId::None()) {
Node* node = NewNode(common()->Checkpoint());
DCHECK_EQ(IrOpcode::kDead,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment