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

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

Issue 1628133002: [turbofan] Add RoundUint32ToFloat32 operator to Turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add arm/arm64 implementation Created 4 years, 10 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/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 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 case IrOpcode::kTruncateInt64ToInt32: 977 case IrOpcode::kTruncateInt64ToInt32:
978 return MarkAsWord32(node), VisitTruncateInt64ToInt32(node); 978 return MarkAsWord32(node), VisitTruncateInt64ToInt32(node);
979 case IrOpcode::kRoundInt64ToFloat32: 979 case IrOpcode::kRoundInt64ToFloat32:
980 return MarkAsFloat32(node), VisitRoundInt64ToFloat32(node); 980 return MarkAsFloat32(node), VisitRoundInt64ToFloat32(node);
981 case IrOpcode::kRoundInt32ToFloat32: 981 case IrOpcode::kRoundInt32ToFloat32:
982 return MarkAsFloat32(node), VisitRoundInt32ToFloat32(node); 982 return MarkAsFloat32(node), VisitRoundInt32ToFloat32(node);
983 case IrOpcode::kRoundInt64ToFloat64: 983 case IrOpcode::kRoundInt64ToFloat64:
984 return MarkAsFloat64(node), VisitRoundInt64ToFloat64(node); 984 return MarkAsFloat64(node), VisitRoundInt64ToFloat64(node);
985 case IrOpcode::kBitcastFloat32ToInt32: 985 case IrOpcode::kBitcastFloat32ToInt32:
986 return MarkAsWord32(node), VisitBitcastFloat32ToInt32(node); 986 return MarkAsWord32(node), VisitBitcastFloat32ToInt32(node);
987 case IrOpcode::kRoundUint32ToFloat32:
988 return MarkAsFloat32(node), VisitRoundUint32ToFloat32(node);
987 case IrOpcode::kRoundUint64ToFloat32: 989 case IrOpcode::kRoundUint64ToFloat32:
988 return MarkAsFloat64(node), VisitRoundUint64ToFloat32(node); 990 return MarkAsFloat64(node), VisitRoundUint64ToFloat32(node);
989 case IrOpcode::kRoundUint64ToFloat64: 991 case IrOpcode::kRoundUint64ToFloat64:
990 return MarkAsFloat64(node), VisitRoundUint64ToFloat64(node); 992 return MarkAsFloat64(node), VisitRoundUint64ToFloat64(node);
991 case IrOpcode::kBitcastFloat64ToInt64: 993 case IrOpcode::kBitcastFloat64ToInt64:
992 return MarkAsWord64(node), VisitBitcastFloat64ToInt64(node); 994 return MarkAsWord64(node), VisitBitcastFloat64ToInt64(node);
993 case IrOpcode::kBitcastInt32ToFloat32: 995 case IrOpcode::kBitcastInt32ToFloat32:
994 return MarkAsFloat32(node), VisitBitcastInt32ToFloat32(node); 996 return MarkAsFloat32(node), VisitBitcastInt32ToFloat32(node);
995 case IrOpcode::kBitcastInt64ToFloat64: 997 case IrOpcode::kBitcastInt64ToFloat64:
996 return MarkAsFloat64(node), VisitBitcastInt64ToFloat64(node); 998 return MarkAsFloat64(node), VisitBitcastInt64ToFloat64(node);
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
1625 return new (instruction_zone()) FrameStateDescriptor( 1627 return new (instruction_zone()) FrameStateDescriptor(
1626 instruction_zone(), state_info.type(), state_info.bailout_id(), 1628 instruction_zone(), state_info.type(), state_info.bailout_id(),
1627 state_info.state_combine(), parameters, locals, stack, 1629 state_info.state_combine(), parameters, locals, stack,
1628 state_info.shared_info(), outer_state); 1630 state_info.shared_info(), outer_state);
1629 } 1631 }
1630 1632
1631 1633
1632 } // namespace compiler 1634 } // namespace compiler
1633 } // namespace internal 1635 } // namespace internal
1634 } // namespace v8 1636 } // 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