| OLD | NEW | 
|---|
| 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/bits.h" | 5 #include "src/base/bits.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 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1130   VisitFloat64Compare(this, node, &cont); | 1130   VisitFloat64Compare(this, node, &cont); | 
| 1131 } | 1131 } | 
| 1132 | 1132 | 
| 1133 | 1133 | 
| 1134 void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) { | 1134 void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) { | 
| 1135   FlagsContinuation cont(kUnsignedLessThanOrEqual, node); | 1135   FlagsContinuation cont(kUnsignedLessThanOrEqual, node); | 
| 1136   VisitFloat64Compare(this, node, &cont); | 1136   VisitFloat64Compare(this, node, &cont); | 
| 1137 } | 1137 } | 
| 1138 | 1138 | 
| 1139 | 1139 | 
|  | 1140 void InstructionSelector::VisitFloat64ExtractLowWord32(Node* node) { | 
|  | 1141   Mips64OperandGenerator g(this); | 
|  | 1142   Emit(kMips64FmoveLowUwD, g.DefineAsRegister(node), | 
|  | 1143        g.UseRegister(node->InputAt(0))); | 
|  | 1144 } | 
|  | 1145 | 
|  | 1146 | 
|  | 1147 void InstructionSelector::VisitFloat64ExtractHighWord32(Node* node) { | 
|  | 1148   Mips64OperandGenerator g(this); | 
|  | 1149   Emit(kMips64FmoveHighUwD, g.DefineAsRegister(node), | 
|  | 1150        g.UseRegister(node->InputAt(0))); | 
|  | 1151 } | 
|  | 1152 | 
|  | 1153 | 
|  | 1154 void InstructionSelector::VisitFloat64InsertLowWord32(Node* node) { | 
|  | 1155   Mips64OperandGenerator g(this); | 
|  | 1156   Node* left = node->InputAt(0); | 
|  | 1157   Node* right = node->InputAt(1); | 
|  | 1158   Emit(kMips64FmoveLowDUw, g.DefineSameAsFirst(node), g.UseRegister(left), | 
|  | 1159        g.UseRegister(right)); | 
|  | 1160 } | 
|  | 1161 | 
|  | 1162 | 
|  | 1163 void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) { | 
|  | 1164   Mips64OperandGenerator g(this); | 
|  | 1165   Node* left = node->InputAt(0); | 
|  | 1166   Node* right = node->InputAt(1); | 
|  | 1167   Emit(kMips64FmoveHighDUw, g.DefineSameAsFirst(node), g.UseRegister(left), | 
|  | 1168        g.UseRegister(right)); | 
|  | 1169 } | 
|  | 1170 | 
|  | 1171 | 
| 1140 // static | 1172 // static | 
| 1141 MachineOperatorBuilder::Flags | 1173 MachineOperatorBuilder::Flags | 
| 1142 InstructionSelector::SupportedMachineOperatorFlags() { | 1174 InstructionSelector::SupportedMachineOperatorFlags() { | 
| 1143   return MachineOperatorBuilder::kFloat64Floor | | 1175   return MachineOperatorBuilder::kFloat64Floor | | 
| 1144          MachineOperatorBuilder::kFloat64Ceil | | 1176          MachineOperatorBuilder::kFloat64Ceil | | 
| 1145          MachineOperatorBuilder::kFloat64RoundTruncate; | 1177          MachineOperatorBuilder::kFloat64RoundTruncate; | 
| 1146 } | 1178 } | 
| 1147 | 1179 | 
| 1148 }  // namespace compiler | 1180 }  // namespace compiler | 
| 1149 }  // namespace internal | 1181 }  // namespace internal | 
| 1150 }  // namespace v8 | 1182 }  // namespace v8 | 
| OLD | NEW | 
|---|