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

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

Issue 1589363002: [turbofan] Add the RoundInt32ToFloat32 operator to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 } 648 }
649 649
650 650
651 void InstructionSelector::VisitChangeFloat32ToFloat64(Node* node) { 651 void InstructionSelector::VisitChangeFloat32ToFloat64(Node* node) {
652 X87OperandGenerator g(this); 652 X87OperandGenerator g(this);
653 Emit(kX87Float32ToFloat64, g.DefineAsFixed(node, stX_0), 653 Emit(kX87Float32ToFloat64, g.DefineAsFixed(node, stX_0),
654 g.Use(node->InputAt(0))); 654 g.Use(node->InputAt(0)));
655 } 655 }
656 656
657 657
658 void InstructionSelector::VisitRoundInt32ToFloat32(Node* node) {
659 UNIMPLEMENTED();
660 }
661
662
658 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) { 663 void InstructionSelector::VisitChangeInt32ToFloat64(Node* node) {
659 X87OperandGenerator g(this); 664 X87OperandGenerator g(this);
660 Emit(kX87Int32ToFloat64, g.DefineAsFixed(node, stX_0), 665 Emit(kX87Int32ToFloat64, g.DefineAsFixed(node, stX_0),
661 g.Use(node->InputAt(0))); 666 g.Use(node->InputAt(0)));
662 } 667 }
663 668
664 669
665 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) { 670 void InstructionSelector::VisitChangeUint32ToFloat64(Node* node) {
666 X87OperandGenerator g(this); 671 X87OperandGenerator g(this);
667 Emit(kX87Uint32ToFloat64, g.DefineAsFixed(node, stX_0), 672 Emit(kX87Uint32ToFloat64, g.DefineAsFixed(node, stX_0),
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 MachineOperatorBuilder::kFloat32RoundTruncate | 1341 MachineOperatorBuilder::kFloat32RoundTruncate |
1337 MachineOperatorBuilder::kFloat64RoundTruncate | 1342 MachineOperatorBuilder::kFloat64RoundTruncate |
1338 MachineOperatorBuilder::kFloat32RoundTiesEven | 1343 MachineOperatorBuilder::kFloat32RoundTiesEven |
1339 MachineOperatorBuilder::kFloat64RoundTiesEven; 1344 MachineOperatorBuilder::kFloat64RoundTiesEven;
1340 return flags; 1345 return flags;
1341 } 1346 }
1342 1347
1343 } // namespace compiler 1348 } // namespace compiler
1344 } // namespace internal 1349 } // namespace internal
1345 } // namespace v8 1350 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | src/ia32/assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698