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 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1651 int deoptimization_id, Deoptimizer::BailoutType bailout_type, | 1651 int deoptimization_id, Deoptimizer::BailoutType bailout_type, |
1652 SourcePosition pos) { | 1652 SourcePosition pos) { |
1653 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 1653 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
1654 isolate(), deoptimization_id, bailout_type); | 1654 isolate(), deoptimization_id, bailout_type); |
1655 // TODO(turbofan): We should be able to generate better code by sharing the | 1655 // TODO(turbofan): We should be able to generate better code by sharing the |
1656 // actual final call site and just bl'ing to it here, similar to what we do | 1656 // actual final call site and just bl'ing to it here, similar to what we do |
1657 // in the lithium backend. | 1657 // in the lithium backend. |
1658 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; | 1658 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; |
1659 DeoptimizeReason deoptimization_reason = | 1659 DeoptimizeReason deoptimization_reason = |
1660 GetDeoptimizationReason(deoptimization_id); | 1660 GetDeoptimizationReason(deoptimization_id); |
1661 __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); | 1661 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id); |
1662 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 1662 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
1663 __ CheckConstPool(false, false); | 1663 __ CheckConstPool(false, false); |
1664 return kSuccess; | 1664 return kSuccess; |
1665 } | 1665 } |
1666 | 1666 |
1667 void CodeGenerator::FinishFrame(Frame* frame) { | 1667 void CodeGenerator::FinishFrame(Frame* frame) { |
1668 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); | 1668 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |
1669 | 1669 |
1670 const RegList saves_fp = descriptor->CalleeSavedFPRegisters(); | 1670 const RegList saves_fp = descriptor->CalleeSavedFPRegisters(); |
1671 if (saves_fp != 0) { | 1671 if (saves_fp != 0) { |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1994 padding_size -= v8::internal::Assembler::kInstrSize; | 1994 padding_size -= v8::internal::Assembler::kInstrSize; |
1995 } | 1995 } |
1996 } | 1996 } |
1997 } | 1997 } |
1998 | 1998 |
1999 #undef __ | 1999 #undef __ |
2000 | 2000 |
2001 } // namespace compiler | 2001 } // namespace compiler |
2002 } // namespace internal | 2002 } // namespace internal |
2003 } // namespace v8 | 2003 } // namespace v8 |
OLD | NEW |