| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "src/compilation-info.h" | 9 #include "src/compilation-info.h" |
| 10 #include "src/compiler/code-generator-impl.h" | 10 #include "src/compiler/code-generator-impl.h" |
| (...skipping 2333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2344 } | 2344 } |
| 2345 | 2345 |
| 2346 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( | 2346 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( |
| 2347 int deoptimization_id, Deoptimizer::BailoutType bailout_type, | 2347 int deoptimization_id, Deoptimizer::BailoutType bailout_type, |
| 2348 SourcePosition pos) { | 2348 SourcePosition pos) { |
| 2349 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 2349 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
| 2350 isolate(), deoptimization_id, bailout_type); | 2350 isolate(), deoptimization_id, bailout_type); |
| 2351 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; | 2351 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; |
| 2352 DeoptimizeReason deoptimization_reason = | 2352 DeoptimizeReason deoptimization_reason = |
| 2353 GetDeoptimizationReason(deoptimization_id); | 2353 GetDeoptimizationReason(deoptimization_id); |
| 2354 __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); | 2354 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id); |
| 2355 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 2355 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
| 2356 return kSuccess; | 2356 return kSuccess; |
| 2357 } | 2357 } |
| 2358 | 2358 |
| 2359 | 2359 |
| 2360 namespace { | 2360 namespace { |
| 2361 | 2361 |
| 2362 static const int kQuadWordSize = 16; | 2362 static const int kQuadWordSize = 16; |
| 2363 | 2363 |
| 2364 } // namespace | 2364 } // namespace |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2777 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2777 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 2778 __ Nop(padding_size); | 2778 __ Nop(padding_size); |
| 2779 } | 2779 } |
| 2780 } | 2780 } |
| 2781 | 2781 |
| 2782 #undef __ | 2782 #undef __ |
| 2783 | 2783 |
| 2784 } // namespace compiler | 2784 } // namespace compiler |
| 2785 } // namespace internal | 2785 } // namespace internal |
| 2786 } // namespace v8 | 2786 } // namespace v8 |
| OLD | NEW |