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

Side by Side Diff: src/compiler/x64/code-generator-x64.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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 frame_access_state()->GetFrameOffset(i.InputInt32(0)); 860 frame_access_state()->GetFrameOffset(i.InputInt32(0));
861 Register base; 861 Register base;
862 if (offset.from_stack_pointer()) { 862 if (offset.from_stack_pointer()) {
863 base = rsp; 863 base = rsp;
864 } else { 864 } else {
865 base = rbp; 865 base = rbp;
866 } 866 }
867 __ leaq(i.OutputRegister(), Operand(base, offset.offset())); 867 __ leaq(i.OutputRegister(), Operand(base, offset.offset()));
868 break; 868 break;
869 } 869 }
870 case kIeee754Float64Acos:
871 ASSEMBLE_IEEE754_UNOP(acos);
872 break;
873 case kIeee754Float64Acosh:
874 ASSEMBLE_IEEE754_UNOP(acosh);
875 break;
876 case kIeee754Float64Asin:
877 ASSEMBLE_IEEE754_UNOP(asin);
878 break;
879 case kIeee754Float64Asinh:
880 ASSEMBLE_IEEE754_UNOP(asinh);
881 break;
870 case kIeee754Float64Atan: 882 case kIeee754Float64Atan:
871 ASSEMBLE_IEEE754_UNOP(atan); 883 ASSEMBLE_IEEE754_UNOP(atan);
872 break; 884 break;
885 case kIeee754Float64Atanh:
886 ASSEMBLE_IEEE754_UNOP(atanh);
887 break;
873 case kIeee754Float64Atan2: 888 case kIeee754Float64Atan2:
874 ASSEMBLE_IEEE754_BINOP(atan2); 889 ASSEMBLE_IEEE754_BINOP(atan2);
875 break; 890 break;
876 case kIeee754Float64Atanh:
877 ASSEMBLE_IEEE754_UNOP(atanh);
878 break;
879 case kIeee754Float64Cbrt: 891 case kIeee754Float64Cbrt:
880 ASSEMBLE_IEEE754_UNOP(cbrt); 892 ASSEMBLE_IEEE754_UNOP(cbrt);
881 break; 893 break;
882 case kIeee754Float64Cos: 894 case kIeee754Float64Cos:
883 ASSEMBLE_IEEE754_UNOP(cos); 895 ASSEMBLE_IEEE754_UNOP(cos);
884 break; 896 break;
885 case kIeee754Float64Cosh: 897 case kIeee754Float64Cosh:
886 ASSEMBLE_IEEE754_UNOP(cosh); 898 ASSEMBLE_IEEE754_UNOP(cosh);
887 break; 899 break;
888 case kIeee754Float64Exp: 900 case kIeee754Float64Exp:
(...skipping 1514 matching lines...) Expand 10 before | Expand all | Expand 10 after
2403 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2415 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2404 __ Nop(padding_size); 2416 __ Nop(padding_size);
2405 } 2417 }
2406 } 2418 }
2407 2419
2408 #undef __ 2420 #undef __
2409 2421
2410 } // namespace compiler 2422 } // namespace compiler
2411 } // namespace internal 2423 } // namespace internal
2412 } // namespace v8 2424 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698