PPC: Fix '[crankshaft] Record inlined shared function infos instead of closures.'
authormbrandy <mbrandy@us.ibm.com>
Thu, 28 May 2015 15:57:02 +0000 (08:57 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 28 May 2015 15:57:16 +0000 (15:57 +0000)
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
src/ppc/lithium-ppc.cc

index 95d7cd9..ce17f25 100644 (file)
@@ -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();
 }
index 8e2340a..7cb5be8 100644 (file)
@@ -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;
 }