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

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

Issue 1225993002: [turbofan] Add TruncationMode for TruncateFloat64ToInt32. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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/ia32/instruction-selector-ia32.cc ('k') | src/compiler/machine-operator.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/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 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 default: 772 default:
773 V8_Fatal(__FILE__, __LINE__, "Unexpected operator #%d:%s @ node #%d", 773 V8_Fatal(__FILE__, __LINE__, "Unexpected operator #%d:%s @ node #%d",
774 node->opcode(), node->op()->mnemonic(), node->id()); 774 node->opcode(), node->op()->mnemonic(), node->id());
775 break; 775 break;
776 } 776 }
777 } 777 }
778 778
779 779
780 #if V8_TURBOFAN_BACKEND 780 #if V8_TURBOFAN_BACKEND
781 781
782 void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) {
783 OperandGenerator g(this);
784 Emit(kArchTruncateDoubleToI, g.DefineAsRegister(node),
785 g.UseRegister(node->InputAt(0)));
786 }
787
788
789 void InstructionSelector::VisitLoadStackPointer(Node* node) { 782 void InstructionSelector::VisitLoadStackPointer(Node* node) {
790 OperandGenerator g(this); 783 OperandGenerator g(this);
791 Emit(kArchStackPointer, g.DefineAsRegister(node)); 784 Emit(kArchStackPointer, g.DefineAsRegister(node));
792 } 785 }
793 786
794 787
795 void InstructionSelector::VisitLoadFramePointer(Node* node) { 788 void InstructionSelector::VisitLoadFramePointer(Node* node) {
796 OperandGenerator g(this); 789 OperandGenerator g(this);
797 Emit(kArchFramePointer, g.DefineAsRegister(node)); 790 Emit(kArchFramePointer, g.DefineAsRegister(node));
798 } 791 }
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 MachineOperatorBuilder::Flags 1152 MachineOperatorBuilder::Flags
1160 InstructionSelector::SupportedMachineOperatorFlags() { 1153 InstructionSelector::SupportedMachineOperatorFlags() {
1161 return MachineOperatorBuilder::Flag::kNoFlags; 1154 return MachineOperatorBuilder::Flag::kNoFlags;
1162 } 1155 }
1163 1156
1164 #endif // !V8_TURBOFAN_BACKEND 1157 #endif // !V8_TURBOFAN_BACKEND
1165 1158
1166 } // namespace compiler 1159 } // namespace compiler
1167 } // namespace internal 1160 } // namespace internal
1168 } // namespace v8 1161 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698