Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Unified Diff: src/ppc/lithium-codegen-ppc.cc

Issue 1145893003: [crankshaft] Record inlined shared function infos instead of closures. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix test failures. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/mips64/lithium-mips64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ppc/lithium-codegen-ppc.cc
diff --git a/src/ppc/lithium-codegen-ppc.cc b/src/ppc/lithium-codegen-ppc.cc
index 57def67a5f7d67fe48515882a0b83d9a1b8374eb..95d7cd9ff7d247afebd2642b8962db9b8d1797c7 100644
--- a/src/ppc/lithium-codegen-ppc.cc
+++ b/src/ppc/lithium-codegen-ppc.cc
@@ -895,15 +895,12 @@ int LCodeGen::DefineDeoptimizationLiteral(Handle<Object> literal) {
void LCodeGen::PopulateDeoptimizationLiteralsWithInlinedFunctions() {
- DCHECK(deoptimization_literals_.length() == 0);
-
- const ZoneList<Handle<JSFunction> >* inlined_closures =
+ DCHECK_EQ(0, deoptimization_literals_.length());
+ const ZoneList<Handle<JSFunction>>* const inlined_closures =
chunk()->inlined_closures();
-
- for (int i = 0, length = inlined_closures->length(); i < length; i++) {
- DefineDeoptimizationLiteral(inlined_closures->at(i));
+ for (int i = 0; i < inlined_closures->length(); ++i) {
+ DefineDeoptimizationLiteral(handle(inlined_closures->at(i)->shared()));
}
-
inlined_function_count_ = deoptimization_literals_.length();
}
« no previous file with comments | « src/mips64/lithium-mips64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698