| 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/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 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1149 case IrOpcode::kFloat64Expm1: | 1149 case IrOpcode::kFloat64Expm1: |
| 1150 return MarkAsFloat64(node), VisitFloat64Expm1(node); | 1150 return MarkAsFloat64(node), VisitFloat64Expm1(node); |
| 1151 case IrOpcode::kFloat64Log: | 1151 case IrOpcode::kFloat64Log: |
| 1152 return MarkAsFloat64(node), VisitFloat64Log(node); | 1152 return MarkAsFloat64(node), VisitFloat64Log(node); |
| 1153 case IrOpcode::kFloat64Log1p: | 1153 case IrOpcode::kFloat64Log1p: |
| 1154 return MarkAsFloat64(node), VisitFloat64Log1p(node); | 1154 return MarkAsFloat64(node), VisitFloat64Log1p(node); |
| 1155 case IrOpcode::kFloat64Log10: | 1155 case IrOpcode::kFloat64Log10: |
| 1156 return MarkAsFloat64(node), VisitFloat64Log10(node); | 1156 return MarkAsFloat64(node), VisitFloat64Log10(node); |
| 1157 case IrOpcode::kFloat64Log2: | 1157 case IrOpcode::kFloat64Log2: |
| 1158 return MarkAsFloat64(node), VisitFloat64Log2(node); | 1158 return MarkAsFloat64(node), VisitFloat64Log2(node); |
| 1159 case IrOpcode::kFloat64Pow: |
| 1160 return MarkAsFloat64(node), VisitFloat64Pow(node); |
| 1159 case IrOpcode::kFloat64Sin: | 1161 case IrOpcode::kFloat64Sin: |
| 1160 return MarkAsFloat64(node), VisitFloat64Sin(node); | 1162 return MarkAsFloat64(node), VisitFloat64Sin(node); |
| 1161 case IrOpcode::kFloat64Sqrt: | 1163 case IrOpcode::kFloat64Sqrt: |
| 1162 return MarkAsFloat64(node), VisitFloat64Sqrt(node); | 1164 return MarkAsFloat64(node), VisitFloat64Sqrt(node); |
| 1163 case IrOpcode::kFloat64Tan: | 1165 case IrOpcode::kFloat64Tan: |
| 1164 return MarkAsFloat64(node), VisitFloat64Tan(node); | 1166 return MarkAsFloat64(node), VisitFloat64Tan(node); |
| 1165 case IrOpcode::kFloat64Equal: | 1167 case IrOpcode::kFloat64Equal: |
| 1166 return VisitFloat64Equal(node); | 1168 return VisitFloat64Equal(node); |
| 1167 case IrOpcode::kFloat64LessThan: | 1169 case IrOpcode::kFloat64LessThan: |
| 1168 return VisitFloat64LessThan(node); | 1170 return VisitFloat64LessThan(node); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1302 } | 1304 } |
| 1303 | 1305 |
| 1304 void InstructionSelector::VisitFloat64Log2(Node* node) { | 1306 void InstructionSelector::VisitFloat64Log2(Node* node) { |
| 1305 VisitFloat64Ieee754Unop(node, kIeee754Float64Log2); | 1307 VisitFloat64Ieee754Unop(node, kIeee754Float64Log2); |
| 1306 } | 1308 } |
| 1307 | 1309 |
| 1308 void InstructionSelector::VisitFloat64Log10(Node* node) { | 1310 void InstructionSelector::VisitFloat64Log10(Node* node) { |
| 1309 VisitFloat64Ieee754Unop(node, kIeee754Float64Log10); | 1311 VisitFloat64Ieee754Unop(node, kIeee754Float64Log10); |
| 1310 } | 1312 } |
| 1311 | 1313 |
| 1314 void InstructionSelector::VisitFloat64Pow(Node* node) { |
| 1315 VisitFloat64Ieee754Binop(node, kIeee754Float64Pow); |
| 1316 } |
| 1317 |
| 1312 void InstructionSelector::VisitFloat64Sin(Node* node) { | 1318 void InstructionSelector::VisitFloat64Sin(Node* node) { |
| 1313 VisitFloat64Ieee754Unop(node, kIeee754Float64Sin); | 1319 VisitFloat64Ieee754Unop(node, kIeee754Float64Sin); |
| 1314 } | 1320 } |
| 1315 | 1321 |
| 1316 void InstructionSelector::VisitFloat64Tan(Node* node) { | 1322 void InstructionSelector::VisitFloat64Tan(Node* node) { |
| 1317 VisitFloat64Ieee754Unop(node, kIeee754Float64Tan); | 1323 VisitFloat64Ieee754Unop(node, kIeee754Float64Tan); |
| 1318 } | 1324 } |
| 1319 | 1325 |
| 1320 void InstructionSelector::EmitTableSwitch(const SwitchInfo& sw, | 1326 void InstructionSelector::EmitTableSwitch(const SwitchInfo& sw, |
| 1321 InstructionOperand& index_operand) { | 1327 InstructionOperand& index_operand) { |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1931 return new (instruction_zone()) FrameStateDescriptor( | 1937 return new (instruction_zone()) FrameStateDescriptor( |
| 1932 instruction_zone(), state_info.type(), state_info.bailout_id(), | 1938 instruction_zone(), state_info.type(), state_info.bailout_id(), |
| 1933 state_info.state_combine(), parameters, locals, stack, | 1939 state_info.state_combine(), parameters, locals, stack, |
| 1934 state_info.shared_info(), outer_state); | 1940 state_info.shared_info(), outer_state); |
| 1935 } | 1941 } |
| 1936 | 1942 |
| 1937 | 1943 |
| 1938 } // namespace compiler | 1944 } // namespace compiler |
| 1939 } // namespace internal | 1945 } // namespace internal |
| 1940 } // namespace v8 | 1946 } // namespace v8 |
| OLD | NEW |