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 #include "src/compilation-info.h" | 6 #include "src/compilation-info.h" |
7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
(...skipping 2192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2203 } | 2203 } |
2204 | 2204 |
2205 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( | 2205 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( |
2206 int deoptimization_id, Deoptimizer::BailoutType bailout_type, | 2206 int deoptimization_id, Deoptimizer::BailoutType bailout_type, |
2207 SourcePosition pos) { | 2207 SourcePosition pos) { |
2208 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 2208 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
2209 isolate(), deoptimization_id, bailout_type); | 2209 isolate(), deoptimization_id, bailout_type); |
2210 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; | 2210 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; |
2211 DeoptimizeReason deoptimization_reason = | 2211 DeoptimizeReason deoptimization_reason = |
2212 GetDeoptimizationReason(deoptimization_id); | 2212 GetDeoptimizationReason(deoptimization_id); |
2213 __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); | 2213 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id); |
2214 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 2214 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
2215 return kSuccess; | 2215 return kSuccess; |
2216 } | 2216 } |
2217 | 2217 |
2218 void CodeGenerator::FinishFrame(Frame* frame) { | 2218 void CodeGenerator::FinishFrame(Frame* frame) { |
2219 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); | 2219 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |
2220 | 2220 |
2221 const RegList saves_fpu = descriptor->CalleeSavedFPRegisters(); | 2221 const RegList saves_fpu = descriptor->CalleeSavedFPRegisters(); |
2222 if (saves_fpu != 0) { | 2222 if (saves_fpu != 0) { |
2223 int count = base::bits::CountPopulation32(saves_fpu); | 2223 int count = base::bits::CountPopulation32(saves_fpu); |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2529 padding_size -= v8::internal::Assembler::kInstrSize; | 2529 padding_size -= v8::internal::Assembler::kInstrSize; |
2530 } | 2530 } |
2531 } | 2531 } |
2532 } | 2532 } |
2533 | 2533 |
2534 #undef __ | 2534 #undef __ |
2535 | 2535 |
2536 } // namespace compiler | 2536 } // namespace compiler |
2537 } // namespace internal | 2537 } // namespace internal |
2538 } // namespace v8 | 2538 } // namespace v8 |
OLD | NEW |