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/compilation-info.h" | 7 #include "src/compilation-info.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 2064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2075 int deoptimization_id, Deoptimizer::BailoutType bailout_type, | 2075 int deoptimization_id, Deoptimizer::BailoutType bailout_type, |
2076 SourcePosition pos) { | 2076 SourcePosition pos) { |
2077 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 2077 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
2078 isolate(), deoptimization_id, bailout_type); | 2078 isolate(), deoptimization_id, bailout_type); |
2079 // TODO(turbofan): We should be able to generate better code by sharing the | 2079 // TODO(turbofan): We should be able to generate better code by sharing the |
2080 // actual final call site and just bl'ing to it here, similar to what we do | 2080 // actual final call site and just bl'ing to it here, similar to what we do |
2081 // in the lithium backend. | 2081 // in the lithium backend. |
2082 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; | 2082 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; |
2083 DeoptimizeReason deoptimization_reason = | 2083 DeoptimizeReason deoptimization_reason = |
2084 GetDeoptimizationReason(deoptimization_id); | 2084 GetDeoptimizationReason(deoptimization_id); |
2085 __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); | 2085 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id); |
2086 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 2086 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
2087 return kSuccess; | 2087 return kSuccess; |
2088 } | 2088 } |
2089 | 2089 |
2090 void CodeGenerator::FinishFrame(Frame* frame) { | 2090 void CodeGenerator::FinishFrame(Frame* frame) { |
2091 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); | 2091 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |
2092 const RegList double_saves = descriptor->CalleeSavedFPRegisters(); | 2092 const RegList double_saves = descriptor->CalleeSavedFPRegisters(); |
2093 | 2093 |
2094 // Save callee-saved Double registers. | 2094 // Save callee-saved Double registers. |
2095 if (double_saves != 0) { | 2095 if (double_saves != 0) { |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2453 padding_size -= v8::internal::Assembler::kInstrSize; | 2453 padding_size -= v8::internal::Assembler::kInstrSize; |
2454 } | 2454 } |
2455 } | 2455 } |
2456 } | 2456 } |
2457 | 2457 |
2458 #undef __ | 2458 #undef __ |
2459 | 2459 |
2460 } // namespace compiler | 2460 } // namespace compiler |
2461 } // namespace internal | 2461 } // namespace internal |
2462 } // namespace v8 | 2462 } // namespace v8 |
OLD | NEW |