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-impl.h" | 5 #include "src/compiler/instruction-selector-impl.h" |
6 #include "src/compiler/node-matchers.h" | 6 #include "src/compiler/node-matchers.h" |
7 #include "src/compiler/node-properties.h" | 7 #include "src/compiler/node-properties.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1275 Emit(kArm64Lsr, g.DefineAsRegister(node), g.UseRegister(m.left().node()), | 1275 Emit(kArm64Lsr, g.DefineAsRegister(node), g.UseRegister(m.left().node()), |
1276 g.UseImmediate(m.right().node())); | 1276 g.UseImmediate(m.right().node())); |
1277 return; | 1277 return; |
1278 } | 1278 } |
1279 } | 1279 } |
1280 | 1280 |
1281 Emit(kArm64Mov32, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); | 1281 Emit(kArm64Mov32, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); |
1282 } | 1282 } |
1283 | 1283 |
1284 | 1284 |
| 1285 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { |
| 1286 VisitRR(this, kArm64Int64ToFloat64, node); |
| 1287 } |
| 1288 |
| 1289 |
1285 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { | 1290 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { |
1286 VisitRR(this, kArm64Float64ExtractLowWord32, node); | 1291 VisitRR(this, kArm64Float64ExtractLowWord32, node); |
1287 } | 1292 } |
1288 | 1293 |
1289 | 1294 |
1290 void InstructionSelector::VisitBitcastFloat64ToInt64(Node* node) { | 1295 void InstructionSelector::VisitBitcastFloat64ToInt64(Node* node) { |
1291 VisitRR(this, kArm64U64MoveFloat64, node); | 1296 VisitRR(this, kArm64U64MoveFloat64, node); |
1292 } | 1297 } |
1293 | 1298 |
1294 | 1299 |
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1974 MachineOperatorBuilder::kFloat64RoundTruncate | | 1979 MachineOperatorBuilder::kFloat64RoundTruncate | |
1975 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1980 MachineOperatorBuilder::kFloat64RoundTiesAway | |
1976 MachineOperatorBuilder::kWord32ShiftIsSafe | | 1981 MachineOperatorBuilder::kWord32ShiftIsSafe | |
1977 MachineOperatorBuilder::kInt32DivIsSafe | | 1982 MachineOperatorBuilder::kInt32DivIsSafe | |
1978 MachineOperatorBuilder::kUint32DivIsSafe; | 1983 MachineOperatorBuilder::kUint32DivIsSafe; |
1979 } | 1984 } |
1980 | 1985 |
1981 } // namespace compiler | 1986 } // namespace compiler |
1982 } // namespace internal | 1987 } // namespace internal |
1983 } // namespace v8 | 1988 } // namespace v8 |
OLD | NEW |