Reviewers: Benedikt Meurer, dstence, michael_dawson,

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

[email protected], [email protected], [email protected]
BUG=

Please review this at https://codereview.chromium.org/1143153013/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+3, -5 lines):
  M src/ppc/lithium-codegen-ppc.cc
  M src/ppc/lithium-ppc.cc


Index: src/ppc/lithium-codegen-ppc.cc
diff --git a/src/ppc/lithium-codegen-ppc.cc b/src/ppc/lithium-codegen-ppc.cc
index 95d7cd9ff7d247afebd2642b8962db9b8d1797c7..ce17f25e869745956b74b5deaa3c936d3e5bcc4c 100644
--- a/src/ppc/lithium-codegen-ppc.cc
+++ b/src/ppc/lithium-codegen-ppc.cc
@@ -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: src/ppc/lithium-ppc.cc
diff --git a/src/ppc/lithium-ppc.cc b/src/ppc/lithium-ppc.cc
index 8e2340a1aa263797520e645bf4487a03f91872c8..7cb5be82abaeae30159f7cfa809c1699b75734a1 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;
 }



--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to