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

Side by Side Diff: src/compiler/x87/instruction-selector-x87.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/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 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 } 655 }
656 656
657 657
658 void InstructionSelector::VisitRoundInt32ToFloat32(Node* node) { 658 void InstructionSelector::VisitRoundInt32ToFloat32(Node* node) {
659 X87OperandGenerator g(this); 659 X87OperandGenerator g(this);
660 Emit(kX87Int32ToFloat32, g.DefineAsFixed(node, stX_0), 660 Emit(kX87Int32ToFloat32, g.DefineAsFixed(node, stX_0),
661 g.Use(node->InputAt(0))); 661 g.Use(node->InputAt(0)));
662 } 662 }
663 663
664 664
665 void InstructionSelector::VisitRoundUint32ToFloat32(Node* node) {
666 UNIMPLEMENTED();
667 }
668
669
665 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { 670 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) {
666 X87OperandGenerator g(this); 671 X87OperandGenerator g(this);
667 Emit(kX87Int32ToFloat64, g.DefineAsFixed(node, stX_0), 672 Emit(kX87Int32ToFloat64, g.DefineAsFixed(node, stX_0),
668 g.Use(node->InputAt(0))); 673 g.Use(node->InputAt(0)));
669 } 674 }
670 675
671 676
672 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) { 677 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) {
673 X87OperandGenerator g(this); 678 X87OperandGenerator g(this);
674 Emit(kX87Uint32ToFloat64, g.DefineAsFixed(node, stX_0), 679 Emit(kX87Uint32ToFloat64, g.DefineAsFixed(node, stX_0),
(...skipping 674 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