| 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/arm/macro-assembler-arm.h" | 7 #include "src/arm/macro-assembler-arm.h" |
| 8 #include "src/compilation-info.h" | 8 #include "src/compilation-info.h" |
| 9 #include "src/compiler/code-generator-impl.h" | 9 #include "src/compiler/code-generator-impl.h" |
| 10 #include "src/compiler/gap-resolver.h" | 10 #include "src/compiler/gap-resolver.h" |
| (...skipping 1625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1636 int deoptimization_id, Deoptimizer::BailoutType bailout_type, | 1636 int deoptimization_id, Deoptimizer::BailoutType bailout_type, |
| 1637 SourcePosition pos) { | 1637 SourcePosition pos) { |
| 1638 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 1638 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
| 1639 isolate(), deoptimization_id, bailout_type); | 1639 isolate(), deoptimization_id, bailout_type); |
| 1640 // TODO(turbofan): We should be able to generate better code by sharing the | 1640 // TODO(turbofan): We should be able to generate better code by sharing the |
| 1641 // actual final call site and just bl'ing to it here, similar to what we do | 1641 // actual final call site and just bl'ing to it here, similar to what we do |
| 1642 // in the lithium backend. | 1642 // in the lithium backend. |
| 1643 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; | 1643 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; |
| 1644 DeoptimizeReason deoptimization_reason = | 1644 DeoptimizeReason deoptimization_reason = |
| 1645 GetDeoptimizationReason(deoptimization_id); | 1645 GetDeoptimizationReason(deoptimization_id); |
| 1646 __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); | 1646 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id); |
| 1647 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 1647 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
| 1648 __ CheckConstPool(false, false); | 1648 __ CheckConstPool(false, false); |
| 1649 return kSuccess; | 1649 return kSuccess; |
| 1650 } | 1650 } |
| 1651 | 1651 |
| 1652 void CodeGenerator::FinishFrame(Frame* frame) { | 1652 void CodeGenerator::FinishFrame(Frame* frame) { |
| 1653 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); | 1653 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |
| 1654 | 1654 |
| 1655 const RegList saves_fp = descriptor->CalleeSavedFPRegisters(); | 1655 const RegList saves_fp = descriptor->CalleeSavedFPRegisters(); |
| 1656 if (saves_fp != 0) { | 1656 if (saves_fp != 0) { |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2053 padding_size -= v8::internal::Assembler::kInstrSize; | 2053 padding_size -= v8::internal::Assembler::kInstrSize; |
| 2054 } | 2054 } |
| 2055 } | 2055 } |
| 2056 } | 2056 } |
| 2057 | 2057 |
| 2058 #undef __ | 2058 #undef __ |
| 2059 | 2059 |
| 2060 } // namespace compiler | 2060 } // namespace compiler |
| 2061 } // namespace internal | 2061 } // namespace internal |
| 2062 } // namespace v8 | 2062 } // namespace v8 |
| OLD | NEW |