| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
| 8 #include "src/arm64/macro-assembler-arm64.h" | 8 #include "src/arm64/macro-assembler-arm64.h" |
| 9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
| 10 #include "src/compiler/code-generator-impl.h" | 10 #include "src/compiler/code-generator-impl.h" |
| (...skipping 1743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1754 __ B(GetLabel(i.InputRpo(index + 2))); | 1754 __ B(GetLabel(i.InputRpo(index + 2))); |
| 1755 } | 1755 } |
| 1756 __ EndBlockPools(); | 1756 __ EndBlockPools(); |
| 1757 } | 1757 } |
| 1758 | 1758 |
| 1759 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( | 1759 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( |
| 1760 int deoptimization_id, Deoptimizer::BailoutType bailout_type) { | 1760 int deoptimization_id, Deoptimizer::BailoutType bailout_type) { |
| 1761 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 1761 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
| 1762 isolate(), deoptimization_id, bailout_type); | 1762 isolate(), deoptimization_id, bailout_type); |
| 1763 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; | 1763 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; |
| 1764 DeoptimizeReason deoptimization_reason = |
| 1765 GetDeoptimizationReason(deoptimization_id); |
| 1766 __ RecordDeoptReason(deoptimization_reason, 0, deoptimization_id); |
| 1764 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 1767 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
| 1765 return kSuccess; | 1768 return kSuccess; |
| 1766 } | 1769 } |
| 1767 | 1770 |
| 1768 void CodeGenerator::FinishFrame(Frame* frame) { | 1771 void CodeGenerator::FinishFrame(Frame* frame) { |
| 1769 frame->AlignFrame(16); | 1772 frame->AlignFrame(16); |
| 1770 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); | 1773 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |
| 1771 | 1774 |
| 1772 if (descriptor->UseNativeStack() || descriptor->IsCFunctionCall()) { | 1775 if (descriptor->UseNativeStack() || descriptor->IsCFunctionCall()) { |
| 1773 __ SetStackPointer(csp); | 1776 __ SetStackPointer(csp); |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2084 padding_size -= kInstructionSize; | 2087 padding_size -= kInstructionSize; |
| 2085 } | 2088 } |
| 2086 } | 2089 } |
| 2087 } | 2090 } |
| 2088 | 2091 |
| 2089 #undef __ | 2092 #undef __ |
| 2090 | 2093 |
| 2091 } // namespace compiler | 2094 } // namespace compiler |
| 2092 } // namespace internal | 2095 } // namespace internal |
| 2093 } // namespace v8 | 2096 } // namespace v8 |
| OLD | NEW |