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

Side by Side Diff: src/compiler/ia32/code-generator-ia32.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/code-assembler.h ('k') | src/compiler/instruction-codes.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 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 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 } 651 }
652 case kIeee754Float64Atan: 652 case kIeee754Float64Atan:
653 ASSEMBLE_IEEE754_UNOP(atan); 653 ASSEMBLE_IEEE754_UNOP(atan);
654 break; 654 break;
655 case kIeee754Float64Atan2: 655 case kIeee754Float64Atan2:
656 ASSEMBLE_IEEE754_BINOP(atan2); 656 ASSEMBLE_IEEE754_BINOP(atan2);
657 break; 657 break;
658 case kIeee754Float64Exp: 658 case kIeee754Float64Exp:
659 ASSEMBLE_IEEE754_UNOP(exp); 659 ASSEMBLE_IEEE754_UNOP(exp);
660 break; 660 break;
661 case kIeee754Float64Atanh:
662 ASSEMBLE_IEEE754_UNOP(atanh);
663 break;
661 case kIeee754Float64Log: 664 case kIeee754Float64Log:
662 ASSEMBLE_IEEE754_UNOP(log); 665 ASSEMBLE_IEEE754_UNOP(log);
663 break; 666 break;
664 case kIeee754Float64Log1p: 667 case kIeee754Float64Log1p:
665 ASSEMBLE_IEEE754_UNOP(log1p); 668 ASSEMBLE_IEEE754_UNOP(log1p);
666 break; 669 break;
667 case kIeee754Float64Log2: 670 case kIeee754Float64Log2:
668 ASSEMBLE_IEEE754_UNOP(log2); 671 ASSEMBLE_IEEE754_UNOP(log2);
669 break; 672 break;
670 case kIeee754Float64Log10: 673 case kIeee754Float64Log10:
671 ASSEMBLE_IEEE754_UNOP(log10); 674 ASSEMBLE_IEEE754_UNOP(log10);
672 break; 675 break;
676 case kIeee754Float64Cbrt:
677 ASSEMBLE_IEEE754_UNOP(cbrt);
678 break;
679 case kIeee754Float64Expm1:
680 ASSEMBLE_IEEE754_UNOP(expm1);
681 break;
673 case kIA32Add: 682 case kIA32Add:
674 if (HasImmediateInput(instr, 1)) { 683 if (HasImmediateInput(instr, 1)) {
675 __ add(i.InputOperand(0), i.InputImmediate(1)); 684 __ add(i.InputOperand(0), i.InputImmediate(1));
676 } else { 685 } else {
677 __ add(i.InputRegister(0), i.InputOperand(1)); 686 __ add(i.InputRegister(0), i.InputOperand(1));
678 } 687 }
679 break; 688 break;
680 case kIA32And: 689 case kIA32And:
681 if (HasImmediateInput(instr, 1)) { 690 if (HasImmediateInput(instr, 1)) {
682 __ and_(i.InputOperand(0), i.InputImmediate(1)); 691 __ and_(i.InputOperand(0), i.InputImmediate(1));
(...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after
2019 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2028 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2020 __ Nop(padding_size); 2029 __ Nop(padding_size);
2021 } 2030 }
2022 } 2031 }
2023 2032
2024 #undef __ 2033 #undef __
2025 2034
2026 } // namespace compiler 2035 } // namespace compiler
2027 } // namespace internal 2036 } // namespace internal
2028 } // namespace v8 2037 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-assembler.h ('k') | src/compiler/instruction-codes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698