| 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 2189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2200 } | 2200 } |
| 2201 | 2201 |
| 2202 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( | 2202 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( |
| 2203 int deoptimization_id, Deoptimizer::BailoutType bailout_type, | 2203 int deoptimization_id, Deoptimizer::BailoutType bailout_type, |
| 2204 SourcePosition pos) { | 2204 SourcePosition pos) { |
| 2205 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 2205 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
| 2206 isolate(), deoptimization_id, bailout_type); | 2206 isolate(), deoptimization_id, bailout_type); |
| 2207 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; | 2207 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; |
| 2208 DeoptimizeReason deoptimization_reason = | 2208 DeoptimizeReason deoptimization_reason = |
| 2209 GetDeoptimizationReason(deoptimization_id); | 2209 GetDeoptimizationReason(deoptimization_id); |
| 2210 __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); | 2210 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id); |
| 2211 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 2211 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
| 2212 return kSuccess; | 2212 return kSuccess; |
| 2213 } | 2213 } |
| 2214 | 2214 |
| 2215 void CodeGenerator::FinishFrame(Frame* frame) { | 2215 void CodeGenerator::FinishFrame(Frame* frame) { |
| 2216 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); | 2216 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |
| 2217 | 2217 |
| 2218 const RegList saves_fpu = descriptor->CalleeSavedFPRegisters(); | 2218 const RegList saves_fpu = descriptor->CalleeSavedFPRegisters(); |
| 2219 if (saves_fpu != 0) { | 2219 if (saves_fpu != 0) { |
| 2220 int count = base::bits::CountPopulation32(saves_fpu); | 2220 int count = base::bits::CountPopulation32(saves_fpu); |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2540 padding_size -= v8::internal::Assembler::kInstrSize; | 2540 padding_size -= v8::internal::Assembler::kInstrSize; |
| 2541 } | 2541 } |
| 2542 } | 2542 } |
| 2543 } | 2543 } |
| 2544 | 2544 |
| 2545 #undef __ | 2545 #undef __ |
| 2546 | 2546 |
| 2547 } // namespace compiler | 2547 } // namespace compiler |
| 2548 } // namespace internal | 2548 } // namespace internal |
| 2549 } // namespace v8 | 2549 } // namespace v8 |
| OLD | NEW |