Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: src/compiler/x87/code-generator-x87.cc

Issue 2101233002: X87: [builtins] Introduce proper Float64Tan operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/crankshaft/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/crankshaft/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698