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

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

Issue 2073123002: [builtins] Introduce proper Float64Cos and Float64Sin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix missing breaks Created 4 years, 6 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 | « src/compiler/machine-operator-reducer.cc ('k') | src/compiler/mips64/code-generator-mips64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ast/scopes.h" 5 #include "src/ast/scopes.h"
6 #include "src/compiler/code-generator.h" 6 #include "src/compiler/code-generator.h"
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 __ Addu(i.OutputRegister(), offset.from_stack_pointer() ? sp : fp, 740 __ Addu(i.OutputRegister(), offset.from_stack_pointer() ? sp : fp,
741 Operand(offset.offset())); 741 Operand(offset.offset()));
742 break; 742 break;
743 } 743 }
744 case kIeee754Float64Atan: 744 case kIeee754Float64Atan:
745 ASSEMBLE_IEEE754_UNOP(atan); 745 ASSEMBLE_IEEE754_UNOP(atan);
746 break; 746 break;
747 case kIeee754Float64Atan2: 747 case kIeee754Float64Atan2:
748 ASSEMBLE_IEEE754_BINOP(atan2); 748 ASSEMBLE_IEEE754_BINOP(atan2);
749 break; 749 break;
750 case kIeee754Float64Cos:
751 ASSEMBLE_IEEE754_UNOP(cos);
752 break;
753 case kIeee754Float64Cbrt:
754 ASSEMBLE_IEEE754_UNOP(cbrt);
755 break;
750 case kIeee754Float64Exp: 756 case kIeee754Float64Exp:
751 ASSEMBLE_IEEE754_UNOP(exp); 757 ASSEMBLE_IEEE754_UNOP(exp);
752 break; 758 break;
759 case kIeee754Float64Expm1:
760 ASSEMBLE_IEEE754_UNOP(expm1);
761 break;
753 case kIeee754Float64Atanh: 762 case kIeee754Float64Atanh:
754 ASSEMBLE_IEEE754_UNOP(atanh); 763 ASSEMBLE_IEEE754_UNOP(atanh);
755 break; 764 break;
756 case kIeee754Float64Log: 765 case kIeee754Float64Log:
757 ASSEMBLE_IEEE754_UNOP(log); 766 ASSEMBLE_IEEE754_UNOP(log);
758 break; 767 break;
759 case kIeee754Float64Cbrt:
760 ASSEMBLE_IEEE754_UNOP(cbrt);
761 break;
762 case kIeee754Float64Expm1:
763 ASSEMBLE_IEEE754_UNOP(expm1);
764 break;
765 case kIeee754Float64Log1p: 768 case kIeee754Float64Log1p:
766 ASSEMBLE_IEEE754_UNOP(log1p); 769 ASSEMBLE_IEEE754_UNOP(log1p);
767 break; 770 break;
771 case kIeee754Float64Log10:
772 ASSEMBLE_IEEE754_UNOP(log10);
773 break;
768 case kIeee754Float64Log2: 774 case kIeee754Float64Log2:
769 ASSEMBLE_IEEE754_UNOP(log2); 775 ASSEMBLE_IEEE754_UNOP(log2);
770 break; 776 break;
771 case kIeee754Float64Log10: 777 case kIeee754Float64Sin:
772 ASSEMBLE_IEEE754_UNOP(log10); 778 ASSEMBLE_IEEE754_UNOP(sin);
773 break; 779 break;
774 case kMipsAdd: 780 case kMipsAdd:
775 __ Addu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); 781 __ Addu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
776 break; 782 break;
777 case kMipsAddOvf: 783 case kMipsAddOvf:
778 // Pseudo-instruction used for overflow/branch. No opcode emitted here. 784 // Pseudo-instruction used for overflow/branch. No opcode emitted here.
779 break; 785 break;
780 case kMipsSub: 786 case kMipsSub:
781 __ Subu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); 787 __ Subu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
782 break; 788 break;
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
2065 padding_size -= v8::internal::Assembler::kInstrSize; 2071 padding_size -= v8::internal::Assembler::kInstrSize;
2066 } 2072 }
2067 } 2073 }
2068 } 2074 }
2069 2075
2070 #undef __ 2076 #undef __
2071 2077
2072 } // namespace compiler 2078 } // namespace compiler
2073 } // namespace internal 2079 } // namespace internal
2074 } // namespace v8 2080 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator-reducer.cc ('k') | src/compiler/mips64/code-generator-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698