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

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

Issue 2068743002: [builtins] Unify Atanh, Cbrt and Expm1 as exports from flibm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed type warning. 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/mips/code-generator-mips.cc ('k') | src/compiler/opcodes.h » ('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 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 __ Daddu(i.OutputRegister(), offset.from_stack_pointer() ? sp : fp, 749 __ Daddu(i.OutputRegister(), offset.from_stack_pointer() ? sp : fp,
750 Operand(offset.offset())); 750 Operand(offset.offset()));
751 break; 751 break;
752 } 752 }
753 case kIeee754Float64Atan: 753 case kIeee754Float64Atan:
754 ASSEMBLE_IEEE754_UNOP(atan); 754 ASSEMBLE_IEEE754_UNOP(atan);
755 break; 755 break;
756 case kIeee754Float64Atan2: 756 case kIeee754Float64Atan2:
757 ASSEMBLE_IEEE754_BINOP(atan2); 757 ASSEMBLE_IEEE754_BINOP(atan2);
758 break; 758 break;
759 case kIeee754Float64Atanh:
760 ASSEMBLE_IEEE754_UNOP(atanh);
761 break;
759 case kIeee754Float64Exp: 762 case kIeee754Float64Exp:
760 ASSEMBLE_IEEE754_UNOP(exp); 763 ASSEMBLE_IEEE754_UNOP(exp);
761 break; 764 break;
765 case kIeee754Float64Expm1:
766 ASSEMBLE_IEEE754_UNOP(expm1);
767 break;
762 case kIeee754Float64Log: 768 case kIeee754Float64Log:
763 ASSEMBLE_IEEE754_UNOP(log); 769 ASSEMBLE_IEEE754_UNOP(log);
764 break; 770 break;
765 case kIeee754Float64Log1p: 771 case kIeee754Float64Log1p:
766 ASSEMBLE_IEEE754_UNOP(log1p); 772 ASSEMBLE_IEEE754_UNOP(log1p);
767 break; 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 kIeee754Float64Log10:
772 ASSEMBLE_IEEE754_UNOP(log10); 778 ASSEMBLE_IEEE754_UNOP(log10);
773 break; 779 break;
780 case kIeee754Float64Cbrt:
781 ASSEMBLE_IEEE754_UNOP(cbrt);
782 break;
774 case kMips64Add: 783 case kMips64Add:
775 __ Addu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); 784 __ Addu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
776 break; 785 break;
777 case kMips64Dadd: 786 case kMips64Dadd:
778 __ Daddu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); 787 __ Daddu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
779 break; 788 break;
780 case kMips64DaddOvf: 789 case kMips64DaddOvf:
781 // Pseudo-instruction used for overflow/branch. No opcode emitted here. 790 // Pseudo-instruction used for overflow/branch. No opcode emitted here.
782 break; 791 break;
783 case kMips64Sub: 792 case kMips64Sub:
(...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after
2303 padding_size -= v8::internal::Assembler::kInstrSize; 2312 padding_size -= v8::internal::Assembler::kInstrSize;
2304 } 2313 }
2305 } 2314 }
2306 } 2315 }
2307 2316
2308 #undef __ 2317 #undef __
2309 2318
2310 } // namespace compiler 2319 } // namespace compiler
2311 } // namespace internal 2320 } // namespace internal
2312 } // namespace v8 2321 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips/code-generator-mips.cc ('k') | src/compiler/opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698