Commit cf3a4a70 authored by ofrobots's avatar ofrobots Committed by Commit bot

[turbofan] BytecodeGraphBuilder was incorrectly tenuring most CreateClosure allocations

R=bmeurer@chromium.org, rmcilroy@chromium.org

Review-Url: https://codereview.chromium.org/2309203002
Cr-Commit-Position: refs/heads/master@{#39148}
parent f1a6e5e7
......@@ -922,7 +922,10 @@ void BytecodeGraphBuilder::VisitCreateClosure() {
Handle<SharedFunctionInfo> shared_info = Handle<SharedFunctionInfo>::cast(
bytecode_iterator().GetConstantForIndexOperand(0));
PretenureFlag tenured =
bytecode_iterator().GetFlagOperand(1) ? TENURED : NOT_TENURED;
interpreter::CreateClosureFlags::PretenuredBit::decode(
bytecode_iterator().GetFlagOperand(1))
? TENURED
: NOT_TENURED;
const Operator* op = javascript()->CreateClosure(shared_info, tenured);
Node* closure = NewNode(op);
environment()->BindAccumulator(closure);
......
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