OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |