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 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 shared_info : info->inlined_functions()) { | 79 for (auto frame_state_descriptor : code()->frame_state_descriptors()) { |
80 if (!shared_info.is_identical_to(info->shared_info())) { | 80 Handle<SharedFunctionInfo> shared_info; |
| 81 if (frame_state_descriptor->shared_info().ToHandle(&shared_info) && |
| 82 !shared_info.is_identical_to(info->shared_info())) { |
81 DefineDeoptimizationLiteral(shared_info); | 83 DefineDeoptimizationLiteral(shared_info); |
82 } | 84 } |
83 } | 85 } |
84 inlined_function_count_ = deoptimization_literals_.size(); | 86 inlined_function_count_ = deoptimization_literals_.size(); |
85 | 87 |
86 // Assemble all non-deferred blocks, followed by deferred ones. | 88 // Assemble all non-deferred blocks, followed by deferred ones. |
87 for (int deferred = 0; deferred < 2; ++deferred) { | 89 for (int deferred = 0; deferred < 2; ++deferred) { |
88 for (auto const block : code()->instruction_blocks()) { | 90 for (auto const block : code()->instruction_blocks()) { |
89 if (block->IsDeferred() == (deferred == 0)) { | 91 if (block->IsDeferred() == (deferred == 0)) { |
90 continue; | 92 continue; |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 : masm_(gen->masm()), next_(gen->ools_) { | 684 : masm_(gen->masm()), next_(gen->ools_) { |
683 gen->ools_ = this; | 685 gen->ools_ = this; |
684 } | 686 } |
685 | 687 |
686 | 688 |
687 OutOfLineCode::~OutOfLineCode() {} | 689 OutOfLineCode::~OutOfLineCode() {} |
688 | 690 |
689 } // namespace compiler | 691 } // namespace compiler |
690 } // namespace internal | 692 } // namespace internal |
691 } // namespace v8 | 693 } // namespace v8 |
OLD | NEW |