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

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

Issue 2116753002: [builtins] Unify most of the remaining Math builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@2102223005
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
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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 frame_access_state()->GetFrameOffset(i.InputInt32(0)); 642 frame_access_state()->GetFrameOffset(i.InputInt32(0));
643 Register base; 643 Register base;
644 if (offset.from_stack_pointer()) { 644 if (offset.from_stack_pointer()) {
645 base = esp; 645 base = esp;
646 } else { 646 } else {
647 base = ebp; 647 base = ebp;
648 } 648 }
649 __ lea(i.OutputRegister(), Operand(base, offset.offset())); 649 __ lea(i.OutputRegister(), Operand(base, offset.offset()));
650 break; 650 break;
651 } 651 }
652 case kIeee754Float64Acos:
653 ASSEMBLE_IEEE754_UNOP(acos);
654 break;
655 case kIeee754Float64Acosh:
656 ASSEMBLE_IEEE754_UNOP(acosh);
657 break;
658 case kIeee754Float64Asin:
659 ASSEMBLE_IEEE754_UNOP(asin);
660 break;
661 case kIeee754Float64Asinh:
662 ASSEMBLE_IEEE754_UNOP(asinh);
663 break;
652 case kIeee754Float64Atan: 664 case kIeee754Float64Atan:
653 ASSEMBLE_IEEE754_UNOP(atan); 665 ASSEMBLE_IEEE754_UNOP(atan);
654 break; 666 break;
667 case kIeee754Float64Atanh:
668 ASSEMBLE_IEEE754_UNOP(atanh);
669 break;
655 case kIeee754Float64Atan2: 670 case kIeee754Float64Atan2:
656 ASSEMBLE_IEEE754_BINOP(atan2); 671 ASSEMBLE_IEEE754_BINOP(atan2);
657 break; 672 break;
658 case kIeee754Float64Cbrt: 673 case kIeee754Float64Cbrt:
659 ASSEMBLE_IEEE754_UNOP(cbrt); 674 ASSEMBLE_IEEE754_UNOP(cbrt);
660 break; 675 break;
661 case kIeee754Float64Cos: 676 case kIeee754Float64Cos:
662 ASSEMBLE_IEEE754_UNOP(cos); 677 ASSEMBLE_IEEE754_UNOP(cos);
663 break; 678 break;
664 case kIeee754Float64Cosh: 679 case kIeee754Float64Cosh:
665 ASSEMBLE_IEEE754_UNOP(cosh); 680 ASSEMBLE_IEEE754_UNOP(cosh);
666 break; 681 break;
667 case kIeee754Float64Expm1: 682 case kIeee754Float64Expm1:
668 ASSEMBLE_IEEE754_UNOP(expm1); 683 ASSEMBLE_IEEE754_UNOP(expm1);
669 break; 684 break;
670 case kIeee754Float64Exp: 685 case kIeee754Float64Exp:
671 ASSEMBLE_IEEE754_UNOP(exp); 686 ASSEMBLE_IEEE754_UNOP(exp);
672 break; 687 break;
673 case kIeee754Float64Atanh:
674 ASSEMBLE_IEEE754_UNOP(atanh);
675 break;
676 case kIeee754Float64Log: 688 case kIeee754Float64Log:
677 ASSEMBLE_IEEE754_UNOP(log); 689 ASSEMBLE_IEEE754_UNOP(log);
678 break; 690 break;
679 case kIeee754Float64Log1p: 691 case kIeee754Float64Log1p:
680 ASSEMBLE_IEEE754_UNOP(log1p); 692 ASSEMBLE_IEEE754_UNOP(log1p);
681 break; 693 break;
682 case kIeee754Float64Log2: 694 case kIeee754Float64Log2:
683 ASSEMBLE_IEEE754_UNOP(log2); 695 ASSEMBLE_IEEE754_UNOP(log2);
684 break; 696 break;
685 case kIeee754Float64Log10: 697 case kIeee754Float64Log10:
(...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after
2061 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2073 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2062 __ Nop(padding_size); 2074 __ Nop(padding_size);
2063 } 2075 }
2064 } 2076 }
2065 2077
2066 #undef __ 2078 #undef __
2067 2079
2068 } // namespace compiler 2080 } // namespace compiler
2069 } // namespace internal 2081 } // namespace internal
2070 } // namespace v8 2082 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698