Commit 99996b4b authored by mbrandy's avatar mbrandy Committed by Commit bot

PPC: Fix '[crankshaft] Record inlined shared function infos instead of closures.'

R=bmeurer@chromium.org, dstence@us.ibm.com, michael_dawson@ca.ibm.com
BUG=

Review URL: https://codereview.chromium.org/1143153013

Cr-Commit-Position: refs/heads/master@{#28685}
parent 9088719e
......@@ -896,10 +896,8 @@ int LCodeGen::DefineDeoptimizationLiteral(Handle<Object> literal) {
void LCodeGen::PopulateDeoptimizationLiteralsWithInlinedFunctions() {
DCHECK_EQ(0, deoptimization_literals_.length());
const ZoneList<Handle<JSFunction>>* const inlined_closures =
chunk()->inlined_closures();
for (int i = 0; i < inlined_closures->length(); ++i) {
DefineDeoptimizationLiteral(handle(inlined_closures->at(i)->shared()));
for (auto function : chunk()->inlined_functions()) {
DefineDeoptimizationLiteral(function);
}
inlined_function_count_ = deoptimization_literals_.length();
}
......
......@@ -2551,7 +2551,7 @@ LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) {
inner->BindContext(instr->closure_context());
inner->set_entry(instr);
current_block_->UpdateEnvironment(inner);
chunk_->AddInlinedClosure(instr->closure());
chunk_->AddInlinedFunction(instr->shared());
return NULL;
}
......
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