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

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

Issue 1627263002: [turbofan] Add TruncateFloat32ToUint32 operator to Turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Andreas' comment 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/x64/instruction-selector-x64.cc ('k') | src/ia32/macro-assembler-ia32.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/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/compiler/instruction-selector-impl.h" 6 #include "src/compiler/instruction-selector-impl.h"
7 #include "src/compiler/node-matchers.h" 7 #include "src/compiler/node-matchers.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 g.UseRegister(node->InputAt(0))); 675 g.UseRegister(node->InputAt(0)));
676 } 676 }
677 677
678 678
679 void InstructionSelector::VisitTruncateFloat32ToInt32(Node* node) { 679 void InstructionSelector::VisitTruncateFloat32ToInt32(Node* node) {
680 X87OperandGenerator g(this); 680 X87OperandGenerator g(this);
681 Emit(kX87Float32ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 681 Emit(kX87Float32ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
682 } 682 }
683 683
684 684
685 void InstructionSelector::VisitTruncateFloat32ToUint32(Node* node) {
686 UNIMPLEMENTED();
687 }
688
689
685 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { 690 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) {
686 X87OperandGenerator g(this); 691 X87OperandGenerator g(this);
687 Emit(kX87Float64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 692 Emit(kX87Float64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
688 } 693 }
689 694
690 695
691 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { 696 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) {
692 X87OperandGenerator g(this); 697 X87OperandGenerator g(this);
693 Emit(kX87Float64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 698 Emit(kX87Float64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
694 } 699 }
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
1349 MachineOperatorBuilder::kFloat32RoundTruncate | 1354 MachineOperatorBuilder::kFloat32RoundTruncate |
1350 MachineOperatorBuilder::kFloat64RoundTruncate | 1355 MachineOperatorBuilder::kFloat64RoundTruncate |
1351 MachineOperatorBuilder::kFloat32RoundTiesEven | 1356 MachineOperatorBuilder::kFloat32RoundTiesEven |
1352 MachineOperatorBuilder::kFloat64RoundTiesEven; 1357 MachineOperatorBuilder::kFloat64RoundTiesEven;
1353 return flags; 1358 return flags;
1354 } 1359 }
1355 1360
1356 } // namespace compiler 1361 } // namespace compiler
1357 } // namespace internal 1362 } // namespace internal
1358 } // namespace v8 1363 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698