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/adapters.h" | 5 #include "src/base/adapters.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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 | 543 |
544 void InstructionSelector::VisitWord32Clz(Node* node) { | 544 void InstructionSelector::VisitWord32Clz(Node* node) { |
545 X87OperandGenerator g(this); | 545 X87OperandGenerator g(this); |
546 Emit(kX87Lzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 546 Emit(kX87Lzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
547 } | 547 } |
548 | 548 |
549 | 549 |
550 void InstructionSelector::VisitWord32Ctz(Node* node) { UNREACHABLE(); } | 550 void InstructionSelector::VisitWord32Ctz(Node* node) { UNREACHABLE(); } |
551 | 551 |
552 | 552 |
| 553 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); } |
| 554 |
| 555 |
553 void InstructionSelector::VisitWord32Popcnt(Node* node) { | 556 void InstructionSelector::VisitWord32Popcnt(Node* node) { |
554 X87OperandGenerator g(this); | 557 X87OperandGenerator g(this); |
555 Emit(kX87Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); | 558 Emit(kX87Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
556 } | 559 } |
557 | 560 |
558 | 561 |
559 void InstructionSelector::VisitInt32Add(Node* node) { | 562 void InstructionSelector::VisitInt32Add(Node* node) { |
560 X87OperandGenerator g(this); | 563 X87OperandGenerator g(this); |
561 | 564 |
562 // Try to match the Add to a lea pattern | 565 // Try to match the Add to a lea pattern |
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1363 MachineOperatorBuilder::kFloat32RoundTruncate | | 1366 MachineOperatorBuilder::kFloat32RoundTruncate | |
1364 MachineOperatorBuilder::kFloat64RoundTruncate | | 1367 MachineOperatorBuilder::kFloat64RoundTruncate | |
1365 MachineOperatorBuilder::kFloat32RoundTiesEven | | 1368 MachineOperatorBuilder::kFloat32RoundTiesEven | |
1366 MachineOperatorBuilder::kFloat64RoundTiesEven; | 1369 MachineOperatorBuilder::kFloat64RoundTiesEven; |
1367 return flags; | 1370 return flags; |
1368 } | 1371 } |
1369 | 1372 |
1370 } // namespace compiler | 1373 } // namespace compiler |
1371 } // namespace internal | 1374 } // namespace internal |
1372 } // namespace v8 | 1375 } // namespace v8 |
OLD | NEW |