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

Side by Side Diff: src/compiler/instruction-selector.cc

Issue 1468303005: [turbofan] Implemented the optional Float32RoundTruncate operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@f32roundup
Patch Set: Apparently std::nearbyint does not exist on all platforms. 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
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/compiler/machine-operator.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 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/instruction-selector.h" 5 #include "src/compiler/instruction-selector.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/adapters.h" 9 #include "src/base/adapters.h"
10 #include "src/compiler/instruction-selector-impl.h" 10 #include "src/compiler/instruction-selector-impl.h"
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 case IrOpcode::kFloat64LessThanOrEqual: 924 case IrOpcode::kFloat64LessThanOrEqual:
925 return VisitFloat64LessThanOrEqual(node); 925 return VisitFloat64LessThanOrEqual(node);
926 case IrOpcode::kFloat32RoundDown: 926 case IrOpcode::kFloat32RoundDown:
927 return MarkAsFloat32(node), VisitFloat32RoundDown(node); 927 return MarkAsFloat32(node), VisitFloat32RoundDown(node);
928 case IrOpcode::kFloat64RoundDown: 928 case IrOpcode::kFloat64RoundDown:
929 return MarkAsFloat64(node), VisitFloat64RoundDown(node); 929 return MarkAsFloat64(node), VisitFloat64RoundDown(node);
930 case IrOpcode::kFloat32RoundUp: 930 case IrOpcode::kFloat32RoundUp:
931 return MarkAsFloat32(node), VisitFloat32RoundUp(node); 931 return MarkAsFloat32(node), VisitFloat32RoundUp(node);
932 case IrOpcode::kFloat64RoundUp: 932 case IrOpcode::kFloat64RoundUp:
933 return MarkAsFloat64(node), VisitFloat64RoundUp(node); 933 return MarkAsFloat64(node), VisitFloat64RoundUp(node);
934 case IrOpcode::kFloat32RoundTruncate:
935 return MarkAsFloat32(node), VisitFloat32RoundTruncate(node);
934 case IrOpcode::kFloat64RoundTruncate: 936 case IrOpcode::kFloat64RoundTruncate:
935 return MarkAsFloat64(node), VisitFloat64RoundTruncate(node); 937 return MarkAsFloat64(node), VisitFloat64RoundTruncate(node);
936 case IrOpcode::kFloat64RoundTiesAway: 938 case IrOpcode::kFloat64RoundTiesAway:
937 return MarkAsFloat64(node), VisitFloat64RoundTiesAway(node); 939 return MarkAsFloat64(node), VisitFloat64RoundTiesAway(node);
938 case IrOpcode::kFloat64RoundTiesEven: 940 case IrOpcode::kFloat64RoundTiesEven:
939 return MarkAsFloat64(node), VisitFloat64RoundTiesEven(node); 941 return MarkAsFloat64(node), VisitFloat64RoundTiesEven(node);
940 case IrOpcode::kFloat64ExtractLowWord32: 942 case IrOpcode::kFloat64ExtractLowWord32:
941 return MarkAsWord32(node), VisitFloat64ExtractLowWord32(node); 943 return MarkAsWord32(node), VisitFloat64ExtractLowWord32(node);
942 case IrOpcode::kFloat64ExtractHighWord32: 944 case IrOpcode::kFloat64ExtractHighWord32:
943 return MarkAsWord32(node), VisitFloat64ExtractHighWord32(node); 945 return MarkAsWord32(node), VisitFloat64ExtractHighWord32(node);
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
1459 return new (instruction_zone()) FrameStateDescriptor( 1461 return new (instruction_zone()) FrameStateDescriptor(
1460 instruction_zone(), state_info.type(), state_info.bailout_id(), 1462 instruction_zone(), state_info.type(), state_info.bailout_id(),
1461 state_info.state_combine(), parameters, locals, stack, 1463 state_info.state_combine(), parameters, locals, stack,
1462 state_info.shared_info(), outer_state); 1464 state_info.shared_info(), outer_state);
1463 } 1465 }
1464 1466
1465 1467
1466 } // namespace compiler 1468 } // namespace compiler
1467 } // namespace internal 1469 } // namespace internal
1468 } // namespace v8 1470 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698