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

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

Issue 1356913002: [turbofan] Add support for reinterpreting integers as floating point and vice versa. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rename ReinterpretAs to BitcastTo Created 5 years, 3 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') | test/cctest/compiler/test-run-machops.cc » ('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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 return; 657 return;
658 case TruncationMode::kRoundToZero: 658 case TruncationMode::kRoundToZero:
659 Emit(kX87Float64ToInt32, g.DefineAsRegister(node), 659 Emit(kX87Float64ToInt32, g.DefineAsRegister(node),
660 g.Use(node->InputAt(0))); 660 g.Use(node->InputAt(0)));
661 return; 661 return;
662 } 662 }
663 UNREACHABLE(); 663 UNREACHABLE();
664 } 664 }
665 665
666 666
667 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) {
668 UNIMPLEMENTED();
669 }
670
671
672 void InstructionSelector::VisitBitcastInt32ToFloat32(Node* node) {
673 UNIMPLEMENTED();
674 }
675
676
667 void InstructionSelector::VisitFloat32Add(Node* node) { 677 void InstructionSelector::VisitFloat32Add(Node* node) {
668 X87OperandGenerator g(this); 678 X87OperandGenerator g(this);
669 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(0))); 679 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(0)));
670 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(1))); 680 Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(1)));
671 Emit(kX87Float32Add, g.DefineAsFixed(node, stX_0), 0, NULL); 681 Emit(kX87Float32Add, g.DefineAsFixed(node, stX_0), 0, NULL);
672 } 682 }
673 683
674 684
675 void InstructionSelector::VisitFloat64Add(Node* node) { 685 void InstructionSelector::VisitFloat64Add(Node* node) {
676 X87OperandGenerator g(this); 686 X87OperandGenerator g(this);
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 MachineOperatorBuilder::kFloat32Min | 1361 MachineOperatorBuilder::kFloat32Min |
1352 MachineOperatorBuilder::kFloat64Max | 1362 MachineOperatorBuilder::kFloat64Max |
1353 MachineOperatorBuilder::kFloat64Min | 1363 MachineOperatorBuilder::kFloat64Min |
1354 MachineOperatorBuilder::kWord32ShiftIsSafe; 1364 MachineOperatorBuilder::kWord32ShiftIsSafe;
1355 return flags; 1365 return flags;
1356 } 1366 }
1357 1367
1358 } // namespace compiler 1368 } // namespace compiler
1359 } // namespace internal 1369 } // namespace internal
1360 } // namespace v8 1370 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | test/cctest/compiler/test-run-machops.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698