| 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 1872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1883 } | 1883 } |
| 1884 | 1884 |
| 1885 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( | 1885 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( |
| 1886 int deoptimization_id, Deoptimizer::BailoutType bailout_type, | 1886 int deoptimization_id, Deoptimizer::BailoutType bailout_type, |
| 1887 SourcePosition pos) { | 1887 SourcePosition pos) { |
| 1888 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 1888 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
| 1889 isolate(), deoptimization_id, bailout_type); | 1889 isolate(), deoptimization_id, bailout_type); |
| 1890 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; | 1890 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; |
| 1891 DeoptimizeReason deoptimization_reason = | 1891 DeoptimizeReason deoptimization_reason = |
| 1892 GetDeoptimizationReason(deoptimization_id); | 1892 GetDeoptimizationReason(deoptimization_id); |
| 1893 __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); | 1893 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id); |
| 1894 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 1894 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
| 1895 return kSuccess; | 1895 return kSuccess; |
| 1896 } | 1896 } |
| 1897 | 1897 |
| 1898 void CodeGenerator::FinishFrame(Frame* frame) { | 1898 void CodeGenerator::FinishFrame(Frame* frame) { |
| 1899 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); | 1899 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |
| 1900 | 1900 |
| 1901 const RegList saves_fpu = descriptor->CalleeSavedFPRegisters(); | 1901 const RegList saves_fpu = descriptor->CalleeSavedFPRegisters(); |
| 1902 if (saves_fpu != 0) { | 1902 if (saves_fpu != 0) { |
| 1903 frame->AlignSavedCalleeRegisterSlots(); | 1903 frame->AlignSavedCalleeRegisterSlots(); |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2255 padding_size -= v8::internal::Assembler::kInstrSize; | 2255 padding_size -= v8::internal::Assembler::kInstrSize; |
| 2256 } | 2256 } |
| 2257 } | 2257 } |
| 2258 } | 2258 } |
| 2259 | 2259 |
| 2260 #undef __ | 2260 #undef __ |
| 2261 | 2261 |
| 2262 } // namespace compiler | 2262 } // namespace compiler |
| 2263 } // namespace internal | 2263 } // namespace internal |
| 2264 } // namespace v8 | 2264 } // namespace v8 |
| OLD | NEW |