Commit 21183dd1 authored by Tobias Tebbi's avatar Tobias Tebbi Committed by Commit Bot

[turbofan] escape analysis: support MapGuard node

Bug: v8:6731
Change-Id: I6b07ac90a7d86d0ff915b1e89238df5af6b07926
Reviewed-on: https://chromium-review.googlesource.com/620648Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47462}
parent 182c89ab
......@@ -645,6 +645,14 @@ void ReduceNode(const Operator* op, EscapeAnalysisTracker::Scope* current,
}
break;
}
case IrOpcode::kMapGuard: {
Node* object = current->ValueInput(0);
const VirtualObject* vobject = current->GetVirtualObject(object);
if (vobject && !vobject->HasEscaped()) {
current->MarkForDeletion();
}
break;
}
case IrOpcode::kStateValues:
case IrOpcode::kFrameState:
// These uses are always safe.
......
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