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

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

Issue 1436943002: Implemented the RoundUint64ToFloat64 TurboFan operator for x64 and arm64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/arm64/instruction-selector-arm64.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 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 case IrOpcode::kTruncateFloat64ToInt32: 815 case IrOpcode::kTruncateFloat64ToInt32:
816 return MarkAsWord32(node), VisitTruncateFloat64ToInt32(node); 816 return MarkAsWord32(node), VisitTruncateFloat64ToInt32(node);
817 case IrOpcode::kTruncateInt64ToInt32: 817 case IrOpcode::kTruncateInt64ToInt32:
818 return MarkAsWord32(node), VisitTruncateInt64ToInt32(node); 818 return MarkAsWord32(node), VisitTruncateInt64ToInt32(node);
819 case IrOpcode::kRoundInt64ToFloat32: 819 case IrOpcode::kRoundInt64ToFloat32:
820 return MarkAsFloat32(node), VisitRoundInt64ToFloat32(node); 820 return MarkAsFloat32(node), VisitRoundInt64ToFloat32(node);
821 case IrOpcode::kRoundInt64ToFloat64: 821 case IrOpcode::kRoundInt64ToFloat64:
822 return MarkAsFloat64(node), VisitRoundInt64ToFloat64(node); 822 return MarkAsFloat64(node), VisitRoundInt64ToFloat64(node);
823 case IrOpcode::kBitcastFloat32ToInt32: 823 case IrOpcode::kBitcastFloat32ToInt32:
824 return MarkAsWord32(node), VisitBitcastFloat32ToInt32(node); 824 return MarkAsWord32(node), VisitBitcastFloat32ToInt32(node);
825 case IrOpcode::kRoundUint64ToFloat64:
826 return MarkAsFloat64(node), VisitRoundUint64ToFloat64(node);
825 case IrOpcode::kBitcastFloat64ToInt64: 827 case IrOpcode::kBitcastFloat64ToInt64:
826 return MarkAsWord64(node), VisitBitcastFloat64ToInt64(node); 828 return MarkAsWord64(node), VisitBitcastFloat64ToInt64(node);
827 case IrOpcode::kBitcastInt32ToFloat32: 829 case IrOpcode::kBitcastInt32ToFloat32:
828 return MarkAsFloat32(node), VisitBitcastInt32ToFloat32(node); 830 return MarkAsFloat32(node), VisitBitcastInt32ToFloat32(node);
829 case IrOpcode::kBitcastInt64ToFloat64: 831 case IrOpcode::kBitcastInt64ToFloat64:
830 return MarkAsFloat64(node), VisitBitcastInt64ToFloat64(node); 832 return MarkAsFloat64(node), VisitBitcastInt64ToFloat64(node);
831 case IrOpcode::kFloat32Add: 833 case IrOpcode::kFloat32Add:
832 return MarkAsFloat32(node), VisitFloat32Add(node); 834 return MarkAsFloat32(node), VisitFloat32Add(node);
833 case IrOpcode::kFloat32Sub: 835 case IrOpcode::kFloat32Sub:
834 return MarkAsFloat32(node), VisitFloat32Sub(node); 836 return MarkAsFloat32(node), VisitFloat32Sub(node);
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 void InstructionSelector::VisitRoundInt64ToFloat32(Node* node) { 1048 void InstructionSelector::VisitRoundInt64ToFloat32(Node* node) {
1047 UNIMPLEMENTED(); 1049 UNIMPLEMENTED();
1048 } 1050 }
1049 1051
1050 1052
1051 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { 1053 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) {
1052 UNIMPLEMENTED(); 1054 UNIMPLEMENTED();
1053 } 1055 }
1054 1056
1055 1057
1058 void InstructionSelector::VisitRoundUint64ToFloat64(Node* node) {
1059 UNIMPLEMENTED();
1060 }
1061
1062
1056 void InstructionSelector::VisitBitcastFloat64ToInt64(Node* node) { 1063 void InstructionSelector::VisitBitcastFloat64ToInt64(Node* node) {
1057 UNIMPLEMENTED(); 1064 UNIMPLEMENTED();
1058 } 1065 }
1059 1066
1060 1067
1061 void InstructionSelector::VisitBitcastInt64ToFloat64(Node* node) { 1068 void InstructionSelector::VisitBitcastInt64ToFloat64(Node* node) {
1062 UNIMPLEMENTED(); 1069 UNIMPLEMENTED();
1063 } 1070 }
1064 1071
1065 #endif // V8_TARGET_ARCH_32_BIT 1072 #endif // V8_TARGET_ARCH_32_BIT
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
1360 return new (instruction_zone()) FrameStateDescriptor( 1367 return new (instruction_zone()) FrameStateDescriptor(
1361 instruction_zone(), state_info.type(), state_info.bailout_id(), 1368 instruction_zone(), state_info.type(), state_info.bailout_id(),
1362 state_info.state_combine(), parameters, locals, stack, 1369 state_info.state_combine(), parameters, locals, stack,
1363 state_info.shared_info(), outer_state); 1370 state_info.shared_info(), outer_state);
1364 } 1371 }
1365 1372
1366 1373
1367 } // namespace compiler 1374 } // namespace compiler
1368 } // namespace internal 1375 } // namespace internal
1369 } // namespace v8 1376 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm64/instruction-selector-arm64.cc ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698