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 1772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1783 } | 1783 } |
1784 | 1784 |
1785 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( | 1785 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( |
1786 int deoptimization_id, Deoptimizer::BailoutType bailout_type, | 1786 int deoptimization_id, Deoptimizer::BailoutType bailout_type, |
1787 SourcePosition pos) { | 1787 SourcePosition pos) { |
1788 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 1788 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
1789 isolate(), deoptimization_id, bailout_type); | 1789 isolate(), deoptimization_id, bailout_type); |
1790 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; | 1790 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; |
1791 DeoptimizeReason deoptimization_reason = | 1791 DeoptimizeReason deoptimization_reason = |
1792 GetDeoptimizationReason(deoptimization_id); | 1792 GetDeoptimizationReason(deoptimization_id); |
1793 __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); | 1793 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id); |
1794 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 1794 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
1795 return kSuccess; | 1795 return kSuccess; |
1796 } | 1796 } |
1797 | 1797 |
1798 | 1798 |
1799 // The calling convention for JSFunctions on IA32 passes arguments on the | 1799 // The calling convention for JSFunctions on IA32 passes arguments on the |
1800 // stack and the JSFunction and context in EDI and ESI, respectively, thus | 1800 // stack and the JSFunction and context in EDI and ESI, respectively, thus |
1801 // the steps of the call look as follows: | 1801 // the steps of the call look as follows: |
1802 | 1802 |
1803 // --{ before the call instruction }-------------------------------------------- | 1803 // --{ before the call instruction }-------------------------------------------- |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2277 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2277 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2278 __ Nop(padding_size); | 2278 __ Nop(padding_size); |
2279 } | 2279 } |
2280 } | 2280 } |
2281 | 2281 |
2282 #undef __ | 2282 #undef __ |
2283 | 2283 |
2284 } // namespace compiler | 2284 } // namespace compiler |
2285 } // namespace internal | 2285 } // namespace internal |
2286 } // namespace v8 | 2286 } // namespace v8 |
OLD | NEW |