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 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1879 } | 1879 } |
1880 | 1880 |
1881 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( | 1881 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( |
1882 int deoptimization_id, Deoptimizer::BailoutType bailout_type, | 1882 int deoptimization_id, Deoptimizer::BailoutType bailout_type, |
1883 SourcePosition pos) { | 1883 SourcePosition pos) { |
1884 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 1884 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
1885 isolate(), deoptimization_id, bailout_type); | 1885 isolate(), deoptimization_id, bailout_type); |
1886 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; | 1886 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; |
1887 DeoptimizeReason deoptimization_reason = | 1887 DeoptimizeReason deoptimization_reason = |
1888 GetDeoptimizationReason(deoptimization_id); | 1888 GetDeoptimizationReason(deoptimization_id); |
1889 __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); | 1889 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id); |
1890 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 1890 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
1891 return kSuccess; | 1891 return kSuccess; |
1892 } | 1892 } |
1893 | 1893 |
1894 void CodeGenerator::FinishFrame(Frame* frame) { | 1894 void CodeGenerator::FinishFrame(Frame* frame) { |
1895 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); | 1895 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |
1896 | 1896 |
1897 const RegList saves_fpu = descriptor->CalleeSavedFPRegisters(); | 1897 const RegList saves_fpu = descriptor->CalleeSavedFPRegisters(); |
1898 if (saves_fpu != 0) { | 1898 if (saves_fpu != 0) { |
1899 frame->AlignSavedCalleeRegisterSlots(); | 1899 frame->AlignSavedCalleeRegisterSlots(); |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2267 padding_size -= v8::internal::Assembler::kInstrSize; | 2267 padding_size -= v8::internal::Assembler::kInstrSize; |
2268 } | 2268 } |
2269 } | 2269 } |
2270 } | 2270 } |
2271 | 2271 |
2272 #undef __ | 2272 #undef __ |
2273 | 2273 |
2274 } // namespace compiler | 2274 } // namespace compiler |
2275 } // namespace internal | 2275 } // namespace internal |
2276 } // namespace v8 | 2276 } // namespace v8 |
OLD | NEW |