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

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

Issue 2083573002: [builtins] Unify Cosh, Sinh and Tanh as exports from flibm (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE and windows fix. 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 | « src/builtins.cc ('k') | src/compiler/arm64/code-generator-arm64.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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/arm/macro-assembler-arm.h" 7 #include "src/arm/macro-assembler-arm.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/compiler/code-generator-impl.h" 9 #include "src/compiler/code-generator-impl.h"
10 #include "src/compiler/gap-resolver.h" 10 #include "src/compiler/gap-resolver.h"
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 break; 683 break;
684 case kIeee754Float64Atan2: 684 case kIeee754Float64Atan2:
685 ASSEMBLE_IEEE754_BINOP(atan2); 685 ASSEMBLE_IEEE754_BINOP(atan2);
686 break; 686 break;
687 case kIeee754Float64Cbrt: 687 case kIeee754Float64Cbrt:
688 ASSEMBLE_IEEE754_UNOP(cbrt); 688 ASSEMBLE_IEEE754_UNOP(cbrt);
689 break; 689 break;
690 case kIeee754Float64Cos: 690 case kIeee754Float64Cos:
691 ASSEMBLE_IEEE754_UNOP(cos); 691 ASSEMBLE_IEEE754_UNOP(cos);
692 break; 692 break;
693 case kIeee754Float64Cosh:
694 ASSEMBLE_IEEE754_UNOP(cosh);
695 break;
693 case kIeee754Float64Exp: 696 case kIeee754Float64Exp:
694 ASSEMBLE_IEEE754_UNOP(exp); 697 ASSEMBLE_IEEE754_UNOP(exp);
695 break; 698 break;
696 case kIeee754Float64Expm1: 699 case kIeee754Float64Expm1:
697 ASSEMBLE_IEEE754_UNOP(expm1); 700 ASSEMBLE_IEEE754_UNOP(expm1);
698 break; 701 break;
699 case kIeee754Float64Atanh: 702 case kIeee754Float64Atanh:
700 ASSEMBLE_IEEE754_UNOP(atanh); 703 ASSEMBLE_IEEE754_UNOP(atanh);
701 break; 704 break;
702 case kIeee754Float64Log: 705 case kIeee754Float64Log:
(...skipping 10 matching lines...) Expand all
713 break; 716 break;
714 case kIeee754Float64Pow: { 717 case kIeee754Float64Pow: {
715 MathPowStub stub(isolate(), MathPowStub::DOUBLE); 718 MathPowStub stub(isolate(), MathPowStub::DOUBLE);
716 __ CallStub(&stub); 719 __ CallStub(&stub);
717 __ vmov(d0, d2); 720 __ vmov(d0, d2);
718 break; 721 break;
719 } 722 }
720 case kIeee754Float64Sin: 723 case kIeee754Float64Sin:
721 ASSEMBLE_IEEE754_UNOP(sin); 724 ASSEMBLE_IEEE754_UNOP(sin);
722 break; 725 break;
726 case kIeee754Float64Sinh:
727 ASSEMBLE_IEEE754_UNOP(sinh);
728 break;
723 case kIeee754Float64Tan: 729 case kIeee754Float64Tan:
724 ASSEMBLE_IEEE754_UNOP(tan); 730 ASSEMBLE_IEEE754_UNOP(tan);
725 break; 731 break;
732 case kIeee754Float64Tanh:
733 ASSEMBLE_IEEE754_UNOP(tanh);
734 break;
726 case kArmAdd: 735 case kArmAdd:
727 __ add(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), 736 __ add(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1),
728 i.OutputSBit()); 737 i.OutputSBit());
729 break; 738 break;
730 case kArmAnd: 739 case kArmAnd:
731 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), 740 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1),
732 i.OutputSBit()); 741 i.OutputSBit());
733 break; 742 break;
734 case kArmBic: 743 case kArmBic:
735 __ bic(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), 744 __ bic(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1),
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after
1816 padding_size -= v8::internal::Assembler::kInstrSize; 1825 padding_size -= v8::internal::Assembler::kInstrSize;
1817 } 1826 }
1818 } 1827 }
1819 } 1828 }
1820 1829
1821 #undef __ 1830 #undef __
1822 1831
1823 } // namespace compiler 1832 } // namespace compiler
1824 } // namespace internal 1833 } // namespace internal
1825 } // namespace v8 1834 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/compiler/arm64/code-generator-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698