From 99996b4bbea9fba42aeb6bed7ec73f5608a34424 Mon Sep 17 00:00:00 2001 From: mbrandy Date: Thu, 28 May 2015 08:57:02 -0700 Subject: [PATCH] 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} --- src/ppc/lithium-codegen-ppc.cc | 6 ++---- src/ppc/lithium-ppc.cc | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/ppc/lithium-codegen-ppc.cc b/src/ppc/lithium-codegen-ppc.cc index 95d7cd9..ce17f25 100644 --- a/src/ppc/lithium-codegen-ppc.cc +++ b/src/ppc/lithium-codegen-ppc.cc @@ -896,10 +896,8 @@ int LCodeGen::DefineDeoptimizationLiteral(Handle literal) { void LCodeGen::PopulateDeoptimizationLiteralsWithInlinedFunctions() { DCHECK_EQ(0, deoptimization_literals_.length()); - const ZoneList>* 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(); } diff --git a/src/ppc/lithium-ppc.cc b/src/ppc/lithium-ppc.cc index 8e2340a..7cb5be8 100644 --- a/src/ppc/lithium-ppc.cc +++ b/src/ppc/lithium-ppc.cc @@ -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; } -- 2.7.4