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 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1284 Emit(kArm64Lsr, g.DefineAsRegister(node), g.UseRegister(m.left().node()), | 1284 Emit(kArm64Lsr, g.DefineAsRegister(node), g.UseRegister(m.left().node()), |
1285 g.UseImmediate(m.right().node())); | 1285 g.UseImmediate(m.right().node())); |
1286 return; | 1286 return; |
1287 } | 1287 } |
1288 } | 1288 } |
1289 | 1289 |
1290 Emit(kArm64Mov32, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); | 1290 Emit(kArm64Mov32, g.DefineAsRegister(node), g.UseRegister(node->InputAt(0))); |
1291 } | 1291 } |
1292 | 1292 |
1293 | 1293 |
| 1294 void InstructionSelector::VisitRoundInt64ToFloat32(Node* node) { |
| 1295 VisitRR(this, kArm64Int64ToFloat32, node); |
| 1296 } |
| 1297 |
| 1298 |
1294 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { | 1299 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { |
1295 VisitRR(this, kArm64Int64ToFloat64, node); | 1300 VisitRR(this, kArm64Int64ToFloat64, node); |
1296 } | 1301 } |
1297 | 1302 |
1298 | 1303 |
1299 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { | 1304 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { |
1300 VisitRR(this, kArm64Float64ExtractLowWord32, node); | 1305 VisitRR(this, kArm64Float64ExtractLowWord32, node); |
1301 } | 1306 } |
1302 | 1307 |
1303 | 1308 |
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2009 MachineOperatorBuilder::kFloat64RoundTruncate | | 2014 MachineOperatorBuilder::kFloat64RoundTruncate | |
2010 MachineOperatorBuilder::kFloat64RoundTiesAway | | 2015 MachineOperatorBuilder::kFloat64RoundTiesAway | |
2011 MachineOperatorBuilder::kWord32ShiftIsSafe | | 2016 MachineOperatorBuilder::kWord32ShiftIsSafe | |
2012 MachineOperatorBuilder::kInt32DivIsSafe | | 2017 MachineOperatorBuilder::kInt32DivIsSafe | |
2013 MachineOperatorBuilder::kUint32DivIsSafe; | 2018 MachineOperatorBuilder::kUint32DivIsSafe; |
2014 } | 2019 } |
2015 | 2020 |
2016 } // namespace compiler | 2021 } // namespace compiler |
2017 } // namespace internal | 2022 } // namespace internal |
2018 } // namespace v8 | 2023 } // namespace v8 |
OLD | NEW |