| 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 "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 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1786 } | 1786 } |
| 1787 | 1787 |
| 1788 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( | 1788 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( |
| 1789 int deoptimization_id, Deoptimizer::BailoutType bailout_type, | 1789 int deoptimization_id, Deoptimizer::BailoutType bailout_type, |
| 1790 SourcePosition pos) { | 1790 SourcePosition pos) { |
| 1791 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 1791 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
| 1792 isolate(), deoptimization_id, bailout_type); | 1792 isolate(), deoptimization_id, bailout_type); |
| 1793 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; | 1793 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; |
| 1794 DeoptimizeReason deoptimization_reason = | 1794 DeoptimizeReason deoptimization_reason = |
| 1795 GetDeoptimizationReason(deoptimization_id); | 1795 GetDeoptimizationReason(deoptimization_id); |
| 1796 __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); | 1796 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id); |
| 1797 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 1797 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
| 1798 return kSuccess; | 1798 return kSuccess; |
| 1799 } | 1799 } |
| 1800 | 1800 |
| 1801 | 1801 |
| 1802 // The calling convention for JSFunctions on IA32 passes arguments on the | 1802 // The calling convention for JSFunctions on IA32 passes arguments on the |
| 1803 // stack and the JSFunction and context in EDI and ESI, respectively, thus | 1803 // stack and the JSFunction and context in EDI and ESI, respectively, thus |
| 1804 // the steps of the call look as follows: | 1804 // the steps of the call look as follows: |
| 1805 | 1805 |
| 1806 // --{ before the call instruction }-------------------------------------------- | 1806 // --{ before the call instruction }-------------------------------------------- |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2258 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2258 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 2259 __ Nop(padding_size); | 2259 __ Nop(padding_size); |
| 2260 } | 2260 } |
| 2261 } | 2261 } |
| 2262 | 2262 |
| 2263 #undef __ | 2263 #undef __ |
| 2264 | 2264 |
| 2265 } // namespace compiler | 2265 } // namespace compiler |
| 2266 } // namespace internal | 2266 } // namespace internal |
| 2267 } // namespace v8 | 2267 } // namespace v8 |
| OLD | NEW |