| 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/ast/scopes.h" | 7 #include "src/ast/scopes.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 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 break; | 778 break; |
| 779 case kIeee754Float64Log1p: | 779 case kIeee754Float64Log1p: |
| 780 ASSEMBLE_IEEE754_UNOP(log1p); | 780 ASSEMBLE_IEEE754_UNOP(log1p); |
| 781 break; | 781 break; |
| 782 case kIeee754Float64Log2: | 782 case kIeee754Float64Log2: |
| 783 ASSEMBLE_IEEE754_UNOP(log2); | 783 ASSEMBLE_IEEE754_UNOP(log2); |
| 784 break; | 784 break; |
| 785 case kIeee754Float64Log10: | 785 case kIeee754Float64Log10: |
| 786 ASSEMBLE_IEEE754_UNOP(log10); | 786 ASSEMBLE_IEEE754_UNOP(log10); |
| 787 break; | 787 break; |
| 788 case kIeee754Float64Pow: { |
| 789 // Keep the x87 FPU stack empty before calling stub code |
| 790 __ fstp(0); |
| 791 // Call the MathStub and put return value in stX_0 |
| 792 MathPowStub stub(isolate(), MathPowStub::DOUBLE); |
| 793 __ CallStub(&stub); |
| 794 /* Return value is in st(0) on x87. */ |
| 795 __ lea(esp, Operand(esp, 2 * kDoubleSize)); |
| 796 break; |
| 797 } |
| 788 case kIeee754Float64Sin: | 798 case kIeee754Float64Sin: |
| 789 __ X87SetFPUCW(0x027F); | 799 __ X87SetFPUCW(0x027F); |
| 790 ASSEMBLE_IEEE754_UNOP(sin); | 800 ASSEMBLE_IEEE754_UNOP(sin); |
| 791 __ X87SetFPUCW(0x037F); | 801 __ X87SetFPUCW(0x037F); |
| 792 break; | 802 break; |
| 793 case kIeee754Float64Tan: | 803 case kIeee754Float64Tan: |
| 794 __ X87SetFPUCW(0x027F); | 804 __ X87SetFPUCW(0x027F); |
| 795 ASSEMBLE_IEEE754_UNOP(tan); | 805 ASSEMBLE_IEEE754_UNOP(tan); |
| 796 __ X87SetFPUCW(0x037F); | 806 __ X87SetFPUCW(0x037F); |
| 797 break; | 807 break; |
| (...skipping 1818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2616 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2626 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 2617 __ Nop(padding_size); | 2627 __ Nop(padding_size); |
| 2618 } | 2628 } |
| 2619 } | 2629 } |
| 2620 | 2630 |
| 2621 #undef __ | 2631 #undef __ |
| 2622 | 2632 |
| 2623 } // namespace compiler | 2633 } // namespace compiler |
| 2624 } // namespace internal | 2634 } // namespace internal |
| 2625 } // namespace v8 | 2635 } // namespace v8 |
| OLD | NEW |