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 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 kIeee754Float64Sin: | 788 case kIeee754Float64Sin: |
789 __ X87SetFPUCW(0x027F); | 789 __ X87SetFPUCW(0x027F); |
790 ASSEMBLE_IEEE754_UNOP(sin); | 790 ASSEMBLE_IEEE754_UNOP(sin); |
791 __ X87SetFPUCW(0x037F); | 791 __ X87SetFPUCW(0x037F); |
792 break; | 792 break; |
| 793 case kIeee754Float64Tan: |
| 794 __ X87SetFPUCW(0x027F); |
| 795 ASSEMBLE_IEEE754_UNOP(tan); |
| 796 __ X87SetFPUCW(0x037F); |
| 797 break; |
793 case kX87Add: | 798 case kX87Add: |
794 if (HasImmediateInput(instr, 1)) { | 799 if (HasImmediateInput(instr, 1)) { |
795 __ add(i.InputOperand(0), i.InputImmediate(1)); | 800 __ add(i.InputOperand(0), i.InputImmediate(1)); |
796 } else { | 801 } else { |
797 __ add(i.InputRegister(0), i.InputOperand(1)); | 802 __ add(i.InputRegister(0), i.InputOperand(1)); |
798 } | 803 } |
799 break; | 804 break; |
800 case kX87And: | 805 case kX87And: |
801 if (HasImmediateInput(instr, 1)) { | 806 if (HasImmediateInput(instr, 1)) { |
802 __ and_(i.InputOperand(0), i.InputImmediate(1)); | 807 __ and_(i.InputOperand(0), i.InputImmediate(1)); |
(...skipping 1808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2611 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2616 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
2612 __ Nop(padding_size); | 2617 __ Nop(padding_size); |
2613 } | 2618 } |
2614 } | 2619 } |
2615 | 2620 |
2616 #undef __ | 2621 #undef __ |
2617 | 2622 |
2618 } // namespace compiler | 2623 } // namespace compiler |
2619 } // namespace internal | 2624 } // namespace internal |
2620 } // namespace v8 | 2625 } // namespace v8 |
OLD | NEW |