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

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

Issue 1438013003: [turbofan] Implemented the RoundUint64ToFloat32 TurboFan operator for x64, arm64, (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed the test to make it platform independent. 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
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::kRoundUint64ToFloat32:
826 return MarkAsFloat64(node), VisitRoundUint64ToFloat32(node);
825 case IrOpcode::kRoundUint64ToFloat64: 827 case IrOpcode::kRoundUint64ToFloat64:
826 return MarkAsFloat64(node), VisitRoundUint64ToFloat64(node); 828 return MarkAsFloat64(node), VisitRoundUint64ToFloat64(node);
827 case IrOpcode::kBitcastFloat64ToInt64: 829 case IrOpcode::kBitcastFloat64ToInt64:
828 return MarkAsWord64(node), VisitBitcastFloat64ToInt64(node); 830 return MarkAsWord64(node), VisitBitcastFloat64ToInt64(node);
829 case IrOpcode::kBitcastInt32ToFloat32: 831 case IrOpcode::kBitcastInt32ToFloat32:
830 return MarkAsFloat32(node), VisitBitcastInt32ToFloat32(node); 832 return MarkAsFloat32(node), VisitBitcastInt32ToFloat32(node);
831 case IrOpcode::kBitcastInt64ToFloat64: 833 case IrOpcode::kBitcastInt64ToFloat64:
832 return MarkAsFloat64(node), VisitBitcastInt64ToFloat64(node); 834 return MarkAsFloat64(node), VisitBitcastInt64ToFloat64(node);
833 case IrOpcode::kFloat32Add: 835 case IrOpcode::kFloat32Add:
834 return MarkAsFloat32(node), VisitFloat32Add(node); 836 return MarkAsFloat32(node), VisitFloat32Add(node);
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 void InstructionSelector::VisitRoundInt64ToFloat32(Node* node) { 1050 void InstructionSelector::VisitRoundInt64ToFloat32(Node* node) {
1049 UNIMPLEMENTED(); 1051 UNIMPLEMENTED();
1050 } 1052 }
1051 1053
1052 1054
1053 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { 1055 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) {
1054 UNIMPLEMENTED(); 1056 UNIMPLEMENTED();
1055 } 1057 }
1056 1058
1057 1059
1060 void InstructionSelector::VisitRoundUint64ToFloat32(Node* node) {
1061 UNIMPLEMENTED();
1062 }
1063
1064
1058 void InstructionSelector::VisitRoundUint64ToFloat64(Node* node) { 1065 void InstructionSelector::VisitRoundUint64ToFloat64(Node* node) {
1059 UNIMPLEMENTED(); 1066 UNIMPLEMENTED();
1060 } 1067 }
1061 1068
1062 1069
1063 void InstructionSelector::VisitBitcastFloat64ToInt64(Node* node) { 1070 void InstructionSelector::VisitBitcastFloat64ToInt64(Node* node) {
1064 UNIMPLEMENTED(); 1071 UNIMPLEMENTED();
1065 } 1072 }
1066 1073
1067 1074
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1367 return new (instruction_zone()) FrameStateDescriptor( 1374 return new (instruction_zone()) FrameStateDescriptor(
1368 instruction_zone(), state_info.type(), state_info.bailout_id(), 1375 instruction_zone(), state_info.type(), state_info.bailout_id(),
1369 state_info.state_combine(), parameters, locals, stack, 1376 state_info.state_combine(), parameters, locals, stack,
1370 state_info.shared_info(), outer_state); 1377 state_info.shared_info(), outer_state);
1371 } 1378 }
1372 1379
1373 1380
1374 } // namespace compiler 1381 } // namespace compiler
1375 } // namespace internal 1382 } // namespace internal
1376 } // namespace v8 1383 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698