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

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

Issue 1415133002: Introduce a reference to the code object of inlined functions in CompilationInfo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweak Created 5 years, 2 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 #include "src/frames-inl.h" 10 #include "src/frames-inl.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 if (linkage()->GetIncomingDescriptor()->IsJSFunctionCall()) { 76 if (linkage()->GetIncomingDescriptor()->IsJSFunctionCall()) {
77 ProfileEntryHookStub::MaybeCallEntryHook(masm()); 77 ProfileEntryHookStub::MaybeCallEntryHook(masm());
78 } 78 }
79 79
80 // Architecture-specific, linkage-specific prologue. 80 // Architecture-specific, linkage-specific prologue.
81 info->set_prologue_offset(masm()->pc_offset()); 81 info->set_prologue_offset(masm()->pc_offset());
82 AssemblePrologue(); 82 AssemblePrologue();
83 83
84 // Define deoptimization literals for all inlined functions. 84 // Define deoptimization literals for all inlined functions.
85 DCHECK_EQ(0u, deoptimization_literals_.size()); 85 DCHECK_EQ(0u, deoptimization_literals_.size());
86 for (auto shared_info : info->inlined_functions()) { 86 for (auto& inlined : info->inlined_functions()) {
87 if (!shared_info.is_identical_to(info->shared_info())) { 87 if (!inlined.shared_info.is_identical_to(info->shared_info())) {
88 DefineDeoptimizationLiteral(shared_info); 88 DefineDeoptimizationLiteral(inlined.shared_info);
89 } 89 }
90 } 90 }
91 inlined_function_count_ = deoptimization_literals_.size(); 91 inlined_function_count_ = deoptimization_literals_.size();
92 92
93 // Assemble all non-deferred blocks, followed by deferred ones. 93 // Assemble all non-deferred blocks, followed by deferred ones.
94 for (int deferred = 0; deferred < 2; ++deferred) { 94 for (int deferred = 0; deferred < 2; ++deferred) {
95 for (auto const block : code()->instruction_blocks()) { 95 for (auto const block : code()->instruction_blocks()) {
96 if (block->IsDeferred() == (deferred == 0)) { 96 if (block->IsDeferred() == (deferred == 0)) {
97 continue; 97 continue;
98 } 98 }
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 : masm_(gen->masm()), next_(gen->ools_) { 664 : masm_(gen->masm()), next_(gen->ools_) {
665 gen->ools_ = this; 665 gen->ools_ = this;
666 } 666 }
667 667
668 668
669 OutOfLineCode::~OutOfLineCode() {} 669 OutOfLineCode::~OutOfLineCode() {}
670 670
671 } // namespace compiler 671 } // namespace compiler
672 } // namespace internal 672 } // namespace internal
673 } // namespace v8 673 } // 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