| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 2205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2216 int deoptimization_id, Deoptimizer::BailoutType bailout_type, | 2216 int deoptimization_id, Deoptimizer::BailoutType bailout_type, |
| 2217 SourcePosition pos) { | 2217 SourcePosition pos) { |
| 2218 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 2218 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
| 2219 isolate(), deoptimization_id, bailout_type); | 2219 isolate(), deoptimization_id, bailout_type); |
| 2220 // TODO(turbofan): We should be able to generate better code by sharing the | 2220 // TODO(turbofan): We should be able to generate better code by sharing the |
| 2221 // actual final call site and just bl'ing to it here, similar to what we do | 2221 // actual final call site and just bl'ing to it here, similar to what we do |
| 2222 // in the lithium backend. | 2222 // in the lithium backend. |
| 2223 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; | 2223 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; |
| 2224 DeoptimizeReason deoptimization_reason = | 2224 DeoptimizeReason deoptimization_reason = |
| 2225 GetDeoptimizationReason(deoptimization_id); | 2225 GetDeoptimizationReason(deoptimization_id); |
| 2226 __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); | 2226 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id); |
| 2227 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 2227 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
| 2228 return kSuccess; | 2228 return kSuccess; |
| 2229 } | 2229 } |
| 2230 | 2230 |
| 2231 void CodeGenerator::FinishFrame(Frame* frame) { | 2231 void CodeGenerator::FinishFrame(Frame* frame) { |
| 2232 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); | 2232 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |
| 2233 const RegList double_saves = descriptor->CalleeSavedFPRegisters(); | 2233 const RegList double_saves = descriptor->CalleeSavedFPRegisters(); |
| 2234 | 2234 |
| 2235 // Save callee-saved Double registers. | 2235 // Save callee-saved Double registers. |
| 2236 if (double_saves != 0) { | 2236 if (double_saves != 0) { |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2563 padding_size -= 2; | 2563 padding_size -= 2; |
| 2564 } | 2564 } |
| 2565 } | 2565 } |
| 2566 } | 2566 } |
| 2567 | 2567 |
| 2568 #undef __ | 2568 #undef __ |
| 2569 | 2569 |
| 2570 } // namespace compiler | 2570 } // namespace compiler |
| 2571 } // namespace internal | 2571 } // namespace internal |
| 2572 } // namespace v8 | 2572 } // namespace v8 |
| OLD | NEW |