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

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

Issue 1471913006: [turbofan] Implemented the optional Float32RoundDown operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removed a debugging printf. Created 5 years 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/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 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 break; 930 break;
931 case kSSEFloat32Max: 931 case kSSEFloat32Max:
932 ASSEMBLE_SSE_BINOP(maxss); 932 ASSEMBLE_SSE_BINOP(maxss);
933 break; 933 break;
934 case kSSEFloat32Min: 934 case kSSEFloat32Min:
935 ASSEMBLE_SSE_BINOP(minss); 935 ASSEMBLE_SSE_BINOP(minss);
936 break; 936 break;
937 case kSSEFloat32ToFloat64: 937 case kSSEFloat32ToFloat64:
938 ASSEMBLE_SSE_UNOP(Cvtss2sd); 938 ASSEMBLE_SSE_UNOP(Cvtss2sd);
939 break; 939 break;
940 case kSSEFloat32Round: {
941 CpuFeatureScope sse_scope(masm(), SSE4_1);
942 RoundingMode const mode =
943 static_cast<RoundingMode>(MiscField::decode(instr->opcode()));
944 __ Roundss(i.OutputDoubleRegister(), i.InputDoubleRegister(0), mode);
945 break;
946 }
940 case kSSEFloat64Cmp: 947 case kSSEFloat64Cmp:
941 ASSEMBLE_SSE_BINOP(Ucomisd); 948 ASSEMBLE_SSE_BINOP(Ucomisd);
942 break; 949 break;
943 case kSSEFloat64Add: 950 case kSSEFloat64Add:
944 ASSEMBLE_SSE_BINOP(addsd); 951 ASSEMBLE_SSE_BINOP(addsd);
945 break; 952 break;
946 case kSSEFloat64Sub: 953 case kSSEFloat64Sub:
947 ASSEMBLE_SSE_BINOP(subsd); 954 ASSEMBLE_SSE_BINOP(subsd);
948 break; 955 break;
949 case kSSEFloat64Mul: 956 case kSSEFloat64Mul:
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after
1997 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2004 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1998 __ Nop(padding_size); 2005 __ Nop(padding_size);
1999 } 2006 }
2000 } 2007 }
2001 2008
2002 #undef __ 2009 #undef __
2003 2010
2004 } // namespace compiler 2011 } // namespace compiler
2005 } // namespace internal 2012 } // namespace internal
2006 } // namespace v8 2013 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698