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

Side by Side Diff: src/compiler/code-generator.cc

Issue 1175953002: [turbofan] Record the SharedFunctionInfo of ALL inlined functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Cannot use a ZoneVector because of smart... Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « src/compiler.h ('k') | src/compiler/js-inlining.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/linkage.h" 8 #include "src/compiler/linkage.h"
9 #include "src/compiler/pipeline.h" 9 #include "src/compiler/pipeline.h"
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 if (linkage()->GetIncomingDescriptor()->IsJSFunctionCall()) { 69 if (linkage()->GetIncomingDescriptor()->IsJSFunctionCall()) {
70 ProfileEntryHookStub::MaybeCallEntryHook(masm()); 70 ProfileEntryHookStub::MaybeCallEntryHook(masm());
71 } 71 }
72 72
73 // Architecture-specific, linkage-specific prologue. 73 // Architecture-specific, linkage-specific prologue.
74 info->set_prologue_offset(masm()->pc_offset()); 74 info->set_prologue_offset(masm()->pc_offset());
75 AssemblePrologue(); 75 AssemblePrologue();
76 76
77 // Define deoptimization literals for all inlined functions. 77 // Define deoptimization literals for all inlined functions.
78 DCHECK_EQ(0u, deoptimization_literals_.size()); 78 DCHECK_EQ(0u, deoptimization_literals_.size());
79 for (auto frame_state_descriptor : code()->frame_state_descriptors()) { 79 for (auto shared_info : info->inlined_functions()) {
80 Handle<SharedFunctionInfo> shared_info; 80 if (!shared_info.is_identical_to(info->shared_info())) {
81 if (frame_state_descriptor->shared_info().ToHandle(&shared_info) &&
82 !shared_info.is_identical_to(info->shared_info())) {
83 DefineDeoptimizationLiteral(shared_info); 81 DefineDeoptimizationLiteral(shared_info);
84 } 82 }
85 } 83 }
86 inlined_function_count_ = deoptimization_literals_.size(); 84 inlined_function_count_ = deoptimization_literals_.size();
87 85
88 // Assemble all non-deferred blocks, followed by deferred ones. 86 // Assemble all non-deferred blocks, followed by deferred ones.
89 for (int deferred = 0; deferred < 2; ++deferred) { 87 for (int deferred = 0; deferred < 2; ++deferred) {
90 for (auto const block : code()->instruction_blocks()) { 88 for (auto const block : code()->instruction_blocks()) {
91 if (block->IsDeferred() == (deferred == 0)) { 89 if (block->IsDeferred() == (deferred == 0)) {
92 continue; 90 continue;
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 : masm_(gen->masm()), next_(gen->ools_) { 682 : masm_(gen->masm()), next_(gen->ools_) {
685 gen->ools_ = this; 683 gen->ools_ = this;
686 } 684 }
687 685
688 686
689 OutOfLineCode::~OutOfLineCode() {} 687 OutOfLineCode::~OutOfLineCode() {}
690 688
691 } // namespace compiler 689 } // namespace compiler
692 } // namespace internal 690 } // namespace internal
693 } // namespace v8 691 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler.h ('k') | src/compiler/js-inlining.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698